【修改】 标协会员菜单权限
This commit is contained in:
@@ -5,38 +5,7 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
pageRputers: [
|
||||
{
|
||||
path: "../standardBasicInfo/standardBasicInfo",
|
||||
imgPath:'../../assets/images/basic-info.png',
|
||||
val: "1",
|
||||
name: "基本信息"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=1", // type 是会议类型
|
||||
imgPath:'../../assets/images/notice.png',
|
||||
val: "2",
|
||||
name: "标准宣贯"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=2",
|
||||
imgPath:'../../assets/images/train.png',
|
||||
val: "3",
|
||||
name: "培训会"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=3",
|
||||
imgPath:'../../assets/images/info.png',
|
||||
val: "4",
|
||||
name: "信息交流会"
|
||||
},
|
||||
{
|
||||
path: "../council/council?type=standard&meetingType=6",
|
||||
imgPath:'../../assets/images/lishi.png',
|
||||
val: "5",
|
||||
name: "理事会"
|
||||
},
|
||||
]
|
||||
pageRouters:[]
|
||||
},
|
||||
/**
|
||||
* @description 跳转
|
||||
@@ -68,7 +37,85 @@ Page({
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
const that = this
|
||||
// 理事会成员展示的
|
||||
let councilArr = [
|
||||
{
|
||||
path: "../standardBasicInfo/standardBasicInfo",
|
||||
imgPath:'../../assets/images/basic-info.png',
|
||||
val: "1",
|
||||
name: "基本信息"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=1", // type 是会议类型
|
||||
imgPath:'../../assets/images/notice.png',
|
||||
val: "2",
|
||||
name: "标准宣贯"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=2",
|
||||
imgPath:'../../assets/images/train.png',
|
||||
val: "3",
|
||||
name: "培训会"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=3",
|
||||
imgPath:'../../assets/images/info.png',
|
||||
val: "4",
|
||||
name: "信息交流会"
|
||||
},
|
||||
{
|
||||
path: "../council/council?type=standard&meetingType=6",
|
||||
imgPath:'../../assets/images/lishi.png',
|
||||
val: "5",
|
||||
name: "理事会"
|
||||
},
|
||||
]
|
||||
// 非理事会成员展示的
|
||||
let notCouncilArr = [
|
||||
{
|
||||
path: "../standardBasicInfo/standardBasicInfo",
|
||||
imgPath:'../../assets/images/basic-info.png',
|
||||
val: "1",
|
||||
name: "基本信息"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=1", // type 是会议类型
|
||||
imgPath:'../../assets/images/notice.png',
|
||||
val: "2",
|
||||
name: "标准宣贯"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=2",
|
||||
imgPath:'../../assets/images/train.png',
|
||||
val: "3",
|
||||
name: "培训会"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=standard&meetingType=2&tbMeetingType=3",
|
||||
imgPath:'../../assets/images/info.png',
|
||||
val: "4",
|
||||
name: "信息交流会"
|
||||
}
|
||||
]
|
||||
wx.getStorage({
|
||||
key:'userInfo',
|
||||
success(res){
|
||||
console.log(res);
|
||||
if(res.data.isCouncil === '1' ){
|
||||
// 说明是理事会成员
|
||||
that.setData({
|
||||
'pageRouters':councilArr
|
||||
})
|
||||
}else{
|
||||
// 说明不是理事会成员
|
||||
that.setData({
|
||||
'pageRouters':notCouncilArr
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user