wxr
2024-04-16 1b6d5116f9f3e291da636b9ec510d65a4fedf639
HDL_ON/UI/UI1-Login/RegisterPageBLL.cs
@@ -58,24 +58,26 @@
                {
                    if (!Utlis.CheckPhoneNumber(etAccount.Text.Trim(), phoneZoneCode))
                    {
                        btnGetVerificationCode_Phone.IsSelected = false;
                        btnGetVerificationCode_Phone_isSelected = btnGetVerificationCode_Phone.IsSelected = false;
                    }
                    else
                    {
                        if (btnGetVerificationCode_Phone.Text == Language.StringByID(StringId.GetVerificationCode))
                            btnGetVerificationCode_Phone.IsSelected = true;
                        {
                            btnGetVerificationCode_Phone_isSelected = btnGetVerificationCode_Phone.IsSelected = true;
                        }
                    }
                }
                else//邮箱注册获取验证码按钮生效条件
                {
                    if (!Utlis.CheckEmail(etAccount.Text.Trim()))
                    {
                        btnGetVerificationCode_Mail.IsSelected = false;
                        btnGetVerificationCode_Mail_isSelected = btnGetVerificationCode_Mail.IsSelected = false;
                    }
                    else
                    {
                        if (btnGetVerificationCode_Mail.Text == Language.StringByID(StringId.GetVerificationCode))
                            btnGetVerificationCode_Mail.IsSelected = true;
                            btnGetVerificationCode_Mail_isSelected = btnGetVerificationCode_Mail.IsSelected = true;
                    }
                }
                CheckEnableRegisterButton();
@@ -113,6 +115,7 @@
                #region 切换选中按钮
                btnGetVerificationCode_Mail.Visible = false;
                btnGetVerificationCode_Phone.Visible = true;
                btnGetVerificationCode_Phone.IsSelected = btnGetVerificationCode_Phone_isSelected;
                btnEmailLogin.TextColor = CSS_Color.PromptingColor1;
                btnEmailLogin.TextSize = CSS_FontSize.TextFontSize;
                btnPhoneLogin.TextColor = CSS_Color.MainColor;
@@ -148,6 +151,7 @@
                etRepeatPassword.Text = "";
                #region 切换选中按钮
                btnGetVerificationCode_Mail.Visible = true;
                btnGetVerificationCode_Mail.IsSelected = btnGetVerificationCode_Mail_isSelected;
                btnGetVerificationCode_Phone.Visible = false;
                btnPhoneLogin.TextColor = CSS_Color.PromptingColor1;
                btnPhoneLogin.TextSize = CSS_FontSize.TextFontSize;
@@ -194,7 +198,7 @@
                            if (!Utlis.CheckPhoneNumber(etAccount.Text.Trim(), phoneZoneCode))
                            {
                                HDLCommon.Current.BottomLineShowType(btnAccountViewBottomLine, BottomLineType.Error);
                                btnGetVerificationCode_Phone.IsSelected = false;
                                btnGetVerificationCode_Phone_isSelected = btnGetVerificationCode_Phone.IsSelected = false;
                                new Tip()
                                {
                                    MaxWidth = Application.GetRealWidth(300),
@@ -208,7 +212,7 @@
                                if (btnGetVerificationCode_Phone.Text == Language.StringByID(StringId.GetVerificationCode))
                                {
                                    //标记手机号码有效
                                    btnGetVerificationCode_Phone.IsSelected = true;
                                    btnGetVerificationCode_Phone_isSelected = btnGetVerificationCode_Phone.IsSelected = true;
                                }
                                //账号有效、密码有效、验证码输入了,才能点击注册
                                if (ValidPassword && !string.IsNullOrEmpty(etVerificationCode.Text.Trim()))
@@ -223,7 +227,7 @@
                            if (!Utlis.CheckEmail(etAccount.Text.Trim()))
                            {
                                HDLCommon.Current.BottomLineShowType(btnAccountViewBottomLine, BottomLineType.Error);
                                btnGetVerificationCode_Mail.IsSelected = false;
                                btnGetVerificationCode_Mail_isSelected = btnGetVerificationCode_Mail.IsSelected = false;
                                new Tip()
                                {
                                    MaxWidth = Application.GetRealWidth(300),
@@ -236,7 +240,7 @@
                            {
                                if (btnGetVerificationCode_Mail.Text == Language.StringByID(StringId.GetVerificationCode))
                                {//标记手机号码有效
                                    btnGetVerificationCode_Mail.IsSelected = true;
                                    btnGetVerificationCode_Mail_isSelected = btnGetVerificationCode_Mail.IsSelected = true;
                                }
                                //账号有效、密码有效、验证码输入了,才能点击注册
                                if (ValidPassword && string.IsNullOrEmpty(etVerificationCode.Text.Trim()))
@@ -688,7 +692,7 @@
            isSelectServer = true;
            ShowServerBottomLineState(false);
            btnServerText.TextColor = CSS_Color.FirstLevelTitleColor;
            btnServerText.Text = OnAppConfig.Instance.GlobalRegion.regionName;
            btnServerText.Text = OnAppConfig.Instance.GlobalRegion.regionName.Replace("HDL","SANTAN");
        }