优化
This commit is contained in:
@@ -110,6 +110,17 @@ Page({
|
||||
},
|
||||
|
||||
onLoad(){
|
||||
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
this.getMenuButtonBound();
|
||||
|
||||
api.yiShiIndex().then(response => {
|
||||
console.log(response);
|
||||
let avatar = response.data.info.avatar;
|
||||
@@ -180,15 +191,6 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
currentTab: 0 //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
}
|
||||
this.getMenuButtonBound();
|
||||
},
|
||||
|
||||
onADChange(){
|
||||
// console.log("onADChange");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user