wangjiahai 1 year ago
parent
commit
ddadc6252c
  1. 11
      uni_modules/common-pay/pages/success/success.vue

11
uni_modules/common-pay/pages/success/success.vue

@ -106,6 +106,7 @@
}) })
if (_this.page.seconds <= 0) { if (_this.page.seconds <= 0) {
uni.hideLoading()
clearInterval(_this.page.threadA) clearInterval(_this.page.threadA)
_this.page.threadA = null _this.page.threadA = null
} }
@ -116,13 +117,17 @@
}); });
}, },
onUnload() { onUnload() {
if (this.page.threadA != null) {
clearInterval(this.page.threadA)
}
let bus = this.data.bus let bus = this.data.bus
for (var i = 0; i < bus.length; i++) { for (var i = 0; i < bus.length; i++) {
uni.$emit(bus[i] + '') uni.$emit(bus[i] + '')
} }
try {
if (this.page.threadA != null) {
clearInterval(this.page.threadA)
}
} catch (e) {
//TODO handle the exception
}
}, },
// //
methods: { methods: {

Loading…
Cancel
Save