wxr
2020-04-21 f718d23a262a5a8e1241fdeaeb4153399f95e79d
HDL_ON/UI/UI1-Login/ForgetPasswordPageBLL.cs
@@ -78,7 +78,7 @@
        {
            etAccount.TextChangeEventHandler += (sender, e) =>
            {
                Regex reg = new Regex(@"^[1]+\d{9}");
                Regex reg = new Regex(@"^[1]+\d{10}");
                var mFalg = reg.Match(etAccount.Text.Trim());
                if (!mFalg.Success || (btnGlobalRoaming.Text == "+86" && etAccount.Text.Trim().Length != 11))
                {
@@ -86,7 +86,10 @@
                }
                else
                {
                    if (btnGetVerificationCode.Text == Language.StringByID(StringId.GetVerificationCode))
                    {
                    btnGetVerificationCode.IsSelected = true;
                    }
                }
            };
        }
@@ -128,7 +131,10 @@
                        }
                        else
                        {
                            if (btnGetVerificationCode.Text == Language.StringByID( StringId.GetVerificationCode))
                            {
                            btnGetVerificationCode.IsSelected = true;
                            }
                            LoadMothed_EnableResetButton();
                        }
                    }
@@ -150,7 +156,10 @@
                        }
                        else
                        {
                            if (btnGetVerificationCode.Text == Language.StringByID(StringId.GetVerificationCode))
                            {
                            btnGetVerificationCode.IsSelected = true;
                            }
                            LoadMothed_EnableResetButton();
                        }
                    }
@@ -176,7 +185,7 @@
                        {
                            CloseTime = 3,
                            Direction = AMPopTipDirection.None,
                            Text = Language.StringByID(StringId.IncorrectRepeatPassword)
                            Text = Language.StringByID(StringId.PasswordIsUnqualified)
                        }.Show(bodyView);
                    }
                }
@@ -260,6 +269,7 @@
        {
            btnGetVerificationCode.MouseUpEventHandler += (sender, e) =>
            {
                var account = etAccount.Text.Trim();
                if (btnGetVerificationCode.IsSelected)
                {
                    //短信发送间隔60s
@@ -277,18 +287,18 @@
                            });
                            Thread.Sleep(1000);
                        }
                    }){ IsBackground = true}.Start();
                    new Thread(() =>
                    {
                        var result = pm.SendSms(etAccount.Text.Trim());
                        if (result.StateCode == "Success")
                        {
                            Application.RunOnMainThread(() =>
                            {
                                //回复获取短信按钮事件
                                btnGetVerificationCode.IsSelected = true;
                                btnGetVerificationCode.TextID = StringId.GetVerificationCode;
                            });
                    }){ IsBackground = true}.Start();
                    new Thread(() =>
                    {
                        var result = pm.SendSms(account);
                        if (result.StateCode.ToUpper() == "SUCCESS")
                        {
                        }
                        else
                        {
@@ -361,10 +371,10 @@
            return new Thread(() =>
            {
                var verResult = pm.ValidatorCode(account, verCode, countryIndex);
                if (verResult.StateCode == "Success")
                if (verResult.StateCode.ToUpper() == "SUCCESS")
                {
                    var resetResult = pm.ResetPassword(account, password, repeatPassword, countryIndex);
                    if (resetResult.StateCode == "Success")
                    if (resetResult.StateCode.ToUpper() == "SUCCESS")
                    {
                        Application.RunOnMainThread(() =>
                        {
@@ -483,7 +493,7 @@
                TextAlignment = TextAlignment.Center,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextSize = CSS_FontSize.TextFontSize,
                Text = "s是生生世世",
                //Text = "s是生生世世",
            };
            frame.AddChidren(btnAccountText);
@@ -509,7 +519,7 @@
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                TextID = StringId.AutomaticallyLogin,
            };
            frame.AddChidren(btnAutoLoginTip);
            //frame.AddChidren(btnAutoLoginTip);
            Button btnHeadImage = new Button()
            {
@@ -531,6 +541,7 @@
                Thread.Sleep(1500);
                Application.RunOnMainThread(() =>
                {
                    dialog.Close();
                    this.Close();
                });
            })