|
|
@@ -50,7 +50,8 @@ export default {
|
|
|
showQrCode:false,
|
|
|
payQrCodeUrl:'',
|
|
|
payWay:0,
|
|
|
- isCashier:true
|
|
|
+ isCashier:true,
|
|
|
+ INT:null
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -79,14 +80,17 @@ export default {
|
|
|
},
|
|
|
onUnload() {
|
|
|
uni.removeStorageSync('globalCodePayId')
|
|
|
+ if(!this.$util.isEmpty(this.INT)){
|
|
|
+ clearInterval(this.INT)
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
checkPayInfo(){
|
|
|
let that = this
|
|
|
- setInterval(function(){
|
|
|
+ this.INT = setInterval(function(){
|
|
|
scanPayCheck({id:that.orderId}).then(res=>{
|
|
|
if(res.code == 1 && res.data.returnStatus == 'SUCCESS'){
|
|
|
- that.$util.pageTo({ url: '/admin/billing/result',type:2,query: {orderId:this.orderId,orderSn:this.orderSn,title:'支付成功'}})
|
|
|
+ that.$util.pageTo({ url: '/admin/billing/result',type:2,query: {orderId:that.orderId,orderSn:that.orderSn,title:'支付成功'}})
|
|
|
}
|
|
|
})
|
|
|
}, 4000);
|