优化
This commit is contained in:
@@ -47,6 +47,9 @@ Page({
|
||||
this.getTabBar().setData({
|
||||
active: 2 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
|
||||
this.getTabBar().startInterval()
|
||||
|
||||
}
|
||||
this.getMenuButtonBound();
|
||||
|
||||
@@ -76,6 +79,11 @@ Page({
|
||||
console.error(errors);
|
||||
})
|
||||
},
|
||||
onHide(){
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().stopInterval()
|
||||
}
|
||||
},
|
||||
go(e){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url)
|
||||
|
||||
Reference in New Issue
Block a user