|
@@ -50,12 +50,17 @@ Page({
|
|
* 生命周期函数--监听页面显示
|
|
* 生命周期函数--监听页面显示
|
|
*/
|
|
*/
|
|
onShow() {
|
|
onShow() {
|
|
- this.getTabBar().init()
|
|
|
|
|
|
+ const { shop_status } = app.globalData.userInfo
|
|
|
|
|
|
|
|
+ this.getTabBar().init()
|
|
this.setData({
|
|
this.setData({
|
|
sessionId: wx.getStorageSync(sessionStorageKey),
|
|
sessionId: wx.getStorageSync(sessionStorageKey),
|
|
userInfo: app.globalData.userInfo
|
|
userInfo: app.globalData.userInfo
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ if (shop_status === 1 && this.getTabBar().data.list.findIndex(item => item.pagePath === 'pages/news/news') === -1) {
|
|
|
|
+ this.getTabBar().setData({ list: app.globalData.tabBarList })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|