|
|
@@ -79,7 +79,7 @@ export default {
|
|
|
if(res.data.returnStatus == 'SUCCESS'){
|
|
|
uni.hideLoading()
|
|
|
that.showSuccess = true
|
|
|
- clearInterval(that.T)
|
|
|
+ //clearInterval(that.T)
|
|
|
setTimeout(function(){
|
|
|
that.payFinish()
|
|
|
},1500)
|
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
if(res.data.returnStatus == 'SUCCESS'){
|
|
|
uni.hideLoading()
|
|
|
that.showSuccess = true
|
|
|
- clearInterval(that.T)
|
|
|
+ //clearInterval(that.T)
|
|
|
setTimeout(function(){
|
|
|
that.payFinish()
|
|
|
},1500)
|
|
|
@@ -118,14 +118,16 @@ export default {
|
|
|
that.payFinish()
|
|
|
},1500)
|
|
|
}else{
|
|
|
- that.T = setInterval(function(){
|
|
|
- that.checkPay()
|
|
|
- }, 1000);
|
|
|
+ that.$msg(res.msg)
|
|
|
+ that.goPay = 0
|
|
|
+ // that.T = setInterval(function(){
|
|
|
+ // that.checkPay()
|
|
|
+ // }, 1000)
|
|
|
}
|
|
|
}else{
|
|
|
- that.T = setInterval(function(){
|
|
|
- that.checkPay()
|
|
|
- }, 1000);
|
|
|
+ // that.T = setInterval(function(){
|
|
|
+ // that.checkPay()
|
|
|
+ // }, 1000)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -149,14 +151,14 @@ export default {
|
|
|
if(res.data.returnStatus == 'SUCCESS'){
|
|
|
uni.hideLoading()
|
|
|
that.showSuccess = true
|
|
|
- clearInterval(that.T)
|
|
|
+ //clearInterval(that.T)
|
|
|
setTimeout(function(){
|
|
|
that.payFinish()
|
|
|
},1500)
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- clearInterval(that.T)
|
|
|
+ //clearInterval(that.T)
|
|
|
cancelOrderFn({id:this.orderId}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
that.$msg('已取消')
|