zhaoxiaohai 2 năm trước cách đây
mục cha
commit
6cceea740a
1 tập tin đã thay đổi với 2 bổ sung5 xóa
  1. 2 5
      custom-tab-bar/index.js

+ 2 - 5
custom-tab-bar/index.js

@@ -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('营销物料');