【bug】 理事会菜单权限

This commit is contained in:
fengachen
2021-12-23 14:35:20 +08:00
parent 6e39585706
commit a52f48b94b
2 changed files with 12 additions and 11 deletions
+7 -4
View File
@@ -5,7 +5,8 @@ Page({
* 页面的初始数据
*/
data: {
pageRouters:[]
pageRouters:[],
show:false // 是否展示理事会菜单
},
/**
* @description 跳转
@@ -102,15 +103,17 @@ Page({
key:'userInfo',
success(res){
console.log(res);
if(res.data.isCouncil === '1' ){
if(res.data.isCouncil == '1' ){
// 说明是理事会成员
that.setData({
'pageRouters':councilArr
'pageRouters':councilArr,
show:true
})
}else{
// 说明不是理事会成员
that.setData({
'pageRouters':notCouncilArr
'pageRouters':notCouncilArr,
show:false
})
}