uniapp删除弹窗
·
效果图:

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();
});
}
},
});
更多推荐
所有评论(0)