Explorar el Código

注册失败提示

huangyp hace 6 años
padre
commit
3804247a43
Se han modificado 1 ficheros con 12 adiciones y 11 borrados
  1. 12 11
      UU_Ent/UU_Ent/Modules/Login/Main/Controllers/YRRegisterVC.m

+ 12 - 11
UU_Ent/UU_Ent/Modules/Login/Main/Controllers/YRRegisterVC.m

@@ -42,17 +42,17 @@
     NSString *cPw = FORMAT(@"%@",_cPwTF.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]) {
         [MBProgressHUD hideHUDForView:self.view animated:YES];
@@ -85,6 +85,7 @@
             
         }else{
             
+            [YRShowMessageFromNavi showDropViewWithMessage:FORMAT(@"%@",response.responseHeader.message) ToNavi:self.navigationController withColor:nil];
             
         }