@@ -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({
@@ -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}};" />