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
6d4e4200
Commit
6d4e4200
authored
Nov 01, 2023
by
14699
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注销账号调整
parent
63a87aa1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
41 deletions
+41
-41
my-info.vue
src/pages/myInfo/my-info.vue
+0
-41
setting.vue
src/pages/myInfo/setting.vue
+41
-0
No files found.
src/pages/myInfo/my-info.vue
View file @
6d4e4200
...
@@ -111,10 +111,6 @@
...
@@ -111,10 +111,6 @@
<
div
slot
=
"name"
>
当前版本
<
/div
>
<
div
slot
=
"name"
>
当前版本
<
/div
>
<
div
slot
=
"content"
>
{{
currentVersion
}}
<
/div
>
<
div
slot
=
"content"
>
{{
currentVersion
}}
<
/div
>
<
/item>--
>
<
/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"
>
<
item
@
click
.
native
=
"logOut"
>
<
img
slot
=
"left-icon"
src
=
"@/assets/myInfo/exit.png"
class
=
"left-icon"
>
<
img
slot
=
"left-icon"
src
=
"@/assets/myInfo/exit.png"
class
=
"left-icon"
>
<
div
slot
=
"name"
>
退出登录
<
/div
>
<
div
slot
=
"name"
>
退出登录
<
/div
>
...
@@ -1182,43 +1178,6 @@ export default {
...
@@ -1182,43 +1178,6 @@ export default {
name: 'ContactUs',
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>
</script>
...
...
src/pages/myInfo/setting.vue
View file @
6d4e4200
...
@@ -33,6 +33,10 @@
...
@@ -33,6 +33,10 @@
</div>
</div>
<div
slot=
"right-icon"
style=
"float:right;color:#383F45;opacity:0.4;"
>
当前版本
{{
currentVersion
}}
</div>
<div
slot=
"right-icon"
style=
"float:right;color:#383F45;opacity:0.4;"
>
当前版本
{{
currentVersion
}}
</div>
</item>
</item>
<item
@
click
.
native=
"unRegiester()"
>
<div
slot=
"name"
style=
"color:red;"
>
注销账号
</div>
<div
class=
"arrow_right"
><img
src=
"@/assets/myInfo/exit.png"
></div>
</item>
<!--
<item
v-if=
"user_bp_type!='MANAGER'"
@
click
.
native=
"unBind()"
>
<!--
<item
v-if=
"user_bp_type!='MANAGER'"
@
click
.
native=
"unBind()"
>
<div
slot=
"name"
style=
"color:#656464;"
>
解除绑定
</div>
<div
slot=
"name"
style=
"color:#656464;"
>
解除绑定
</div>
<div
class=
"arrow_right"
><img
src=
"@/assets/myinfo/arrow_right.png"
></div>
<div
class=
"arrow_right"
><img
src=
"@/assets/myinfo/arrow_right.png"
></div>
...
@@ -586,6 +590,43 @@ export default {
...
@@ -586,6 +590,43 @@ export default {
hlsPopup
.
hideLoading
()
hlsPopup
.
hideLoading
()
}
}
},
},
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
>
</
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