zhaoxiaohai 3 years ago
parent
commit
0c3c296f42
2 changed files with 5 additions and 1 deletions
  1. 4 0
      pages/tabbar/mine/index.js
  2. 1 1
      pages/tabbar/mine/index.wxml

+ 4 - 0
pages/tabbar/mine/index.js

@@ -9,6 +9,7 @@ Page({
         userMsg: {},
         pathList: [], //功能权限
         bdWeChat: false, //绑定微信权限
+        teamAuth:'',//团队管理权限列表 JSON字符串 用于传递
     },
     /**
      * 生命周期函数--监听页面加载
@@ -31,6 +32,9 @@ Page({
                         color: "var(--assist)",
                         path: `/${v.path}`
                     })
+                    this.setData({
+                        teamAuth: JSON.stringify(v.meta.auth)
+                    })
                     break;
                 case "changePassword":
                     pathList.push({

+ 1 - 1
pages/tabbar/mine/index.wxml

@@ -23,7 +23,7 @@
     </My_card>
 </view>
 <My_card custom-class='operating' hover>
-    <navigator class="item" url="{{item.path}}" wx:for="{{pathList}}">
+    <navigator class="item" url="{{item.name=='团队管理'?item.path+'?auth='+teamAuth:item.path}}" wx:for="{{pathList}}">
         <view class="con">
             <view class="label">
                 <text class="iconfont {{item.icon}}" style="color: {{item.color}};" />