update: 添加注销二次确认弹窗和风险说明
This commit is contained in:
parent
2a3e8574e8
commit
da52f07cbe
@ -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);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user