| | |
| | | //选择手机方式 |
| | | btnPhoneLogin.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (registerType == 0) |
| | | return; |
| | | etAccount.Text = registerPhone; |
| | | etPassword.Text = ""; |
| | | etRepeatPassword.Text = ""; |
| | | #region 切换选中按钮 |
| | | btnGetVerificationCode_Phone.Visible = true; |
| | | btnGetVerificationCode_Mail.Visible = false; |
| | |
| | | btnEmailLogin.TextSize = CSS_FontSize.TextFontSize; |
| | | btnPhoneLogin.TextColor = CSS_Color.MainColor; |
| | | btnPhoneLogin.TextSize = CSS_FontSize.EmphasisFontSize_Secondary; |
| | | etAccount.PlaceholderText = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber); |
| | | etAccount.PlaceholderText = Language.StringByID(StringId.PlsEntryPhoneNumber); |
| | | #endregion |
| | | |
| | | #region 切换方式方式及图标 |
| | |
| | | //选择邮箱方式 |
| | | btnEmailLogin.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (registerType == 1) |
| | | return; |
| | | etAccount.Text = registerEmail; |
| | | etPassword.Text = ""; |
| | | etRepeatPassword.Text = ""; |
| | | #region 切换选中按钮 |
| | | btnGetVerificationCode_Phone.Visible = false; |
| | | btnGetVerificationCode_Mail.Visible = true; |
| | |
| | | btnAccountViewBottomLine.Height = Application.GetRealHeight(2); |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(bodyView); |
| | |
| | | btnAccountViewBottomLine.Height = Application.GetRealHeight(2); |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.PlsEntryCorrectEmailAddress), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(bodyView); |
| | |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Direction = AMPopTipDirection.None, |
| | | Text = Language.StringByID(StringId.PasswordIsUnqualified) |
| | | }.Show(bodyView); |
| | |
| | | btnRepeatPasswordViewBottomLine.Height = Application.GetRealHeight(2); |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Direction = AMPopTipDirection.None, |
| | | Text = Language.StringByID(StringId.IncorrectRepeatPassword) |
| | | }.Show(bodyView); |
| | |
| | | }){ IsBackground = true}.Start(); |
| | | new Thread(() => |
| | | { |
| | | var result = pm.SendSms(account); |
| | | var result = pm.GetLoginVerCode(account); |
| | | if (result.StateCode.ToUpper() == "SUCCESS") |
| | | { |
| | | } |
| | |
| | | switch (result.StateCode) |
| | | { |
| | | case "Exist": |
| | | tipString = Language.StringByID(StringId.AccountAlreadyExists); |
| | | tipString = Language.StringByID(StringId.AccountAlreadyUse); |
| | | break; |
| | | case "SendFail": |
| | | tipString = Language.StringByID(StringId.FailedToSendVerificationCode); |
| | |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Direction = AMPopTipDirection.None, |
| | | Text = tipString |
| | | }.Show(bodyView); |
| | |
| | | waitPage.Hide(); |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Direction = AMPopTipDirection.None, |
| | | Text = erorrInfo, |
| | | }.Show(bodyView); |
| | |
| | | waitPage.Hide(); |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Direction = AMPopTipDirection.None, |
| | | Text = erorrInfo, |
| | | }.Show(bodyView); |