pages/student/index.js @@ -26,7 +26,11 @@ * 生命周期函数--监听页面显示 */ onShow() { if (typeof this.getTabBar === 'function' && this.getTabBar()) { this.getTabBar().setData({ active: 2 }) } }, /**