111
This commit is contained in:
@@ -106,6 +106,7 @@
|
||||
})
|
||||
|
||||
if (_this.page.seconds <= 0) {
|
||||
uni.hideLoading()
|
||||
clearInterval(_this.page.threadA)
|
||||
_this.page.threadA = null
|
||||
}
|
||||
@@ -116,13 +117,17 @@
|
||||
});
|
||||
},
|
||||
onUnload() {
|
||||
if (this.page.threadA != null) {
|
||||
clearInterval(this.page.threadA)
|
||||
}
|
||||
let bus = this.data.bus
|
||||
for (var i = 0; i < bus.length; i++) {
|
||||
uni.$emit(bus[i] + '')
|
||||
}
|
||||
try {
|
||||
if (this.page.threadA != null) {
|
||||
clearInterval(this.page.threadA)
|
||||
}
|
||||
} catch (e) {
|
||||
//TODO handle the exception
|
||||
}
|
||||
},
|
||||
// 函数
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user