|
@@ -12,29 +12,12 @@ Component({
|
|
|
methods: {
|
|
|
init() {
|
|
|
this.queryUserMsg();
|
|
|
- // let authlist = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['个人中心']);
|
|
|
let pathList = [{
|
|
|
name: "修改登录密码",
|
|
|
icon: "icon-a-wodeguanyuyingyong",
|
|
|
color: "var(--warning)",
|
|
|
- path: `/pages/changePassword/index`
|
|
|
+ path: `/pages/index/userCenter/changePassword/index`
|
|
|
}]
|
|
|
- /* if (authlist.length != 0) authlist[0].apps.forEach(v => {
|
|
|
- switch (v.name) {
|
|
|
- case "teamManagement":
|
|
|
- console.log(v)
|
|
|
- pathList.unshift({
|
|
|
- name: "团队管理",
|
|
|
- icon: "icon-a-wodetuanduiguanli",
|
|
|
- color: "var(--assist)",
|
|
|
- path: `/${v.path}`
|
|
|
- })
|
|
|
- this.setData({
|
|
|
- teamAuth: JSON.stringify(v.meta.auth)
|
|
|
- })
|
|
|
- break;
|
|
|
- }
|
|
|
- }); */
|
|
|
this.setData({
|
|
|
pathList
|
|
|
});
|
|
@@ -78,6 +61,7 @@ Component({
|
|
|
let loginMsg = wx.getStorageSync("loginMsg");
|
|
|
wx.clearStorageSync();
|
|
|
wx.setStorageSync('loginMsg', loginMsg)
|
|
|
+ wx.setStorageSync('isAgree', true)
|
|
|
setTimeout(() => {
|
|
|
wx.reLaunch({
|
|
|
url: '/pages/login/phone',
|