Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
dcdc573c
Commit
dcdc573c
authored
Nov 01, 2023
by
14699
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增注销功能及隐私政策调整
parent
2449fa11
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
227 additions
and
172 deletions
+227
-172
dev.env.js
config/dev.env.js
+1
-0
prod.env.js
config/prod.env.js
+1
-0
uat.env.js
config/uat.env.js
+1
-0
PrivacyPolicy.vue
src/pages/myInfo/PrivacyPolicy.vue
+183
-172
my-info.vue
src/pages/myInfo/my-info.vue
+41
-0
No files found.
config/dev.env.js
View file @
dcdc573c
...
...
@@ -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.1.2"'
}
config/prod.env.js
View file @
dcdc573c
...
...
@@ -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"'
}
config/uat.env.js
View file @
dcdc573c
...
...
@@ -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"'
}
src/pages/myInfo/PrivacyPolicy.vue
View file @
dcdc573c
This diff is collapsed.
Click to expand it.
src/pages/myInfo/my-info.vue
View file @
dcdc573c
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment