|
|
@@ -328,6 +328,7 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
this.initPopup() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@@ -335,9 +336,8 @@ |
|
|
|
this.upDateBulidIngObj() |
|
|
|
this.LOADING = true |
|
|
|
this.getMenu() |
|
|
|
|
|
|
|
|
|
|
|
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); |
|
|
|
|
|
|
|
if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) { |
|
|
|
this.methodsisshow = false; |
|
|
|
} else { |
|
|
@@ -516,13 +516,16 @@ |
|
|
|
//获取权限 |
|
|
|
getMenu() { |
|
|
|
this.$u.get("/user/getMenu").then(data => { |
|
|
|
console.log(data) |
|
|
|
uni.setStorageSync("weapp_session_Menu_data", data) |
|
|
|
this.Menulist = uni.getStorageSync('weapp_session_Menu_data'); |
|
|
|
if (this.Menulist.findIndex(item => item.name == '今日接待弹框') != -1) { |
|
|
|
this.modalShow = true |
|
|
|
} else { |
|
|
|
this.modalShow = false |
|
|
|
let remind = uni.getStorageSync("remind"); |
|
|
|
uni.setStorageSync("remind",1); |
|
|
|
if(this.Menulist.length){ |
|
|
|
if (this.Menulist.findIndex(item => item.name == '今日接待弹框') != -1) { |
|
|
|
this.modalShow = remind==0?true:false |
|
|
|
} else { |
|
|
|
this.modalShow = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|