|
|
@@ -18,7 +18,7 @@
|
|
|
<view style="text-align:center;margin:10upx auto 10upx auto;">
|
|
|
<view class="balance" style="margin-bottom:25upx;" v-if="goPay == 0">扫客户付款码</view>
|
|
|
<view class="balance" style="margin-bottom:25upx;" v-if="goPay == 1">请求中</view>
|
|
|
- <view style="text-algin:center;">
|
|
|
+ <view style="text-align:center;">
|
|
|
<image style="width:40upx;height:40upx;margin:0 auto;" :src="`${constant.imgUrl}/icon/loading.gif`" v-if="goPay == 1" mode="scaleToFill" />
|
|
|
</view>
|
|
|
<view style="margin-top:20upx;">
|
|
|
@@ -74,6 +74,11 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
},
|
|
|
+ onUnload() {
|
|
|
+ if(this.T){
|
|
|
+ clearInterval(this.T)
|
|
|
+ }
|
|
|
+ },
|
|
|
onLoad(option) {
|
|
|
this.orderId = option.orderId
|
|
|
this.actPrice = option.actPrice
|
|
|
@@ -167,14 +172,9 @@ export default {
|
|
|
that.payFinish()
|
|
|
},1200)
|
|
|
}else{
|
|
|
- that.T = setInterval(function(){
|
|
|
- that.checkPay()
|
|
|
- }, 1000);
|
|
|
+ that.$msg(res.msg)
|
|
|
+ that.goPay = 0
|
|
|
}
|
|
|
- }else{
|
|
|
- that.T = setInterval(function(){
|
|
|
- that.checkPay()
|
|
|
- }, 1000);
|
|
|
}
|
|
|
})
|
|
|
},
|