Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FuLiMini
Project
Overview
Details
Activity
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
wangjian
FuLiMini
Commits
44811ba5
Commit
44811ba5
authored
Apr 26, 2022
by
wangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
118faf20
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
mine.vue
pages/mine/mine.vue
+1
-1
SetPwd.vue
pagesA/SetPwd/SetPwd.vue
+1
-0
setting.vue
pagesA/setting/setting.vue
+6
-0
index.js
store/index.js
+5
-1
No files found.
pages/mine/mine.vue
View file @
44811ba5
...
...
@@ -86,7 +86,7 @@
this
.
getUserInfo
()
console
.
log
(
this
.
$store
.
state
);
if
(
this
.
$store
.
state
.
selectAccount
)
{
this
.
$store
.
commit
(
'refreshSelectAccount'
,
tru
e
)
this
.
$store
.
commit
(
'refreshSelectAccount'
,
fals
e
)
this
.
toast
(
'账号切换成功'
)
}
},
...
...
pagesA/SetPwd/SetPwd.vue
View file @
44811ba5
...
...
@@ -29,6 +29,7 @@
this
.
$net
.
post
(
'/staff/password/setting'
,
{
from
:
'my'
,
pwd
:
this
.
pwd
,
randomCode
:
this
.
randomCode
})
.
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$store
.
commit
(
'refreshSetPwdSuccess'
,
true
)
this
.
$router
.
pop
()
}
else
{
this
.
toast
(
res
.
message
)
...
...
pagesA/setting/setting.vue
View file @
44811ba5
...
...
@@ -34,8 +34,14 @@
hasPwd
:
this
.
$store
.
state
.
userInfo
.
settingCheckCode
===
1
}
},
onLoad
(
options
)
{
},
onShow
()
{
this
.
hasPwd
=
this
.
$store
.
state
.
userInfo
.
settingCheckCode
===
1
if
(
this
.
$store
.
state
.
setPwdSuccess
)
{
this
.
$store
.
commit
(
'refreshSetPwdSuccess'
,
false
)
this
.
toast
(
'支付密码设置成功'
)
}
},
methods
:
{
changePwd
()
{
...
...
store/index.js
View file @
44811ba5
...
...
@@ -13,7 +13,8 @@ const store = createStore({
isLogin
:
false
,
userInfo
:
{},
submitGoods
:
{},
selectAccount
:
false
selectAccount
:
false
,
setPwdSuccess
:
false
},
mutations
:
{
refreshUserLogin
(
state
,
isLogin
)
{
...
...
@@ -27,6 +28,9 @@ const store = createStore({
},
refreshSelectAccount
(
state
,
value
)
{
state
.
selectAccount
=
value
},
refreshSetPwdSuccess
(
state
,
value
)
{
state
.
setPwdSuccess
=
value
}
},
getters
:
{
...
...
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