Commit 63a87aa1 authored by 14699's avatar 14699

新增注销功能及隐私政策调整

parent c967d4e5
......@@ -10,6 +10,7 @@ module.exports = {
filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&"',
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_DEV&apiName="',
privacyPath: '"http://180.104.121.66:8090/html/PrivacyPolicy.html"',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.7.8"'
}
......@@ -10,6 +10,7 @@ module.exports = {
filePath: '"http://www.xcmgfs.com:8087/r/api/app/fileViewSvc?sysName=XCMG_PROD&apiName=file_view&"',
ocrPath:'"http://www.xcmgfs.com:8087/r/api"',
fileUploadSvcPath:'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="',
privacyPath: '"http://180.104.121.66:8090/html/PrivacyPolicy.html"',
appId: '"com.xcmg.app"',
currentVersion: '"0.5.0"'
}
......@@ -10,6 +10,7 @@ module.exports = {
filePath: '"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_UAT&apiName=file_view&"',
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
privacyPath: '"http://180.104.121.66:8090/html/PrivacyPolicy.html"',
appId: '"com.xcmg.app.dev"',
currentVersion: '"4.3.1"'
}
This diff is collapsed.
......@@ -111,6 +111,10 @@
<div slot="name">当前版本</div>
<div slot="content">{{ currentVersion }}</div>
</item>-->
<item @click.native="unRegiester">
<img slot="left-icon" src="@/assets/myInfo/exit.png" class="left-icon" >
<div slot="name">注销账号</div>
</item>
<item @click.native="logOut">
<img slot="left-icon" src="@/assets/myInfo/exit.png" class="left-icon" >
<div slot="name">退出登录</div>
......@@ -1178,6 +1182,43 @@ export default {
name: 'ContactUs',
})
},
unRegiester () {
let vm = this
hlsPopup.showConfirm({
title: '提示',
content: '确认注销?',
onConfirm: function (index) {
if (index === 1) {
let phone = window.localStorage.getItem('user_phone') ? window.localStorage.getItem('user_phone') : ''
if (!phone) return hlsPopup.showLongCenter('当前用户未绑定手机号,无法注销!')
let url = process.env.basePath + 'app_user_delete'
let params = {
phone: phone,
}
hlsHttp.post(url, params).then(function (res) {
if (res.result === 'S') {
hlsPopup.showLongCenter('注销成功')
setTimeout(function () {
let width = window.localStorage.getItem('width')
let height = window.localStorage.getItem('height')
if (window.localStorage.isReadPolicy === 'false') {
window.localStorage.clear()
} else if (window.localStorage.isReadPolicy === 'true') {
window.localStorage.clear()
window.localStorage.setItem('isReadPolicy', true)
} else {
window.localStorage.clear()
}
window.localStorage.setItem('width', width)
window.localStorage.setItem('height', height)
vm.$router.push('/login')
}, 100)
}
})
}
},
})
},
},
}
</script>
......
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