|
|
@@ -220,13 +220,10 @@ export default class RegisterV4 extends React.Component {
|
|
|
Dialog.showProgressDialog();
|
|
|
apiUser.register(param).then(res => {
|
|
|
Dialog.dismissLoading();
|
|
|
- //toastShort('Sign up successfully!');
|
|
|
if (isIOS) {
|
|
|
+ toastShort('Sign up successfully!');
|
|
|
setTimeout(() => {
|
|
|
- this.setState({
|
|
|
- email: param.email,
|
|
|
- visible: true
|
|
|
- });
|
|
|
+ this.backToLogin();
|
|
|
}, 500);
|
|
|
} else {
|
|
|
this.setState({
|
|
|
@@ -234,7 +231,6 @@ export default class RegisterV4 extends React.Component {
|
|
|
visible: true
|
|
|
});
|
|
|
}
|
|
|
- //this.backToLogin();
|
|
|
}).catch(err => {
|
|
|
toastShort(err);
|
|
|
Dialog.dismissLoading();
|