Commit 9f7161a4 authored by Sandy's avatar Sandy

修改密码功能

parent b9523645
......@@ -454,7 +454,7 @@
<rect key="frame" x="92" y="21" width="267" height="47.5"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<textInputTraits key="textInputTraits" secureTextEntry="YES"/>
</textField>
</subviews>
<constraints>
......@@ -518,7 +518,7 @@
<rect key="frame" x="92" y="21" width="267" height="47.5"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<textInputTraits key="textInputTraits" secureTextEntry="YES"/>
</textField>
</subviews>
<constraints>
......@@ -582,7 +582,7 @@
<rect key="frame" x="92" y="21" width="267" height="47.5"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
<textInputTraits key="textInputTraits" secureTextEntry="YES"/>
</textField>
</subviews>
<constraints>
......
......@@ -42,22 +42,22 @@
- (void)httpChangePsw {
ModifyPasswordRequest *param = [[ModifyPasswordRequest alloc] init];
// param.userName = kUser.userName;
// param.oldPassword = self.textFieldOldPsw.text;
// param.fnewPassword = self.textFieldNewPsw.text;
// [MBProgressHUD j_loading:@"修改中…"];
// WS(weakSelf);
// [kHttp POST:kModifyPswUrl parameters:[param toDictionary] complete:^(id _Nullable response, NSError * _Nullable error) {
// [MBProgressHUD j_hideLoadingView];
// if (kRsSuccess(response)) {
// [MBProgressHUD j_success:@"密码修改成功!" complete:^{
// [weakSelf.navigationController popViewControllerAnimated:YES];
// }];
// }else{
// kShowRsMsg(response);
//
// }
// }];
param.userName = kGlobal.loginResult.merchantUser.userName;
param.oldPassword = self.textFieldOldPsw.text;
param.fnewPassword = self.textFieldNewPsw.text;
[MBProgressHUD j_loading:@"修改中…"];
WS(weakSelf);
[kHttp POST:kModifyPswUrl parameters:[param toDictionary] complete:^(id _Nullable response, NSError * _Nullable error) {
[MBProgressHUD j_hideLoadingView];
if (kRsSuccess(response)) {
[MBProgressHUD j_success:@"密码修改成功!" complete:^{
[weakSelf.navigationController popViewControllerAnimated:YES];
}];
}else{
kShowRsMsg(response);
}
}];
}
......
......@@ -22,7 +22,7 @@ static NSString *const BASE_IP = @"http://whcar.gomoretech.com";
static NSString *const kLoginUrl = @"merchantUser/login";
static NSString *const kUpgradeUrl = @"merchantUser/getUpgrade";
static NSString *const kModifyPswUrl = @"stationUser/modifyPassword";
static NSString *const kModifyPswUrl = @"merchantUser/modifyPassword";
static NSString *const kResetPswUrl = @"stationUser/resetPassword";
static NSString *const kGetUserInfoUrl = @"account/get";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment