Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
5453aaa6
Commit
5453aaa6
authored
Oct 15, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6e3eff9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
39 deletions
+39
-39
setting.vue
src/views/withMenu/Mine/setting.vue
+39
-39
No files found.
src/views/withMenu/Mine/setting.vue
View file @
5453aaa6
<
template
>
<
template
>
<div>
<div>
<nav-bar
title=
"个人中心"
:style=
"
{ 'background-color':'#F7F7FA'}"/>
<nav-bar
title=
"个人中心"
:style=
"
{ 'background-color': '#F7F7FA' }" />
<!-- 头像 -->
<!-- 头像 -->
<div
class=
"px-5 py-3 flex justify-between items-center border-b border-gray-200"
>
<div
class=
"px-5 py-3 flex justify-between items-center border-b border-gray-200"
>
<span
class=
" text-sm font-semibold"
>
头像
</span>
<span
class=
"text-sm font-semibold"
>
头像
</span>
<img
src=
"../../../assets/icons/avatar.png"
class=
" w-12 h-12 rounded-full"
>
<img
src=
"../../../assets/icons/avatar.png"
class=
"w-12 h-12 rounded-full"
/>
</div>
</div>
<!-- 手机号码 -->
<!-- 手机号码 -->
<div
class=
"px-5 py-5 flex justify-between items-center border-b border-gray-200"
>
<div
class=
"px-5 py-5 flex justify-between items-center border-b border-gray-200"
>
<span
class=
" text-sm font-semibold"
>
手机号码
</span>
<span
class=
"text-sm font-semibold"
>
手机号码
</span>
<span
class=
" text-sm"
>
{{
getPhone
}}
</span>
<span
class=
"text-sm"
>
{{
getPhone
}}
</span>
</div>
</div>
<!-- 登陆密码 -->
<!-- 登陆密码 -->
<div
class=
"px-5 py-2 items-center border-b border-gray-200"
>
<div
class=
"px-5 py-2 items-center border-b border-gray-200"
>
<div
class=
"flex justify-between items-center"
>
<div
class=
"flex justify-between items-center"
>
<div>
<div>
<div
class=
" text-sm font-semibold"
>
设置密码
</div>
<div
class=
"text-sm font-semibold"
>
设置密码
</div>
<div
class=
" text-xs text-gray-400 pt-1"
>
保障账户登录安全
</div>
<div
class=
"text-xs text-gray-400 pt-1"
>
保障账户登录安全
</div>
</div>
<div
class=
"flex items-center text-xs h-1 text-right"
>
<span
@
click=
"pushRouter"
>
设置
</span>
<icon
name=
"icon-gengduo"
color=
"#8E92A3"
size=
"12"
class=
" inline-block align-text-bottom"
/>
</div>
</div>
</div>
<div
class=
"flex items-center text-xs h-1 text-right"
@
click=
"pushRouter"
>
<span>
设置
</span>
<icon
name=
"icon-gengduo"
color=
"#8E92A3"
size=
"12"
class=
"inline-block align-text-bottom"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
@
click=
"clickLogout"
class=
"logout-btn flex items-center justify-center fixed"
>
退出登录
</div>
<div
@
click=
"clickLogout"
class=
"logout-btn flex items-center justify-center fixed"
>
退出登录
</div>
...
@@ -44,18 +44,18 @@ import router from '@/router'
...
@@ -44,18 +44,18 @@ import router from '@/router'
import
{
userLogout
}
from
'@/service/UserManagementService'
import
{
userLogout
}
from
'@/service/UserManagementService'
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
NavBar
,
Icon
},
components
:
{
NavBar
,
Icon
},
data
(){
data
()
{
return
{
return
{
role
:
''
role
:
''
}
}
},
},
computed
:
{
computed
:
{
hasPassword
():
eAccountType
{
hasPassword
():
eAccountType
{
return
eAccountType
.
REG_NOPD
return
eAccountType
.
REG_NOPD
},
},
getPhone
(){
getPhone
()
{
const
phone
=
getUserMsg
()?.
userInfo
.
phone
+
''
const
phone
=
getUserMsg
()?.
userInfo
.
phone
+
''
var
newphone
=
phone
.
replace
(
phone
.
substr
(
3
,
5
),
"*****"
)
var
newphone
=
phone
.
replace
(
phone
.
substr
(
3
,
5
),
"*****"
)
return
newphone
return
newphone
}
}
},
},
...
@@ -73,14 +73,14 @@ export default defineComponent({
...
@@ -73,14 +73,14 @@ export default defineComponent({
clickLogout
clickLogout
}
}
},
},
methods
:{
methods
:
{
pushRouter
(){
pushRouter
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'PwdSetting'
,
name
:
'PwdSetting'
,
query
:
{
query
:
{
phone
:
this
.
userMsg
?.
userInfo
.
phone
phone
:
this
.
userMsg
?.
userInfo
.
phone
}
}
})
})
},
},
}
}
})
})
...
...
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