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
shixiang
9 years ago
Commit
0839e11da72bc88eb3d1fba36a6a8f2825df4b65
1 parent
1140e01c
去掉测试用的debug请求参数 review -叶弯弯
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
js/containers/ModifyPasswordContainer.js
js/reducers/user/userActions.js
js/services/UserService.js
js/containers/ModifyPasswordContainer.js
View file @
0839e11
...
...
@@ -95,7 +95,7 @@ export default class ModifyPasswordContainer extends Component {
onModifySubmitPress
(){
if
(
this
.
props
.
user
.
password
.
repeat
==
this
.
props
.
user
.
password
.
new
){
this
.
props
.
actions
.
pwdModifySubmit
(
this
.
props
.
user
.
profile
.
pid
,
this
.
props
.
user
.
password
.
old
,
this
.
props
.
user
.
password
.
new
);
this
.
props
.
actions
.
pwdModifySubmit
(
this
.
props
.
user
.
profile
.
pid
,
this
.
props
.
user
.
password
.
old
,
this
.
props
.
user
.
password
.
new
,
this
.
props
.
user
.
password
.
repeat
);
}
else
{
Alert
.
alert
(
'密码不相同'
...
...
js/reducers/user/userActions.js
View file @
0839e11
...
...
@@ -193,11 +193,11 @@ export function pwdModifyRepeat(pwd) {
};
}
export
function
pwdModifySubmit
(
pid
,
oldPwd
,
newPwd
)
{
export
function
pwdModifySubmit
(
pid
,
oldPwd
,
newPwd
,
newPwdConfirm
)
{
let
userService
=
new
UserService
();
return
dispatch
=>
{
dispatch
(
loginRequest
());
return
userService
.
modifyPassword
(
pid
,
oldPwd
,
newPwd
)
return
userService
.
modifyPassword
(
pid
,
oldPwd
,
newPwd
,
newPwdConfirm
)
.
then
(
function
(
json
)
{
Alert
.
alert
(
'修改成功'
,
...
...
js/services/UserService.js
View file @
0839e11
...
...
@@ -18,7 +18,7 @@ export default class UserService {
account
:
account
,
password
:
password
,
method
:
'app.shops.login'
,
debug
:
'XYZ'
,
}
})
.
then
(
data
=>
{
...
...
@@ -29,16 +29,16 @@ export default class UserService {
});
}
async
modifyPassword
(
pid
,
oldPwd
,
newPwd
)
{
async
modifyPassword
(
pid
,
oldPwd
,
newPwd
,
newPwdConfirm
)
{
return
this
.
api
.
get
({
url
:
'/gateway'
,
body
:
{
pid
:
pid
,
oldPwd
:
oldPwd
,
newPwd
:
newPwd
,
newPwdConfirm
:
newPwd
,
newPwdConfirm
:
newPwd
Confirm
,
method
:
'app.shops.changePwd'
,
debug
:
'XYZ'
,
}
})
.
then
(
data
=>
{
...
...
Please
register
or
login
to post a comment