diff --git a/pages/distribution/distribution.js b/pages/distribution/distribution.js index 708d871..125b7a6 100644 --- a/pages/distribution/distribution.js +++ b/pages/distribution/distribution.js @@ -3,6 +3,19 @@ const app = getApp(); let self = null, os = app.globalData.setting; var regeneratorRuntime = require('../../utils/runtime.js'); +// Component({ +// pageLifetimes: { +// show() { +// if (typeof this.getTabBar === 'function' && this.getTabBar()) { +// this.getTabBar().setData({ +// active: 2 +// }) +// } +// } +// } +// }) + + Page({ /** @@ -57,7 +70,13 @@ Page({ /** * 生命周期函数--监听页面显示 */ - onShow: function () { + onShow: function () { + if (typeof this.getTabBar === 'function' && this.getTabBar()) { + this.getTabBar().setData({ + active: 2 + }) + }; + var self=this,userinfo=app.globalData.userInfo; if(!app.globalData.userInfo){ return false;