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.
|
|
|
const app = getApp<IAppOption>();
|
|
|
|
|
|
|
|
Page({
|
|
|
|
data: {
|
|
|
|
durgInfo: {},
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
const _this = this;
|
|
|
|
const eventChannel = this.getOpenerEventChannel();
|
|
|
|
eventChannel.on('durgInfo', function (data) {
|
|
|
|
console.log(data);
|
|
|
|
_this.setData({
|
|
|
|
durgInfo: data,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
handleBack() {
|
|
|
|
wx.navigateBack();
|
|
|
|
},
|
|
|
|
handleCancellation() {
|
|
|
|
wx.showModal({
|
|
|
|
title: '确认注销',
|
|
|
|
content: '',
|
|
|
|
confirmColor: '#cf5375',
|
|
|
|
success(res) {
|
|
|
|
if (res.confirm) {
|
|
|
|
wx.ajax({
|
|
|
|
method: 'GET',
|
|
|
|
url: '?r=zd/account/cancellation',
|
|
|
|
data: {},
|
|
|
|
loading: true,
|
|
|
|
}).then(() => {
|
|
|
|
app.globalData.backPage = '';
|
|
|
|
app.globalData.loginState = '';
|
|
|
|
app.globalData.userInfo = {};
|
|
|
|
app.startLogin(() => {
|
|
|
|
wx.reLaunch({
|
|
|
|
url: '/patient/pages/login/index',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export {};
|