From 4cc04639fbadde3a7f3b9875353df0d90fc09043 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期六, 18 一月 2020 14:33:40 +0800 Subject: [PATCH] 节前备份 --- HDL_ON/UI/UI1-Login/BLL/LoginPageBLL.cs | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/BLL/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/BLL/LoginPageBLL.cs index 076fa3f..9653896 100644 --- a/HDL_ON/UI/UI1-Login/BLL/LoginPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/BLL/LoginPageBLL.cs @@ -52,7 +52,7 @@ Application.RunOnMainThread(() => { btnGetVerificationCode.IsSelected = true; - btnGetVerificationCode.TextID = InternationalizationString.GetVerificationCode; + btnGetVerificationCode.TextID = StringId.GetVerificationCode; }); }) { IsBackground = true }.Start(); @@ -75,7 +75,7 @@ btnEmailLogin.TextSize = CSS_FontSize.TextFontSize; btnPhoneLogin.TextColor = CSS_Color.MainColor; btnPhoneLogin.TextSize = CSS_FontSize.EmphasisFontSize_Secondary; - etAccount.PlaceholderText = Language.StringByID(InternationalizationString.PlsEntryCorrectMobilNeumber); + etAccount.PlaceholderText = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber); #endregion #region 鍒囨崲鐧诲綍鏂瑰紡鍙婂浘鏍� @@ -98,7 +98,7 @@ btnPhoneLogin.TextSize = CSS_FontSize.TextFontSize; btnEmailLogin.TextColor = CSS_Color.MainColor; btnEmailLogin.TextSize = CSS_FontSize.EmphasisFontSize_Secondary; - etAccount.PlaceholderText = Language.StringByID(InternationalizationString.PlsEntryEmailAddress); + etAccount.PlaceholderText = Language.StringByID(StringId.PlsEntryEmailAddress); #endregion #region 鍒囨崲鐧诲綍绫诲瀷鍙婂浘鏍� @@ -113,7 +113,7 @@ //閭鍙湁瀵嗙爜鐧诲綍妯″紡 logintMode = 0; //瀵嗙爜鐧诲綍 - btnSwitchLoginMode.TextID = InternationalizationString.VerificationCodeLogin; + btnSwitchLoginMode.TextID = StringId.VerificationCodeLogin; passwordView.AddChidren(btnVisiblePassword); passwordView.AddChidren(btnDividingLineVertical_PasswordView2); passwordView.AddChidren(btnForgetPassword); @@ -144,7 +144,7 @@ //瀵嗙爜鐧诲綍 if (logintMode == 0) { - btnSwitchLoginMode.TextID = InternationalizationString.VerificationCodeLogin; + btnSwitchLoginMode.TextID = StringId.VerificationCodeLogin; passwordView.AddChidren(btnVisiblePassword); passwordView.AddChidren(btnDividingLineVertical_PasswordView2); passwordView.AddChidren(btnForgetPassword); @@ -159,7 +159,7 @@ //楠岃瘉鐮佺櫥褰� else if (logintMode == 1) { - btnSwitchLoginMode.TextID = InternationalizationString.PasswordLogin; + btnSwitchLoginMode.TextID = StringId.PasswordLogin; passwordView.AddChidren(btnGetVerificationCode); btnPasswordIcon.IsSelected = true; if (btnVisiblePassword.Parent != null) @@ -263,7 +263,7 @@ { var tip = new Tip() { - Text = Language.StringByID(InternationalizationString.PlsEntryCorrectMobilNeumber), + Text = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber), CloseTime = 3, Direction = AMPopTipDirection.None }; @@ -273,11 +273,11 @@ } else { - if(! Regex.IsMatch(account, "^[\\w-]+@[\\w-]+\\.(com|net|org|edu|mil|tv|biz|info)$")) + if (!Regex.IsMatch(account, "^[\\w-]+@[\\w-]+\\.(com|net|org|edu|mil|tv|biz|info)$")) { var tip = new Tip() { - Text = Language.StringByID(InternationalizationString.PlsEntryCorrectEmailAddress), + Text = Language.StringByID(StringId.PlsEntryCorrectEmailAddress), CloseTime = 3, Direction = AMPopTipDirection.None }; @@ -393,10 +393,10 @@ switch (loginResult.StateCode) { case "USERNAMEORPWDERROR": - tipStr = Language.StringByID(InternationalizationString.LoginFailed_AccountOrPasswordError); + tipStr = Language.StringByID(StringId.LoginFailed_AccountOrPasswordError); break; case "Self:Net_Error": - tipStr = Language.StringByID(InternationalizationString.NetworkAnomaly); + tipStr = Language.StringByID(StringId.NetworkAnomaly); break; } //璐﹀彿鎴栬�呭瘑鐮侀敊璇� @@ -424,7 +424,7 @@ { var result = false; var responsePack = pm.GetHomePager(); - if(responsePack.StateCode == "Success") + if (responsePack.StateCode == "Success") { var dataStr = Newtonsoft.Json.Linq.JObject.FromObject(responsePack.ResponseData); //娌℃湁浣忓畢 @@ -458,7 +458,7 @@ switch (responsePack.StateCode) { case "NoLogin": - tipStr = Language.StringByID(InternationalizationString.InvalidLoginCertificate); + tipStr = Language.StringByID(StringId.InvalidLoginCertificate); break; } Application.RunOnMainThread(() => @@ -482,7 +482,8 @@ /// </summary> void LoadPage_RegisterPage() { - btnRegister.MouseUpEventHandler += (sender, e) => { + btnRegister.MouseUpEventHandler += (sender, e) => + { //鍥炶皟浜嬩欢 Action<string> callBackAction = (callBackPar_Action) => { -- Gitblit v1.8.0