This commit is contained in:
haomingming
2023-04-11 18:41:46 +08:00
parent 3f40c4c237
commit 4f14aad6f3
53 changed files with 657 additions and 205 deletions
+8
View File
@@ -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)