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.

32 lines
619 B

1 week ago
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',
3 days ago
url: '?r=zd/doctor/account/reg-logout',
1 week ago
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',
})
},
})