From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期二, 21 七月 2020 09:46:53 +0800 Subject: [PATCH] 请合并最新多功能面板代码 --- ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs index 3c21373..16ba490 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs @@ -95,6 +95,7 @@ btnErrorMsg.TextAlignment = TextAlignment.Center; btnErrorMsg.TextColor = 0xfff75858; btnErrorMsg.TextID = R.MyInternationalizationString.uVerificationCodeErrorInputAgain; + btnErrorMsg.IsBold = true; bodyFrameLayout.AddChidren(btnErrorMsg); btnErrorMsg.Visible = false; @@ -105,6 +106,8 @@ bodyFrameLayout.AddChidren(btnNext); btnNext.ButtonClickEvent += (sender, e) => { + //娓呯┖杈撳叆鐨勫�� + btnCodeControl.ClearInputValue(); //鍙戦�侀獙璇佺爜鍒伴偖绠� this.SendCodeToEmail(btnNext); }; @@ -117,11 +120,11 @@ /// <summary> /// 鍙戦�侀獙璇佺爜鍒伴偖绠� /// </summary> - private async void SendCodeToEmail(BottomClickButton btnNext) + private void SendCodeToEmail(BottomClickButton btnNext) { var sendCodePra = new SendCodePra(); - bool falge = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/LoginSendVerCode", false, sendCodePra); + bool falge = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/LoginSendVerCode", false, sendCodePra); if (falge == false) { return; @@ -133,11 +136,11 @@ btnNext.CanClick = false; //?s鍚庨噸鍙� string repeat = Language.StringByID(R.MyInternationalizationString.RepeatSend1); - //鏈夋晥鏃堕棿300绉� - int waitime = 300; + //鏈夋晥鏃堕棿60绉� + int waitime = 60; btnNext.Text = waitime + "s" + repeat; - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { while (this.Parent != null) { @@ -145,7 +148,6 @@ System.Threading.Thread.Sleep(1000); if (waitime == 0) { - this.canCheckCode = false; Application.RunOnMainThread(() => { if (btnNext != null) @@ -166,8 +168,7 @@ } }); } - }) - { IsBackground = true }.Start(); + }); } #endregion @@ -178,7 +179,7 @@ /// 楠岃瘉楠岃瘉鐮� /// </summary> /// <returns></returns> - private async void CheckVerificationCode(string code) + private void CheckVerificationCode(string code) { if (this.canCheckCode == false) { @@ -189,7 +190,7 @@ var checkCodePra = new CheckCodePra(); checkCodePra.Code = code; - bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra); + bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra); if (flage == false) { //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� -- Gitblit v1.8.0