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
3fe04d55
Commit
3fe04d55
authored
Oct 13, 2021
by
lshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码设置
parent
ca006bb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
16 deletions
+32
-16
index.ts
src/router/index.ts
+8
-8
setting.vue
src/views/withMenu/Mine/setting.vue
+24
-8
No files found.
src/router/index.ts
View file @
3fe04d55
...
...
@@ -127,14 +127,14 @@ const routes: Array<RouteRecordRaw> = [
/* webpackChunkName: "UserAgreement" */
'@/views/Auth/UserAgreement/index.vue'
),
},
//
{
//
path: '/auth/PwdSetting',
//
name: 'PwdSetting',
//
component: () =>
//
import(
//
/* webpackChunkName: "PwdSetting" */ '@/views/Auth/PwdSetting/index.vue'
//
),
//
},
{
path
:
'/auth/PwdSetting'
,
name
:
'PwdSetting'
,
component
:
()
=>
import
(
/* webpackChunkName: "PwdSetting" */
'@/views/Auth/PwdSetting/index.vue'
),
},
{
path
:
'/auth/PwdFind'
,
name
:
'PwdFind'
,
...
...
src/views/withMenu/Mine/setting.vue
View file @
3fe04d55
...
...
@@ -12,15 +12,15 @@
<span
class=
" text-sm"
>
{{
getPhone
}}
</span>
</div>
<!-- 登陆密码 -->
<div
class=
"px-5 py-2 items-center border-b border-gray-200"
>
<div
class=
"flex justify-between items-center"
>
<div
class=
"px-5 py-2 items-center border-b border-gray-200"
>
<div
class=
"flex justify-between items-center"
>
<div>
<div
class=
" text-sm font-semibold"
>
登陆密码
</div>
<div
class=
" text-xs text-gray-400 pt-1"
>
保障账户登录安全
</div>
</div>
<div
class=
"flex items-center text-xs h-1 text-right"
>
<span
v-if=
"hasPassword == 3"
>
设置
</span>
<span
v-else-if=
"hasPassword == 2"
>
修改
</span>
<span
v-if=
"hasPassword == 3"
@
click=
"pushRouter"
>
设置
</span>
<span
v-else-if=
"hasPassword == 2"
@
click=
"pushRouter"
>
修改
</span>
<icon
name=
"icon-gengduo"
color=
"#8E92A3"
...
...
@@ -28,7 +28,7 @@
class=
" inline-block align-text-bottom"
/>
</div>
</div>
</div>
</div>
</div>
<div
@
click=
"clickLogout"
class=
"logout-btn flex items-center justify-center fixed"
>
退出登录
</div>
...
...
@@ -43,16 +43,18 @@ import { deleteUserMsg, getUserMsg } from '@/utils/userMsg'
import
filter
from
"@/filter"
import
router
from
'@/router'
import
{
userLogout
}
from
'@/service/UserManagementService'
import
{
userChangePwd
,
userLogin
}
from
'@/service/UserManagementService'
import
{
eSmsType
,
sendVerifyCode
}
from
'@/service/VerificationService'
import
set
from
'@/views/Auth/PwdSetting/index.vue'
export
default
defineComponent
({
components
:
{
NavBar
,
Icon
},
components
:
{
NavBar
,
Icon
,
set
},
computed
:
{
hasPassword
():
eAccountType
{
return
eAccountType
.
REG_PDSET
},
getPhone
(){
const
phone
=
getUserMsg
()?.
userInfo
.
phone
+
''
var
newphone
=
phone
.
replace
(
phone
.
substr
(
3
,
4
),
"
****"
)
var
newphone
=
phone
.
replace
(
phone
.
substr
(
3
,
5
),
"*
****"
)
return
newphone
}
},
...
...
@@ -69,6 +71,20 @@ export default defineComponent({
filter
,
clickLogout
}
},
methods
:{
pushRouter
(){
console
.
log
(
'123'
);
if
(
this
.
hasPassword
==
3
){
this
.
$router
.
push
({
name
:
'PwdSetting'
})
}
else
if
(
this
.
hasPassword
==
2
){
this
.
$router
.
push
({
name
:
'PwdModify'
})
}
},
}
})
</
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