Commit 85a04947 authored by qipeng's avatar qipeng

退出页面后 函数清理

parent 77918bf0
...@@ -650,9 +650,21 @@ export default { ...@@ -650,9 +650,21 @@ export default {
}) })
}, },
onHide: function () { onHide: function () {
uni.setScreenBrightness({// 恢复之前屏幕亮度 if(this.timer1) {
value: this.Brightness clearTimeout(this.timer1)
}) this.timer1 = null
}
if(this.timer2) {
clearTimeout(this.timer2)
this.timer2 = null
}
if(this.timer3) {
clearTimeout(this.timer3)
this.timer3 = null
}
uni.setScreenBrightness({// 恢复之前屏幕亮度
value: this.Brightness
})
}, },
onLoad(option) { onLoad(option) {
if(option.orderId!=undefined){ if(option.orderId!=undefined){
......
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