fix: support profile editor swipe and show account deletion entry
This commit is contained in:
@@ -66,6 +66,10 @@ Page({
|
||||
|
||||
deleteAccount: async function() {
|
||||
if(this._deletingAccount)return;
|
||||
if (this.data.hasPartner) {
|
||||
wx.showModal({title:'暂无法注销',content:'请先完成情侣解绑后再注销账号;处于解绑申请或72小时冷静期内,也需要等待解绑完成。',showCancel:false,confirmText:'知道了'});
|
||||
return;
|
||||
}
|
||||
this._deletingAccount=true;
|
||||
try {
|
||||
const preview=await api.accountDeletionPreview();
|
||||
|
||||
Reference in New Issue
Block a user