Commit f3a0b200 authored by Smile's avatar Smile

谷歌单独页面注销登录

parent 7664952a
...@@ -7,7 +7,8 @@ export default { ...@@ -7,7 +7,8 @@ export default {
this.$route.path != '/pages/register/register' && this.$route.path != '/pages/register/register' &&
this.$route.path != '/pages/activityShare/index' && this.$route.path != '/pages/activityShare/index' &&
this.$route.path != '/pages/register/shareRegister' && this.$route.path != '/pages/register/shareRegister' &&
this.$route.path != '/pages/register/downloadTips' this.$route.path != '/pages/register/downloadTips' &&
this.$route.path != '/pages/deletion/login'
) { ) {
uni.redirectTo({ uni.redirectTo({
url: './pages/login/login' url: './pages/login/login'
......
...@@ -12,6 +12,18 @@ ...@@ -12,6 +12,18 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{
"path": "pages/deletion/login",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/deletion/deletion",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/site/site", "path": "pages/site/site",
"style": { "style": {
......
<template>
<view class="main">
<view class="header-toper">
<view class="start-bar"></view>
<view class="header-toper-title">
<image src="../../static/img/back.png" mode="" @click="backOrder"></image>
<text>{{$lang.lang.deletion.deletionTitle}}</text>
</view>
</view>
<view class="logo1">
<text>{{ $lang.lang.deletion.deletionText }}</text>
</view>
<view class="login-btns">
<view class="" @click="loginOff">{{ $lang.lang.deletion.deletionButton }}</view>
</view>
</view>
</template>
<script>
import storage from "@/utils/storage";
export default {
components: {
},
data() {
return {
}
},
onLoad() {
},
methods: {
backOrder(){
uni.navigateTo({
url:'../deletion/login'
})
},
loginOff() {
let that = this
uni.showModal({
title: '提示',
content: that.$lang.lang.site.logNotice,
success: function (res) {
if (res.confirm) {
that.$request.deleted('/app-api/member/member/cancellation').then((res) => {
if (res.code == 0 && res.data) {
storage.clean()
uni.showToast({
title: that.$lang.lang.site.offSuccess,
icon: 'none'
})
uni.setStorageSync('Authorization', '')
setTimeout(() => {
uni.reLaunch({
url: '../deletion/login'
})
// uni.reLaunch({
// url: '../login/login'
// })
}, 2000)
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
}
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
},
}
}
</script>
<style scoped>
page{
width: 100%;
position: relative;
background: url(@/static/img/login-bg2.png) no-repeat;
background-size:cover;
height: 100%;
}
.logo1{
padding: 30% 7%;
color: red;
font-size: 24px;
}
.login-btns{
margin-top:20%;
padding: 0 50upx;
}
.login-btns view{
width: 100%;
height: 96upx;
border-radius: 100upx;
color: var(--c0);
font-size: 36upx;
font-weight: 700;
display: flex;
justify-content: center;
align-items: center;
background: #5BA8DC;
margin-bottom: 60upx;
}
</style>
\ No newline at end of file
This diff is collapsed.
...@@ -31,6 +31,7 @@ import finsh from './en/finsh.js' ...@@ -31,6 +31,7 @@ import finsh from './en/finsh.js'
import orderInfo from './en/orderInfo.js' import orderInfo from './en/orderInfo.js'
import price from './en/price.js' import price from './en/price.js'
import site from './en/site.js' import site from './en/site.js'
import deletion from './en/deletion.js'
export default { export default {
notices, notices,
auth, auth,
...@@ -65,4 +66,5 @@ export default { ...@@ -65,4 +66,5 @@ export default {
orderInfo, orderInfo,
price, price,
site, site,
deletion
} }
export default {
"deletionTitle": "Delete My Account",
"deletionText": "Warning: Clicking the button below will delete all your data in our application (including account password, personal information, consultations, and suggestions), and this action cannot be undone. Please proceed with caution!",
"deletionButton": "Delete Account",
"deletion": "Note: Please log in before deleting your account."
}
\ No newline at end of file
...@@ -31,6 +31,7 @@ import finsh from './zh/finsh.js' ...@@ -31,6 +31,7 @@ import finsh from './zh/finsh.js'
import orderInfo from './zh/orderInfo.js' import orderInfo from './zh/orderInfo.js'
import price from './zh/price.js' import price from './zh/price.js'
import site from './zh/site.js' import site from './zh/site.js'
import deletion from './zh/deletion.js'
export default { export default {
notices, notices,
auth, auth,
...@@ -65,4 +66,5 @@ export default { ...@@ -65,4 +66,5 @@ export default {
orderInfo, orderInfo,
price, price,
site, site,
deletion
} }
export default {
"deletionTitle": "注销我的账户",
"deletionText":"注意:点击以下按钮,将删除您在我应用中的所有数据(包含账号密码、个人资料、咨询、建议),并且不可恢复,请谨慎操作!",
"deletionButton":"注销账户",
"deletion":"注意:注销用户前请先登录"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment