update: 添加注销二次确认弹窗和风险说明

This commit is contained in:
mixtan 2025-09-16 19:22:41 +08:00
parent 2a3e8574e8
commit da52f07cbe

View File

@ -34,17 +34,25 @@ export default {
return false; return false;
} }
await DelUser({ uni.showModal({
title: "账户安全提示",
content: `账号注销操作不可恢复,为了确保账号资金和个人信息安全,请谨慎操作,一旦注销账号,您的手机号和个人隐私信息将会自动解绑或清空数据,确定要注销账号吗?`,
success: async (res) => {
if (res.confirm) {
await DelUser({
cancelReason: this.text, cancelReason: this.text,
}); });
uni.showToast({ uni.showToast({
title: `注销成功`, title: `账号已注销`,
}); });
setTimeout(() => { setTimeout(() => {
this.$store.dispatch("user/LoginOut", true); this.$store.dispatch("user/LoginOut", true);
}, 2000); }, 2000);
}
},
});
}, },
}, },
}; };