lilishop-uniapp/pages/mine/set/securityCenter/securityCenter.vue

64 lines
1.5 KiB
Vue
Raw Normal View History

2021-05-13 11:03:32 +08:00
<template>
<view class="securityCenter">
<u-cell-group>
<u-cell-item title="修改密码" @click="navigateTo('/pages/mine/set/securityCenter/editPassword')"></u-cell-item>
2023-05-29 15:19:31 +08:00
<u-cell-item title="注销账户" @click="zhuxiao"></u-cell-item>
2021-05-13 11:03:32 +08:00
</u-cell-group>
</view>
</template>
<script>
export default {
data() {
return {
mobile: "", //存储手机号
};
},
methods: {
2023-05-29 15:19:31 +08:00
zhuxiao(){
uni.showModal({
title: "警告",
content: "您确定要注销当前账号吗?",
confirmText: "确定注销",
confirmColor: "#FF0000",
cancelText: "取消",
success: (res) => {
if (res.confirm) {
uni.showModal({
title: "谨慎操作",
content: "再次向您确认,您确定要注销当前账号吗?",
confirmText: "坚持注销",
confirmColor: "#FF0000",
cancelText: "取消",
success: (res) => {
if (res.confirm) {
uni.showToast({
title: "您的注销申请已经提交,待管理员审核后。会自动注销当前账号",
duration: 10000,
});
}
},
});
}
},
});
},
2021-05-13 11:03:32 +08:00
navigateTo(url) {
uni.navigateTo({
2021-08-26 09:48:32 +08:00
url: url,
2021-05-13 11:03:32 +08:00
});
},
},
};
</script>
<style lang="scss" scoped>
.securityCenter {
.u-cell {
line-height: normal;
}
}
</style>