You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
621 B
31 lines
621 B
const app = getApp<IAppOption>() |
|
|
|
Page({ |
|
data: { |
|
path: '', |
|
}, |
|
onLoad(options) { |
|
this.setData({ |
|
path: options.path ? decodeURIComponent(options.path) : '/pages/index/index', |
|
}) |
|
}, |
|
handleLoginOut() { |
|
wx.ajax({ |
|
method: 'POST', |
|
url: '?r=igg4/doctor/account/reg-logout', |
|
data: {}, |
|
}).then((_res) => { |
|
app.globalData.loginType = 1 |
|
app.globalData.anyWhere = true |
|
app.globalData.first = true |
|
wx.reLaunch({ |
|
url: this.data.path, |
|
}) |
|
}) |
|
}, |
|
handleBackHome() { |
|
wx.reLaunch({ |
|
url: '/doctor/pages/d_home/index', |
|
}) |
|
}, |
|
})
|
|
|