|
@@ -42,17 +42,17 @@
|
|
|
NSString *cPw = FORMAT(@"%@",_cPwTF.text);
|
|
NSString *cPw = FORMAT(@"%@",_cPwTF.text);
|
|
|
NSString *email = FORMAT(@"%@",_emailTF.text);
|
|
NSString *email = FORMAT(@"%@",_emailTF.text);
|
|
|
|
|
|
|
|
-// if (name.length == 0 || tel.length == 0 || pw.length == 0 || cPw.length == 0) {
|
|
|
|
|
-// [MBProgressHUD hideHUDForView:self.view animated:YES];
|
|
|
|
|
-// [YRShowMessageFromNavi showDropViewWithMessage:@"请填写完整资料" ToNavi:self.navigationController withColor:nil];
|
|
|
|
|
-// return;
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// if (![pw isEqualToString:cPw]) {
|
|
|
|
|
-// [MBProgressHUD hideHUDForView:self.view animated:YES];
|
|
|
|
|
-// [YRShowMessageFromNavi showDropViewWithMessage:@"确认密码不一致" ToNavi:self.navigationController withColor:nil];
|
|
|
|
|
-// return;
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (name.length == 0 || tel.length == 0 || pw.length == 0 || cPw.length == 0) {
|
|
|
|
|
+ [MBProgressHUD hideHUDForView:self.view animated:YES];
|
|
|
|
|
+ [YRShowMessageFromNavi showDropViewWithMessage:@"请填写完整资料" ToNavi:self.navigationController withColor:nil];
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (![pw isEqualToString:cPw]) {
|
|
|
|
|
+ [MBProgressHUD hideHUDForView:self.view animated:YES];
|
|
|
|
|
+ [YRShowMessageFromNavi showDropViewWithMessage:@"确认密码不一致" ToNavi:self.navigationController withColor:nil];
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (![NSString isEmail:email]) {
|
|
if (![NSString isEmail:email]) {
|
|
|
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
|
[MBProgressHUD hideHUDForView:self.view animated:YES];
|
|
@@ -81,10 +81,11 @@
|
|
|
|
|
|
|
|
[YRShowMessageFromNavi showDropViewWithMessage:@"注册成功" ToNavi:self.navigationController withColor:nil];
|
|
[YRShowMessageFromNavi showDropViewWithMessage:@"注册成功" ToNavi:self.navigationController withColor:nil];
|
|
|
|
|
|
|
|
- [self.navigationController popViewControllerAnimated:YES];
|
|
|
|
|
|
|
+ [self dismissViewControllerAnimated:YES completion:nil];
|
|
|
|
|
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
|
|
|
|
+ [YRShowMessageFromNavi showDropViewWithMessage:FORMAT(@"%@",response.responseHeader.message) ToNavi:self.navigationController withColor:nil];
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|