Commit d57af9f5 authored by qipeng's avatar qipeng

新增onhide

parent 0f2d501a
...@@ -650,21 +650,21 @@ export default { ...@@ -650,21 +650,21 @@ export default {
}) })
}, },
onHide: function () { onHide: function () {
if(this.timer1) { if(this.timer1) {
clearTimeout(this.timer1) clearTimeout(this.timer1)
this.timer1 = null this.timer1 = null
} }
if(this.timer2) { if(this.timer2) {
clearTimeout(this.timer2) clearTimeout(this.timer2)
this.timer2 = null this.timer2 = null
} }
if(this.timer3) { if(this.timer3) {
clearTimeout(this.timer3) clearTimeout(this.timer3)
this.timer3 = null this.timer3 = null
} }
uni.setScreenBrightness({// 恢复之前屏幕亮度 uni.setScreenBrightness({// 恢复之前屏幕亮度
value: this.Brightness value: this.Brightness
}) })
}, },
onLoad(option) { onLoad(option) {
if(option.orderId!=undefined){ if(option.orderId!=undefined){
......
...@@ -728,6 +728,14 @@ export default { ...@@ -728,6 +728,14 @@ export default {
} }
//隐藏加载框 uni.hideLoading() //隐藏加载框 uni.hideLoading()
}, },
onHide: function () {
if(this.timerOutClear) {
clearTimeout(this.timerOutClear)
this.timerOutClear = null
}
//隐藏加载框
uni.hideLoading()
},
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment