111
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user