Commit 0b2b2f7c by 陈玉桐

fix 离开首页清除定时器

parent 6d0f319f
......@@ -415,6 +415,10 @@ Page({
currentSwiper: e.detail.current
})
},
onHide() {
clearInterval(this.data.indexTimer)
clearInterval(this.data.refreshTimer)
},
onShow() {
let me = this;
if(me.data.indexTimer){
......@@ -706,8 +710,6 @@ Page({
});
},
onHide() {
},
// 个人设置
set:function(){
if(this.data.bindDeviceStatus==1){
......
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