Authored by 于良

修改密码成功增加提示框 review by yewanwan

... ... @@ -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'}]
);
... ...