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
729679e3
Commit
729679e3
authored
Oct 13, 2021
by
Zhang Xiaojie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab.33.cn:chenqikuai/fns_front_2 into dev
parents
27e1dbfb
3fe04d55
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
13 deletions
+29
-13
index.ts
src/router/index.ts
+8
-8
setting.vue
src/views/withMenu/Mine/setting.vue
+21
-5
No files found.
src/router/index.ts
View file @
729679e3
...
@@ -127,14 +127,14 @@ const routes: Array<RouteRecordRaw> = [
...
@@ -127,14 +127,14 @@ const routes: Array<RouteRecordRaw> = [
/* webpackChunkName: "UserAgreement" */
'@/views/Auth/UserAgreement/index.vue'
/* webpackChunkName: "UserAgreement" */
'@/views/Auth/UserAgreement/index.vue'
),
),
},
},
//
{
{
//
path: '/auth/PwdSetting',
path
:
'/auth/PwdSetting'
,
//
name: 'PwdSetting',
name
:
'PwdSetting'
,
//
component: () =>
component
:
()
=>
//
import(
import
(
//
/* webpackChunkName: "PwdSetting" */ '@/views/Auth/PwdSetting/index.vue'
/* webpackChunkName: "PwdSetting" */
'@/views/Auth/PwdSetting/index.vue'
//
),
),
//
},
},
{
{
path
:
'/auth/PwdFind'
,
path
:
'/auth/PwdFind'
,
name
:
'PwdFind'
,
name
:
'PwdFind'
,
...
...
src/views/withMenu/Mine/setting.vue
View file @
729679e3
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
<div
class=
" text-xs text-gray-400 pt-1"
>
保障账户登录安全
</div>
<div
class=
" text-xs text-gray-400 pt-1"
>
保障账户登录安全
</div>
</div>
</div>
<div
class=
"flex items-center text-xs h-1 text-right"
>
<div
class=
"flex items-center text-xs h-1 text-right"
>
<span
v-if=
"hasPassword == 3"
>
设置
</span>
<span
v-if=
"hasPassword == 3"
@
click=
"pushRouter"
>
设置
</span>
<span
v-else-if=
"hasPassword == 2"
>
修改
</span>
<span
v-else-if=
"hasPassword == 2"
@
click=
"pushRouter"
>
修改
</span>
<icon
<icon
name=
"icon-gengduo"
name=
"icon-gengduo"
color=
"#8E92A3"
color=
"#8E92A3"
...
@@ -43,16 +43,18 @@ import { deleteUserMsg, getUserMsg } from '@/utils/userMsg'
...
@@ -43,16 +43,18 @@ import { deleteUserMsg, getUserMsg } from '@/utils/userMsg'
import
filter
from
"@/filter"
import
filter
from
"@/filter"
import
router
from
'@/router'
import
router
from
'@/router'
import
{
userLogout
}
from
'@/service/UserManagementService'
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
({
export
default
defineComponent
({
components
:
{
NavBar
,
Icon
},
components
:
{
NavBar
,
Icon
,
set
},
computed
:
{
computed
:
{
hasPassword
():
eAccountType
{
hasPassword
():
eAccountType
{
return
eAccountType
.
REG_PDSET
return
eAccountType
.
REG_PDSET
},
},
getPhone
(){
getPhone
(){
const
phone
=
getUserMsg
()?.
userInfo
.
phone
+
''
const
phone
=
getUserMsg
()?.
userInfo
.
phone
+
''
var
newphone
=
phone
.
replace
(
phone
.
substr
(
3
,
4
),
"
****"
)
var
newphone
=
phone
.
replace
(
phone
.
substr
(
3
,
5
),
"*
****"
)
return
newphone
return
newphone
}
}
},
},
...
@@ -69,6 +71,20 @@ export default defineComponent({
...
@@ -69,6 +71,20 @@ export default defineComponent({
filter
,
filter
,
clickLogout
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
>
</
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