注销账号.

This commit is contained in:
18631081161 2025-05-29 18:35:35 +08:00
parent ebf5bac3e5
commit 36d705deb7
4 changed files with 151 additions and 16 deletions

View File

@ -147,13 +147,21 @@ class BasePlatform {
if (uni.getStorageSync('token') != null && uni.getStorageSync('token') != "") {
m.push({
id: 8,
show: true,
title: '退出登录',
icon: 'my/exit.png',
path: '',
handler: this.handleLogout.bind(this)
})
id: 8,
show: true,
title: '注销账号',
icon: 'my/s10.png',
path: '/pages/user/cancel-account-page',
handler: this.navigateToPath.bind(this)
}),
m.push({
id: 8,
show: true,
title: '退出登录',
icon: 'my/exit.png',
path: '',
handler: this.handleLogout.bind(this)
})
}
return m;
}

View File

@ -2,8 +2,8 @@
"name" : "友达赏",
"appid" : "__UNI__2E6CB39",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 101,
"versionName" : "1.0.3",
"versionCode" : 103,
"transformPx" : false,
/* 5+App */
"app-plus" : {
@ -22,7 +22,7 @@
/* */
"modules" : {
"Payment" : {},
"Camera" : {}
"Share" : {}
},
/* */
"distribute" : {
@ -53,11 +53,7 @@
"ios" : {
"dSYMs" : false,
"urltypes" : "youdas",
"idfa" : false,
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "为了设置您的个人头像,我们需要访问您的照片图库。这将允许您从相册中选择现有照片作为头像。我们只会在您主动选择更换头像时访问照片,未经您的许可绝不会查看您的其他照片。",
"NSPhotoLibraryAddUsageDescription" : "我们需要访问权限以便将生成的海报保存到您的相册中。这样您就可以方便地在照片应用中查看和分享这些海报。我们只会在您明确选择保存时才将图片存入相册。"
}
"idfa" : false
},
/* SDK */
"sdkConfigs" : {
@ -196,5 +192,6 @@
"enable" : false
}
},
"fallbackLocale" : "zh-Hans"
"fallbackLocale" : "zh-Hans",
"sassImplementationName" : "node-sass"
}

View File

@ -403,6 +403,13 @@
"style": {
"navigationStyle": "custom"
}
},
{
"path" : "pages/user/cancel-account-page",
"style" :
{
"navigationStyle": "custom"
}
}
],
"subPackages": [{

View File

@ -0,0 +1,123 @@
<template>
<page-container title="注销账号" :showBack="true">
<view class="" style="margin: 50rpx 40rpx 0;">
<text>尊敬的用户您正式开始有关帐号的注销流程前我们先为您做出如下特别说明注销本帐号后除法律法规另有规定外您在该帐号下的个人信息将进行删除或匿名化处理且此前已关联该帐号的相关产品与服务将不再关联该帐号一旦注销完成将无法恢复请您谨慎操作若您经过慎重考虑后仍执意决定注销本帐号的请您务必先行仔细阅读和充分理解本帐号注销协议
本协议并同意本协议全部内容您按照我们的注销操作流程开始注销流程的或者您勾选本注销协议并开始下一步操作的均视为您已经同意和遵守本协议全部内容为确保注销的顺利完成请您在锁定期内不要登录和使用该帐号否则视为您撤销注销该帐号注销流程大概需要7-15个工作日如您在注销后需要再次使用我们的服务的欢迎您重新注册登录</text>
</view>
<view class="center" style="width: 100%; margin-top: 100rpx;">
<view class="center" @click="cancelpop()"
style="width: 416rpx; height: 80rpx; background-color: #333333; border-radius: 16rpx;">
<text style="font-size: 28rpx; color: #CDEF27;">确定注销</text>
</view>
</view>
<uni-popup ref="cancel_pop" type="center" maskBackgroundColor="rgba(0,0,0,0.6)">
<view class="" style="width: 480rpx; height: 500rpx; ">
<view class="column align-center"
style="width: 100%; height: 200rpx; background-color: white; border-radius: 16rpx;">
<text style="font-size: 28rpx; font-weight: 600; margin-top: 10rpx;">注销账户</text>
<text style="font-size: 24rpx; margin: 30rpx 20rpx 0; text-align: center;">你确定要注销当前账户吗?
7-15个工作日内注销账户</text>
</view>
<view class="row justify-between" style="margin-top: 40rpx;">
<view class="center" @click="closePop()"
style="width: 220rpx; height: 72rpx; background-color: #F5F5F5; border-radius: 16rpx;">
<text style="color: #333333; font-size: 24rpx; font-weight: 600;">取消</text>
</view>
<view class="center" @click="cancelAccount()"
style="width: 220rpx; height: 72rpx; background-color: #D8FD24; border-radius: 16rpx;">
<text style="color: #333333; font-size: 24rpx; font-weight: 600">确认</text>
</view>
</view>
</view>
</uni-popup>
</page-container>
</template>
<script>
export default {
components: {},
data() {
return {
}
},
onLoad(e) {
},
methods: {
cancelpop() {
this.$refs.cancel_pop.open();
},
closePop() {
this.$refs.cancel_pop.close();
},
//
cancelAccount() {
this.req({
url: 'user_log_off',
data: {
type: "0"
},
success: res => {
if (res.status == 1) {
this.$c.toast({
title: res.msg,
duration: 500,
success: () => {
this.getdata()
}
})
}
this.closePop();
uni.switchTab({
url: '/pages/shouye/index'
});
}
})
}
}
}
</script>
<style>
>>>span {
text-wrap: wrap !important;
}
.text_2,
.text_3 {
font-size: 28rpx;
margin-top: 60rpx;
}
.text_1 {
margin-top: 30rpx;
font-size: 32rpx;
color: #fff;
}
.guize {
width: 100vw;
min-height: 100vh;
position: relative;
padding: 24rpx;
background-color: #FFFFFF;
box-sizing: border-box;
}
</style>