|
|
@@ -579,9 +579,12 @@ export default {
|
|
|
this.timer = setInterval(() => { // 通过定时器每间隔一会去请求查询微信支付状态(具体参数根据项目需要而定)
|
|
|
this.handleQueryWxPayStatus(data.orderNo);
|
|
|
}, 1000);
|
|
|
- // this.timerPayWxQRcode = setInterval(() => { // 刷新微信支付二维码
|
|
|
- // this.handlePayWxQRcode();
|
|
|
- // }, 180000);
|
|
|
+ this.timerPayWxQRcode = setInterval(() => { // 刷新微信支付二维码
|
|
|
+ console.log('刷新微信支付二维码');
|
|
|
+ clearInterval(this.timer); // 清除定时器;
|
|
|
+ clearInterval(this.timerPayWxQRcode);
|
|
|
+ this.handlePayWxQRcode();
|
|
|
+ }, 60000);
|
|
|
})
|
|
|
},
|
|
|
handleQueryWxPayStatus(orderNo) { // 查询微信支付状态
|
|
|
@@ -599,8 +602,6 @@ export default {
|
|
|
this.recharge = false;
|
|
|
clearInterval(this.timer); // 清除定时器;
|
|
|
clearInterval(this.timerPayWxQRcode);
|
|
|
- }else{
|
|
|
- this.handlePayWxQRcode();
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.log(err)
|