HDL_ON/UI/UI1-Login/RegisterPageBLL.cs
@@ -373,7 +373,14 @@
                    string account = etAccount.Text.Trim();
                    int time = 60;
                    //加载Loading效果
                    var waitPage = new Loading();
                    bodyView.AddChidren(waitPage);
                    waitPage.Start(Language.StringByID(StringId.PleaseWait));
                    new Thread(() =>
                    {
                        try
                    {
                        //1.先检查账号是否注册过
                        var result = pm.GetRegionByAccount(account);
@@ -381,13 +388,32 @@
                        if (result.Code == StateCode.ACCOUNT_NOT_EXIST)
                        {
                            //账号不存在 未注册允许发送验证码注册
                                //2.2  获取验证码
                                ResponsePackNew resultObj;
                                if (registerType == 1)//邮箱
                                {
                                    resultObj = pm.VerificationCodeSend(VerifyType.REGISTER_USER, account);
                                }
                                else
                                {
                                    resultObj = pm.VerificationCodeSend(VerifyType.REGISTER_USER, account, true, phoneZoneCode);
                                }
                                if (resultObj.Code != StateCode.SUCCESS)
                                {
                                    // 提示错误
                                    IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code);
                                }
                                else
                                {
                                    //2.1 开始倒计时
                            Application.RunOnMainThread(() =>
                            {
                                //短信发送间隔60s
                                (sender as Button).IsSelected = false;
                            });
                            //2.1 开始倒计时
                            new Thread(() =>
                            {
                                while (time > 0)
@@ -407,22 +433,6 @@
                                });
                            })
                            { IsBackground = true }.Start();
                            //2.2  获取验证码
                            ResponsePackNew resultObj;
                            if (registerType == 1)//邮箱
                            {
                                resultObj = pm.VerificationCodeSend(VerifyType.REGISTER_USER, account);
                            }
                            else
                            {
                                resultObj = pm.VerificationCodeSend(VerifyType.REGISTER_USER, account, true, phoneZoneCode);
                            }
                            if (resultObj.Code != StateCode.SUCCESS)
                            {
                                // 提示错误
                                IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code);
                            }
                        }
@@ -436,6 +446,19 @@
                            //4.提示其它异常错误
                            IMessageCommon.Current.ShowErrorInfoAlter(result.Code);
                        }
                        }
                        catch { }
                        finally
                        {
                            Application.RunOnMainThread(() =>
                            {
                                if (waitPage != null)
                                {
                                    waitPage.RemoveFromParent();
                                    waitPage = null;
                                }
                            });
                        }
                    })
                    { IsBackground = true }.Start();