Commit 26c6369b authored by youjie's avatar youjie

优化

parent 27bf307a
...@@ -536,31 +536,25 @@ ...@@ -536,31 +536,25 @@
goCancelZK() { goCancelZK() {
let that = this let that = this
uni.showLoading() uni.showLoading()
wx.showModal({ that.apipost(
title: '提示', "GetCancelOrder_post", {
content: '确定取消订单?', OrderNo: that.OrderNo,
success: (tip) => { },
if (tip.confirm) { (res) => {
that.apipost( if (res.resultCode == 1) {
"GetCancelOrder_post", { uni.showToast({
OrderNo: that.OrderNo, title: "操作成功",
}, icon: "success",
(res) => { });
if (res.resultCode == 1) { that.setThemeHandle();
uni.showToast({ that.getOrderInfoHandler()
title: "操作成功", }
icon: "success", uni.hideLoading()
}); },
that.setThemeHandle(); (err) => {
that.getOrderInfoHandler() uni.hideLoading()
}
uni.hideLoading()
},
(err) => {}
);
}else uni.hideLoading()
} }
}) );
}, },
requeryHandle(){ requeryHandle(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment