信达小程序
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.

46 lines
1.0 KiB

1 month ago
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=xd/account/cancellation",
data: {},
loading: true,
}).then(() => {
app.globalData.backPage = "";
app.globalData.loginState = "";
1 month ago
app.globalData.zdUserInfo = {};
1 month ago
app.startLogin();
wx.reLaunch({
1 month ago
url: "/patient/pages/login/index",
1 month ago
});
});
}
},
});
},
});