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/ForgetPasswordPageBLL.cs | 48 +++++++++++++++++++++++++++--------------------- 1 files changed, 27 insertions(+), 21 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/BLL/ForgetPasswordPageBLL.cs b/HDL_ON/UI/UI1-Login/BLL/ForgetPasswordPageBLL.cs index 4f326f5..237a1e9 100644 --- a/HDL_ON/UI/UI1-Login/BLL/ForgetPasswordPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/BLL/ForgetPasswordPageBLL.cs @@ -35,7 +35,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 鍒囨崲鏂瑰紡鏂瑰紡鍙婂浘鏍� @@ -56,7 +56,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 鍒囨崲淇敼鏂瑰紡鍙婂浘鏍� @@ -122,7 +122,7 @@ new Tip() { CloseTime = 3, - Text = Language.StringByID(InternationalizationString.PlsEntryCorrectMobilNeumber), + Text = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber), Direction = AMPopTipDirection.None, }.Show(bodyView); } @@ -144,7 +144,7 @@ new Tip() { CloseTime = 3, - Text = Language.StringByID(InternationalizationString.PlsEntryCorrectEmailAddress), + Text = Language.StringByID(StringId.PlsEntryCorrectEmailAddress), Direction = AMPopTipDirection.None, }.Show(bodyView); } @@ -158,7 +158,8 @@ }; //瀵嗙爜鏂囨湰妗嗙劍鐐瑰彉鍖栦簨浠� - etPassword.FoucsChanged += (sender, e) => { + etPassword.FoucsChanged += (sender, e) => + { if (etPassword.Foucs) { btnPasswordViewBottomLine.BackgroundColor = CSS_Color.MainColor; @@ -175,14 +176,15 @@ { CloseTime = 3, Direction = AMPopTipDirection.None, - Text = Language.StringByID(InternationalizationString.IncorrectRepeatPassword) + Text = Language.StringByID(StringId.IncorrectRepeatPassword) }.Show(bodyView); } } }; //纭瀵嗙爜鏂囨湰妗嗙劍鐐瑰彉鍖栦簨浠� - etRepeatPassword.FoucsChanged += (sender, e) => { + etRepeatPassword.FoucsChanged += (sender, e) => + { if (etRepeatPassword.Foucs) { btnRepeatPasswordViewBottomLine.BackgroundColor = CSS_Color.MainColor; @@ -201,7 +203,7 @@ { CloseTime = 3, Direction = AMPopTipDirection.None, - Text = Language.StringByID(InternationalizationString.IncorrectRepeatPassword) + Text = Language.StringByID(StringId.IncorrectRepeatPassword) }.Show(bodyView); } else @@ -212,7 +214,8 @@ }; //楠岃瘉鐮佹枃鏈鐒︾偣鍙樺寲浜嬩欢 - etVerificationCode.FoucsChanged += (sender, e) => { + etVerificationCode.FoucsChanged += (sender, e) => + { if (etVerificationCode.Foucs) { btnVerificationCodeViewBottomLine.BackgroundColor = CSS_Color.MainColor; @@ -237,12 +240,14 @@ void LoadEvent_ChangeTextVisble() { //瀵嗙爜鏂囨湰鍙鎬у彉鍖� - btnVisiblePassword.MouseUpEventHandler += (sender, e) => { + btnVisiblePassword.MouseUpEventHandler += (sender, e) => + { btnVisiblePassword.IsSelected = !btnVisiblePassword.IsSelected; etPassword.SecureTextEntry = !btnVisiblePassword.IsSelected; }; //閲嶅瀵嗙爜鏂囨湰鍙鎬у彉鍖� - btnRepeatVisiblePassword.MouseUpEventHandler += (sender, e) => { + btnRepeatVisiblePassword.MouseUpEventHandler += (sender, e) => + { btnRepeatVisiblePassword.IsSelected = !btnRepeatVisiblePassword.IsSelected; etRepeatPassword.SecureTextEntry = !btnRepeatVisiblePassword.IsSelected; }; @@ -253,7 +258,8 @@ /// </summary> void LoadEvent_GetVerificationCode() { - btnGetVerificationCode.MouseUpEventHandler += (sender, e) => { + btnGetVerificationCode.MouseUpEventHandler += (sender, e) => + { if (btnGetVerificationCode.IsSelected) { //鑾峰彇楠岃瘉鐮� @@ -279,7 +285,7 @@ { //鍥炲鑾峰彇鐭俊鎸夐挳浜嬩欢 btnGetVerificationCode.IsSelected = true; - btnGetVerificationCode.TextID = InternationalizationString.GetVerificationCode; + btnGetVerificationCode.TextID = StringId.GetVerificationCode; }); }) { IsBackground = true }.Start(); @@ -290,13 +296,13 @@ switch (result.StateCode) { case "Exist": - tipString = Language.StringByID(InternationalizationString.AccountAlreadyExists); + tipString = Language.StringByID(StringId.AccountAlreadyExists); break; case "SendFail": - tipString = Language.StringByID(InternationalizationString.FailedToSendVerificationCode); + tipString = Language.StringByID(StringId.FailedToSendVerificationCode); break; case "Self:Net_Error": - tipString = Language.StringByID(InternationalizationString.NetworkAnomaly); + tipString = Language.StringByID(StringId.NetworkAnomaly); break; } @@ -350,7 +356,7 @@ if (verResult.StateCode == "Success") { var resetResult = pm.ResetPassword(account, password, repeatPassword, countryIndex); - if(resetResult.StateCode == "Success") + if (resetResult.StateCode == "Success") { Application.RunOnMainThread(() => { @@ -365,10 +371,10 @@ switch (resetResult.StateCode) { case "PwdNoConfirm"://涓ゆ杈撳叆鐨勫瘑鐮佷笉涓�鑷� - erorrInfo = Language.StringByID(InternationalizationString.IncorrectRepeatPassword); + erorrInfo = Language.StringByID(StringId.IncorrectRepeatPassword); break; case "AccountNoExists"://涓ゆ杈撳叆鐨勫瘑鐮佷笉涓�鑷� - erorrInfo = Language.StringByID(InternationalizationString.AccountNotExist); + erorrInfo = Language.StringByID(StringId.AccountNotExist); break; default: erorrInfo = "Server error"; @@ -392,7 +398,7 @@ switch (verResult.StateCode) { case "ValidCodeAndPhoneNoEqual"://楠岃瘉鐮侀敊璇� - erorrInfo = Language.StringByID(InternationalizationString.VerificationCodeWrong); + erorrInfo = Language.StringByID(StringId.VerificationCodeWrong); break; default: erorrInfo = "Server error"; @@ -417,7 +423,7 @@ /// </summary> void LoadMothed_EnableResetButton() { - if(!string.IsNullOrEmpty( etAccount.Text)&&!string.IsNullOrEmpty(etPassword.Text)&& !string.IsNullOrEmpty( etVerificationCode.Text) && (etPassword.Text.Trim()== etRepeatPassword.Text.Trim())) + if (!string.IsNullOrEmpty(etAccount.Text) && !string.IsNullOrEmpty(etPassword.Text) && !string.IsNullOrEmpty(etVerificationCode.Text) && (etPassword.Text.Trim() == etRepeatPassword.Text.Trim())) { btnReset.IsSelected = true; } -- Gitblit v1.8.0