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.
45 lines
1.0 KiB
45 lines
1.0 KiB
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 = ""; |
|
app.globalData.userInfo = {}; |
|
app.startLogin(); |
|
wx.reLaunch({ |
|
url: "/pages/login/index", |
|
}); |
|
}); |
|
} |
|
}, |
|
}); |
|
}, |
|
});
|
|
|