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.
35 lines
689 B
35 lines
689 B
2 months ago
|
const app = getApp<IAppOption>()
|
||
|
|
||
|
Page({
|
||
|
data: {},
|
||
|
onLoad() {},
|
||
|
handleChanegTel() {
|
||
|
wx.navigateTo({
|
||
|
url: '/doctor/pages/changeTel/index',
|
||
|
})
|
||
|
},
|
||
|
handleLoginOut() {
|
||
|
wx.showModal({
|
||
|
title: '确定退出登录吗?',
|
||
|
confirmColor: 'rgba(246, 74, 58, 1)',
|
||
|
success: (res) => {
|
||
|
if (res.confirm) {
|
||
|
wx.ajax({
|
||
|
method: 'POST',
|
||
|
url: '?r=wtx/doctor/account/reg-logout',
|
||
|
data: {},
|
||
|
}).then(() => {
|
||
|
app.startLogin(() => {
|
||
|
wx.reLaunch({
|
||
|
url: '/pages/index/index',
|
||
|
})
|
||
|
})
|
||
|
})
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
},
|
||
|
})
|
||
|
|
||
|
export {}
|