|
@@ -14,17 +14,14 @@ Component({
|
|
|
let pages = getCurrentPages();
|
|
|
let prevPage = pages[pages.length - 1];
|
|
|
if (prevPage.route == 'pages/login/selectSite' || prevPage.route.includes('pages/tabbar/')) {
|
|
|
- let auth = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['个人中心', '消息中心']);
|
|
|
+ let auth = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['个人中心']);
|
|
|
let auth2 = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['营销工具'], ['营销物料']);
|
|
|
- let list = ['首页'];
|
|
|
+ let list = ['首页', '信息'];
|
|
|
auth.forEach(v => {
|
|
|
switch (v.systemmodulename) {
|
|
|
case "个人中心":
|
|
|
list.push('我的')
|
|
|
break;
|
|
|
- case "消息中心":
|
|
|
- list.push('信息')
|
|
|
- break;
|
|
|
}
|
|
|
})
|
|
|
if (auth2.length == 1) list.push('营销物料');
|