fix: support profile editor swipe and show account deletion entry

This commit is contained in:
2026-11-03 22:38:01 +08:00
parent 8be6d9b1ab
commit 41bcb793da
6 changed files with 59 additions and 8 deletions
+4
View File
@@ -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();