Commit 0b2b2f7c by 陈玉桐

fix 离开首页清除定时器

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