Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
yh_vendor
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
于良
9 years ago
Commit
14070d2c67c42fab167125185290fa16215028cb
1 parent
3496dd17
修改密码成功增加提示框 review by yewanwan
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
js/reducers/user/userActions.js
js/reducers/user/userActions.js
View file @
14070d2
...
...
@@ -196,7 +196,6 @@ export function modifySubmitRequest() {
}
export
function
modifySubmitSuccess
()
{
Actions
.
pop
();
return
{
type
:
PWD_MODIFY_SUCCESS
};
...
...
@@ -215,11 +214,15 @@ export function pwdModifySubmit(pid, oldPwd, newPwd,newPwdConfirm) {
return
userService
.
modifyPassword
(
pid
,
oldPwd
,
newPwd
,
newPwdConfirm
)
.
then
(
function
(
json
)
{
dispatch
(
modifySubmitSuccess
());
dispatch
(
logout
());
Alert
.
alert
(
'修改成功'
,
''
,
[{
text
:
'OK'
,
onPress
:
()
=>
dispatch
(
logout
())}]
);
})
.
catch
((
error
)
=>
{
Alert
.
alert
(
error
.
message
,
error
.
message
||
'服务错误'
,
''
,
[{
text
:
'OK'
}]
);
...
...
Please
register
or
login
to post a comment