订单中心页
This commit is contained in:
parent
df496f5ed3
commit
c238955d11
@ -26,6 +26,7 @@ Page({
|
|||||||
showOrderMsg:false,
|
showOrderMsg:false,
|
||||||
showMsgOrder:false,
|
showMsgOrder:false,
|
||||||
time: '',
|
time: '',
|
||||||
|
canPay:true,
|
||||||
inquiry_no: '',
|
inquiry_no: '',
|
||||||
amount_total: "",
|
amount_total: "",
|
||||||
discount_amount:'',
|
discount_amount:'',
|
||||||
@ -207,11 +208,15 @@ Page({
|
|||||||
|
|
||||||
},
|
},
|
||||||
handleThrottle:throttle(function() {
|
handleThrottle:throttle(function() {
|
||||||
console.log(this.data.isLock)
|
if(!this.data.canPay){
|
||||||
|
wx.showToast({
|
||||||
|
title: '订单异常',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(!this.data.isLock){
|
if(!this.data.isLock){
|
||||||
console.log(11111)
|
|
||||||
this.goPayPlatform();
|
this.goPayPlatform();
|
||||||
console.log(222222)
|
|
||||||
this.setData({
|
this.setData({
|
||||||
isLock:true
|
isLock:true
|
||||||
});
|
});
|
||||||
@ -447,6 +452,13 @@ Page({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}).catch(error=>{
|
||||||
|
if(error.code==500){
|
||||||
|
this.setData({
|
||||||
|
canPay:false
|
||||||
|
})
|
||||||
|
};
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
orderMsg(callback){
|
orderMsg(callback){
|
||||||
|
|||||||
@ -120,6 +120,8 @@ function request(url, method, data, loding = false) {
|
|||||||
}
|
}
|
||||||
reject(res.data);
|
reject(res.data);
|
||||||
|
|
||||||
|
}else if(Number(res.data.code) == 500){
|
||||||
|
reject(res.data);
|
||||||
} else {
|
} else {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: res.data.message,
|
title: res.data.message,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user