|
@@ -43,18 +43,18 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async getPaymentStatus() {
|
|
|
- let orderTimer = setInterval(async () => {
|
|
|
- this.orderTimer = orderTimer
|
|
|
+ this.orderTimer = setInterval(async () => {
|
|
|
try {
|
|
|
const res = await cloudPayCheck({ orderNo: this.orderNo })
|
|
|
if(res.data) {
|
|
|
- clearInterval(orderTimer)
|
|
|
+ clearInterval(this.orderTimer)
|
|
|
+ clearTimeout(this.initTimer)
|
|
|
this.$message.success('您已成功缴费')
|
|
|
this.$listeners.getList()
|
|
|
this.$emit('close', true)
|
|
|
}
|
|
|
} catch(e) {
|
|
|
- clearInterval(orderTimer)
|
|
|
+ clearInterval(this.orderTimer)
|
|
|
}
|
|
|
}, 5000);
|
|
|
}
|