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
de5f973f
Commit
de5f973f
authored
Oct 13, 2021
by
lshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置密码
parent
729679e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
17 deletions
+22
-17
index.vue
src/views/Auth/PwdSetting/index.vue
+13
-2
setting.vue
src/views/withMenu/Mine/setting.vue
+9
-15
No files found.
src/views/Auth/PwdSetting/index.vue
View file @
de5f973f
<
template
>
<div
class=
"px-5"
>
<pwd-setting
:phone=
"
$route.query.phone
"
:phone=
"
Phone()
"
:sendSmsFunc=
"sendSmsFunc"
:setPwdFunc=
"setPwdFunc"
/>
...
...
@@ -11,9 +11,20 @@
<
script
lang=
"ts"
>
import
PwdSetting
from
"./PwdSetting.vue"
;
import
{
defineComponent
}
from
"vue"
;
import
{
getUserMsg
}
from
'@/utils/userMsg'
export
default
defineComponent
({
components
:
{
PwdSetting
},
inject
:
[
"sendSmsFunc"
,
"setPwdFunc"
],
methods
:
{},
created
(){
console
.
log
(
this
.
$route
.
query
.
phone
,
'router'
);
this
.
Phone
()
},
methods
:
{
Phone
(){
const
phone
=
getUserMsg
()?.
userInfo
.
phone
+
''
console
.
log
(
phone
,
'phone'
);
return
phone
}
},
});
</
script
>
src/views/withMenu/Mine/setting.vue
View file @
de5f973f
...
...
@@ -15,12 +15,11 @@
<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-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"
@
click=
"pushRouter"
>
设置
</span>
<span
v-else-if=
"hasPassword == 2"
@
click=
"pushRouter"
>
修改
</span>
<span
@
click=
"pushRouter"
>
设置
</span>
<icon
name=
"icon-gengduo"
color=
"#8E92A3"
...
...
@@ -43,14 +42,16 @@ 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
,
set
},
components
:
{
NavBar
,
Icon
},
data
(){
return
{
role
:
''
}
},
computed
:
{
hasPassword
():
eAccountType
{
return
eAccountType
.
REG_
PDSET
return
eAccountType
.
REG_
NOPD
},
getPhone
(){
const
phone
=
getUserMsg
()?.
userInfo
.
phone
+
''
...
...
@@ -74,16 +75,9 @@ export default defineComponent({
},
methods
:{
pushRouter
(){
console
.
log
(
'123'
);
if
(
this
.
hasPassword
==
3
){
this
.
$router
.
push
({
name
:
'PwdSetting'
})
}
else
if
(
this
.
hasPassword
==
2
){
this
.
$router
.
push
({
name
:
'PwdModify'
})
}
},
}
})
...
...
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