From 3aa397ab145382935492b11c1f18c9634e69910b Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 10 十二月 2020 16:45:00 +0800 Subject: [PATCH] 请合并,门锁和晾衣架第一版代码 --- ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs index 67f4ab0..d4beb21 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckOldEmailForm.cs @@ -86,7 +86,11 @@ btnCodeControl.FinishInputEvent += (value) => { //鏍¢獙楠岃瘉鐮� - this.CheckVerificationCode(value); + if (this.CheckVerificationCode(value) == false) + { + //娓呯┖楠岃瘉鐮� + btnCodeControl.ClearInputValue(); + } }; //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� @@ -179,13 +183,13 @@ /// 楠岃瘉楠岃瘉鐮� /// </summary> /// <returns></returns> - private void CheckVerificationCode(string code) + private bool CheckVerificationCode(string code) { if (this.canCheckCode == false) { //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� this.btnErrorMsg.Visible = true; - return; + return false; } var checkCodePra = new CheckCodePra(); checkCodePra.Code = code; @@ -195,11 +199,13 @@ { //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� this.btnErrorMsg.Visible = true; - return; + return false; } var from = new CheckNewEmailForm(); base.AddFromAndRemoveNowForm(from); + + return true; } #endregion -- Gitblit v1.8.0