【bug】 理事会菜单权限
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<!--pages/standardRouter/standardRouter.wxml-->
|
||||
|
||||
|
||||
|
||||
<view class="{{pageRputers.length !== 4 ? 'wrap-length4': 'wrap'}}">
|
||||
<view class="{{show ? 'wrap': 'wrap-length4'}}">
|
||||
<view class="select-box">
|
||||
<view class="select">
|
||||
<view class="select-item" wx:for="{{pageRouters}}" wx:for-item="item" wx:key="path" bindtap="clickSelect"
|
||||
@@ -13,10 +11,10 @@
|
||||
</view>
|
||||
<text>{{item.name}}</text>
|
||||
</view>
|
||||
<text class="select-item" wx:if="{{pageRouters.length !== 4}}"></text>
|
||||
<text class="select-item" wx:if="{{pageRouters.length !== 4}}"></text>
|
||||
<text class="select-item" wx:if="{{pageRouters.length !== 4}}"></text>
|
||||
<text class="select-item" wx:if="{{pageRouters.length !== 4}}"></text>
|
||||
<text class="select-item" wx:if="{{show}}"></text>
|
||||
<text class="select-item" wx:if="{{show}}"></text>
|
||||
<text class="select-item" wx:if="{{show}}"></text>
|
||||
<text class="select-item" wx:if="{{show}}"></text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user