From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 18 九月 2020 13:58:19 +0800 Subject: [PATCH] 新版本 --- ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs index 96ab103..ad42b58 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs @@ -114,7 +114,11 @@ btnCodeControl.FinishInputEvent += (value) => { //鏍¢獙楠岃瘉鐮� - this.CheckVerificationCode(value); + if (this.CheckVerificationCode(value) == false) + { + //娓呯┖楠岃瘉鐮� + btnCodeControl.ClearInputValue(); + } }; //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� @@ -234,14 +238,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; @@ -253,11 +257,12 @@ //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� this.btnErrorMsg.Visible = true; this.btnErrorMsg.TextID = R.MyInternationalizationString.uVerificationCodeErrorInputAgain; - return; + return false; } //鍙樻洿鎵嬫満鍙� this.SaveNewPhoneNumber(); + return true; } /// <summary> -- Gitblit v1.8.0