| | |
| | | { |
| | | 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(); |
| | |
| | | #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; |
| | |
| | | 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; |
| | |
| | | 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), |
| | |
| | | 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())) |
| | |
| | | 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), |
| | |
| | | { |
| | | 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())) |
| | |
| | | isSelectServer = true; |
| | | ShowServerBottomLineState(false); |
| | | btnServerText.TextColor = CSS_Color.FirstLevelTitleColor; |
| | | btnServerText.Text = OnAppConfig.Instance.GlobalRegion.regionName; |
| | | btnServerText.Text = OnAppConfig.Instance.GlobalRegion.regionName.Replace("HDL","SANTAN"); |
| | | } |
| | | |
| | | |