Commit 9f7161a4 authored by Sandy's avatar Sandy

修改密码功能

parent b9523645
...@@ -454,7 +454,7 @@ ...@@ -454,7 +454,7 @@
<rect key="frame" x="92" y="21" width="267" height="47.5"/> <rect key="frame" x="92" y="21" width="267" height="47.5"/>
<nil key="textColor"/> <nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/> <fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/>
</textField> </textField>
</subviews> </subviews>
<constraints> <constraints>
...@@ -518,7 +518,7 @@ ...@@ -518,7 +518,7 @@
<rect key="frame" x="92" y="21" width="267" height="47.5"/> <rect key="frame" x="92" y="21" width="267" height="47.5"/>
<nil key="textColor"/> <nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/> <fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/>
</textField> </textField>
</subviews> </subviews>
<constraints> <constraints>
...@@ -582,7 +582,7 @@ ...@@ -582,7 +582,7 @@
<rect key="frame" x="92" y="21" width="267" height="47.5"/> <rect key="frame" x="92" y="21" width="267" height="47.5"/>
<nil key="textColor"/> <nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/> <fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/> <textInputTraits key="textInputTraits" secureTextEntry="YES"/>
</textField> </textField>
</subviews> </subviews>
<constraints> <constraints>
......
...@@ -42,22 +42,22 @@ ...@@ -42,22 +42,22 @@
- (void)httpChangePsw { - (void)httpChangePsw {
ModifyPasswordRequest *param = [[ModifyPasswordRequest alloc] init]; ModifyPasswordRequest *param = [[ModifyPasswordRequest alloc] init];
// param.userName = kUser.userName; param.userName = kGlobal.loginResult.merchantUser.userName;
// param.oldPassword = self.textFieldOldPsw.text; param.oldPassword = self.textFieldOldPsw.text;
// param.fnewPassword = self.textFieldNewPsw.text; param.fnewPassword = self.textFieldNewPsw.text;
// [MBProgressHUD j_loading:@"修改中…"]; [MBProgressHUD j_loading:@"修改中…"];
// WS(weakSelf); WS(weakSelf);
// [kHttp POST:kModifyPswUrl parameters:[param toDictionary] complete:^(id _Nullable response, NSError * _Nullable error) { [kHttp POST:kModifyPswUrl parameters:[param toDictionary] complete:^(id _Nullable response, NSError * _Nullable error) {
// [MBProgressHUD j_hideLoadingView]; [MBProgressHUD j_hideLoadingView];
// if (kRsSuccess(response)) { if (kRsSuccess(response)) {
// [MBProgressHUD j_success:@"密码修改成功!" complete:^{ [MBProgressHUD j_success:@"密码修改成功!" complete:^{
// [weakSelf.navigationController popViewControllerAnimated:YES]; [weakSelf.navigationController popViewControllerAnimated:YES];
// }]; }];
// }else{ }else{
// kShowRsMsg(response); kShowRsMsg(response);
//
// } }
// }]; }];
} }
......
...@@ -22,7 +22,7 @@ static NSString *const BASE_IP = @"http://whcar.gomoretech.com"; ...@@ -22,7 +22,7 @@ static NSString *const BASE_IP = @"http://whcar.gomoretech.com";
static NSString *const kLoginUrl = @"merchantUser/login"; static NSString *const kLoginUrl = @"merchantUser/login";
static NSString *const kUpgradeUrl = @"merchantUser/getUpgrade"; 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 kResetPswUrl = @"stationUser/resetPassword";
static NSString *const kGetUserInfoUrl = @"account/get"; 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