效果图:

uni.showModal({
				title: "提示",
				content: "是否取消订单?",
				success: function (res) {
					if (res.confirm) {
						uni.showLoading({
							title: "取消中...",
						});
                        //删除
						that.$http
							.get("/receiveInfo/remove", {
								id: item.id
							})
							.then((res) => {
								console.log("删除的", res);

								if (res.code == 200) {
									that.getAddress();

								} else {
									uni.showToast({
										title: res.message,
										icon: "none",
									});
								}
							}).catch((i) => {

							}).finally(() => {
								uni.hideLoading();
							});


					}
				},
			});

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐