vbea 3 anos atrás
pai
commit
09060b3412
1 arquivos alterados com 13 adições e 15 exclusões
  1. 13 15
      Strides-APP/app/pages/sign/RegisterV4.js

+ 13 - 15
Strides-APP/app/pages/sign/RegisterV4.js

@@ -151,17 +151,6 @@ export default class RegisterV4 extends React.Component {
     }
   }
 
-  onRegister() {
-    Dialog.showProgressDialog();
-    setTimeout(() => {
-      Dialog.dismissLoading();
-      //toastShort('Sign up successfully!');
-      this.setState({
-        visible: true
-      });
-    }, 1000);
-  }
-
   onRegisterT() {
     //console.log('sign up', this.state);
     var info = this.state.userInfo;
@@ -232,10 +221,19 @@ export default class RegisterV4 extends React.Component {
     apiUser.register(param).then(res => {
       Dialog.dismissLoading();
       //toastShort('Sign up successfully!');
-      this.setState({
-        email: param.email,
-        visible: true
-      });
+      if (isIOS) {
+        setTimeout(() => {
+          this.setState({
+            email: param.email,
+            visible: true
+          });
+        }, 500);
+      } else {
+        this.setState({
+          email: param.email,
+          visible: true
+        });
+      }
       //this.backToLogin();
     }).catch(err => {
       toastShort(err);