File was renamed from HDL_ON/UI/UI1-Login/LoginPageBLL.cs |
| | |
| | | btnEmailLogin.TextSize = CSS_FontSize.TextFontSize; |
| | | btnPhoneLogin.TextColor = CSS_Color.MainColor; |
| | | btnPhoneLogin.TextSize = CSS_FontSize.EmphasisFontSize_Secondary; |
| | | etAccount.PlaceholderText = Language.StringByID(R.InternationalizationString.PlsEntryCorrectMobilNeumber); |
| | | etAccount.PlaceholderText = Language.StringByID(InternationalizationString.PlsEntryCorrectMobilNeumber); |
| | | #endregion |
| | | |
| | | #region 切换登录方式及图标 |
| | |
| | | btnPhoneLogin.TextSize = CSS_FontSize.TextFontSize; |
| | | btnEmailLogin.TextColor = CSS_Color.MainColor; |
| | | btnEmailLogin.TextSize = CSS_FontSize.EmphasisFontSize_Secondary; |
| | | etAccount.PlaceholderText = Language.StringByID(R.InternationalizationString.PlsEntryEmailAddress); |
| | | etAccount.PlaceholderText = Language.StringByID(InternationalizationString.PlsEntryEmailAddress); |
| | | #endregion |
| | | |
| | | #region 切换登录类型及图标 |
| | |
| | | //邮箱只有密码登录模式 |
| | | logintMode = 0; |
| | | //密码登录 |
| | | btnSwitchLoginMode.TextID = R.InternationalizationString.VerificationCodeLogin; |
| | | btnSwitchLoginMode.TextID = InternationalizationString.VerificationCodeLogin; |
| | | passwordView.AddChidren(btnVisiblePassword); |
| | | passwordView.AddChidren(btnDividingLineVertical_PasswordView2); |
| | | passwordView.AddChidren(btnForgetPassword); |
| | |
| | | //密码登录 |
| | | if (logintMode == 0) |
| | | { |
| | | btnSwitchLoginMode.TextID = R.InternationalizationString.VerificationCodeLogin; |
| | | btnSwitchLoginMode.TextID = InternationalizationString.VerificationCodeLogin; |
| | | passwordView.AddChidren(btnVisiblePassword); |
| | | passwordView.AddChidren(btnDividingLineVertical_PasswordView2); |
| | | passwordView.AddChidren(btnForgetPassword); |
| | |
| | | //验证码登录 |
| | | else if (logintMode == 1) |
| | | { |
| | | btnSwitchLoginMode.TextID = R.InternationalizationString.PasswordLogin; |
| | | btnSwitchLoginMode.TextID = InternationalizationString.PasswordLogin; |
| | | passwordView.AddChidren(btnGetVerificationCode); |
| | | btnPasswordIcon.IsSelected = true; |
| | | if (btnVisiblePassword.Parent != null) |
| | |
| | | //创建登录线程 |
| | | var loginThread = LoadMethod_LoginThread(); |
| | | LoadPage_WaitPage(loginThread); |
| | | |
| | | } |
| | | }; |
| | | #region 当账号密码都输入时,才能点击登录按钮 |
| | |
| | | { |
| | | waitPage = new Loading(); |
| | | bodyView.AddChidren(waitPage); |
| | | waitPage.Start(Language.StringByID(R.InternationalizationString.PleaseWait)); |
| | | waitPage.Start(Language.StringByID(InternationalizationString.PleaseWait)); |
| | | var showedTime = DateTime.Now; |
| | | //如果等待事件过长,可以允许用户取消当前操作 |
| | | waitPage.MouseUpEventHandler += (sender, e) => |
| | |
| | | }; |
| | | MainPage.LoginUser.SaveUserInfo(); |
| | | MainPage.Log("登录成功。"); |
| | | //跳转页面---- |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | var personalCenterPage = new UI2.PersonalCenterPage(); |
| | | personalCenterPage.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | MainPage.BaseView.AddChidren(personalCenterPage); |
| | | personalCenterPage.LoadView(); |
| | | }); |
| | | |
| | | /* |
| | | * Wait : 推送注册 |