Commit 79a369f2 authored by ZJG's avatar ZJG

1

parent 3252adbe
...@@ -376,94 +376,60 @@ ...@@ -376,94 +376,60 @@
}) })
return return
} }
if(that.msg.OrderStatus==0){//判断在全部列表的时候 改变他的状态
if(that.Cancelmsg.Type==1){ uni.requestSubscribeMessage({
tmplIds: [],
that.g[index].OrderStatus = 4; complete(res) {
that.g[index].IsApplyForCancel = 1; that.request2({
}else{ url: '/api/AppletOrder/CancelAppletMyOrder',
uni.showToast({ data: that.Cancelmsg
title: "取消成功,请等待审核", },
position: "bottom", (res) => {
icon: "none", that.showModal = false;
duration: 2000,
});
that.g[index].OrderStatus = 5;
that.g[index].IsApplyForCancel = 1;
}
}else{//在待付款的页面时候的操作处理
if (that.Cancelmsg.Type == 1) {
uni.showToast({
title: res.message,
icon: 'none'
})
that.g.splice(that.index, 1);
} else {
uni.showToast({
title: "取消成功,请等待审核",
position: "bottom",
icon: "none",
duration: 2000,
});
// that.msg.pageIndex = 1;
// that.g = [];
// that.init();
this.change(5)
}
}
// uni.requestSubscribeMessage({
// tmplIds: [],
// complete(res) {
// that.request2({
// url: '/api/AppletOrder/CancelAppletMyOrder',
// data: that.Cancelmsg
// },
// (res) => {
// that.showModal = false;
// if(that.msg.OrderStatus==0){//判断在全部列表的时候 改变他的状态 if(that.msg.OrderStatus==0){//判断在全部列表的时候 改变他的状态
// if(that.Cancelmsg.Type==1){ if(that.Cancelmsg.Type==1){
// uni.showToast({ uni.showToast({
// title: res.message, title: res.message,
// icon: 'none' icon: 'none'
// }) })
// that.g[index].OrderStatus = 4; that.g[index].OrderStatus = 4;
// that.g[index].IsApplyForCancel = 1; that.g[index].IsApplyForCancel = 1;
// }else{ }else{
// uni.showToast({ uni.showToast({
// title: "取消成功,请等待审核", title: "取消成功,请等待审核",
// position: "bottom", position: "bottom",
// icon: "none", icon: "none",
// duration: 2000, duration: 2000,
// }); });
// that.g[index].OrderStatus = 5; that.g[index].OrderStatus = 5;
// that.g[index].IsApplyForCancel = 1; that.g[index].IsApplyForCancel = 1;
// } }
// }else{//在待付款的页面时候的操作处理 }else{//在待付款的页面时候的操作处理
// if (that.Cancelmsg.Type == 1) { if (that.Cancelmsg.Type == 1) {
// uni.showToast({ uni.showToast({
// title: res.message, title: res.message,
// icon: 'none' icon: 'none'
// }) })
// that.g.splice(that.index, 1); that.g.splice(that.index, 1);
// } else { } else {
// uni.showToast({ uni.showToast({
// title: "取消成功,请等待审核", title: "取消成功,请等待审核",
// position: "bottom", position: "bottom",
// icon: "none", icon: "none",
// duration: 2000, duration: 2000,
// }); });
// // that.msg.pageIndex = 1; // that.msg.pageIndex = 1;
// // that.g = []; // that.g = [];
// // that.init(); // that.init();
// this.change(5) this.change(5)
// } }
// } }
// } }
// ); );
// } }
// }) })
}, },
getquxiao(item){//判断是否显示取消 getquxiao(item){//判断是否显示取消
let show = true let show = true
......
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