|
|
@ -41,7 +41,6 @@ Component({ |
|
|
|
], |
|
|
|
], |
|
|
|
userInfo: {}, |
|
|
|
userInfo: {}, |
|
|
|
showRed: false, |
|
|
|
showRed: false, |
|
|
|
anyWhere: false, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config: {} as any, |
|
|
|
config: {} as any, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -58,15 +57,11 @@ Component({ |
|
|
|
const active = this.data.list.findIndex((item) => item.pagePath === pagePath); |
|
|
|
const active = this.data.list.findIndex((item) => item.pagePath === pagePath); |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
active, |
|
|
|
active, |
|
|
|
anyWhere: app.globalData.anyWhere, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
showRed: app.globalData.showRed, |
|
|
|
showRed: app.globalData.showRed, |
|
|
|
}); |
|
|
|
}); |
|
|
|
// getApp().registerListener(() => {
|
|
|
|
// getApp().registerListener(() => {
|
|
|
|
// this.setData({
|
|
|
|
|
|
|
|
// anyWhere: app.globalData.anyWhere,
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// wx.ajax({
|
|
|
|
// wx.ajax({
|
|
|
|
// method: 'GET',
|
|
|
|
// method: 'GET',
|
|
|
|
// url: '?r=zd/common/get-config',
|
|
|
|
// url: '?r=zd/common/get-config',
|
|
|
@ -85,9 +80,6 @@ Component({ |
|
|
|
const { list, config } = this.data; |
|
|
|
const { list, config } = this.data; |
|
|
|
const pagePath = list[index].pagePath; |
|
|
|
const pagePath = list[index].pagePath; |
|
|
|
app.globalData.BeginnerCardId = ''; |
|
|
|
app.globalData.BeginnerCardId = ''; |
|
|
|
this.setData({ |
|
|
|
|
|
|
|
anyWhere: app.globalData.anyWhere, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
if (pagePath == '/patient/pages/my/index') { |
|
|
|
if (pagePath == '/patient/pages/my/index') { |
|
|
|
app.zdPermissionVerification(2, 0, `/patient/pages/index/index`).then(() => { |
|
|
|
app.zdPermissionVerification(2, 0, `/patient/pages/index/index`).then(() => { |
|
|
|
wx.reLaunch({ |
|
|
|
wx.reLaunch({ |
|
|
|