From dc0309e64f02227d8e1468b7326c07955f804612 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期三, 22 六月 2022 11:22:18 +0800 Subject: [PATCH] 修改引用路径 --- ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs index 36253de..5107160 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs @@ -95,7 +95,11 @@ btnCodeControl.FinishInputEvent += (value) => { //鏍¢獙楠岃瘉鐮� - this.CheckVerificationCode(value); + if (this.CheckVerificationCode(value) == false) + { + //娓呯┖楠岃瘉鐮� + btnCodeControl.ClearInputValue(); + } }; //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� @@ -182,7 +186,7 @@ System.Threading.Thread.Sleep(1000); if (waitime == 0) { - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { if (btnNext != null) { @@ -194,13 +198,13 @@ }); break; } - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { if (btnNext != null) { btnNext.Text = waitime + "s" + repeat; } - }); + }, ShowErrorMode.NO); } }); } @@ -213,14 +217,14 @@ /// 楠岃瘉楠岃瘉鐮� /// </summary> /// <returns></returns> - private void CheckVerificationCode(string code) + private bool CheckVerificationCode(string code) { if (this.canCheckCode == false) { //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� this.btnErrorMsg.Visible = true; this.btnErrorMsg.TextID = R.MyInternationalizationString.uVerificationCodeErrorInputAgain; - return; + return false; } var checkCodePra = new CheckCodePra(); checkCodePra.Code = code; @@ -232,11 +236,12 @@ //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� this.btnErrorMsg.Visible = true; this.btnErrorMsg.TextID = R.MyInternationalizationString.uVerificationCodeErrorInputAgain; - return; + return false; } //鍙樻洿閭 this.SaveNewEmail(); + return true; } /// <summary> -- Gitblit v1.8.0