From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001 From: lss <316519258@qq.com> Date: 星期五, 12 六月 2020 09:22:04 +0800 Subject: [PATCH] 2020.06.12 --- ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs index 77ae83e..29cb8ff 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewEmailForm.cs @@ -65,6 +65,8 @@ btnLine.Y = txtValue.Bottom; btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine; frame.AddChidren(btnLine); + //鑱斿姩绾跨殑鐘舵�� + txtValue.btnLine = btnLine; if (string.IsNullOrEmpty(UserCenterResourse.UserInfo.Email) == false) { @@ -102,6 +104,7 @@ btnErrorMsg.TextAlignment = TextAlignment.Center; btnErrorMsg.TextColor = 0xfff75858; btnErrorMsg.TextID = R.MyInternationalizationString.uVerificationCodeErrorInputAgain; + btnErrorMsg.IsBold = true; bodyFrameLayout.AddChidren(btnErrorMsg); btnErrorMsg.Visible = false; @@ -113,6 +116,9 @@ btnOk.CanClick = false; btnOk.ButtonClickEvent += (sender, e) => { + //娓呯┖杈撳叆鐨勫�� + btnCodeControl.ClearInputValue(); + this.btnErrorMsg.Visible = false; //妫�娴嬮偖绠辩殑鍦板潃 if (this.CheckEmail(txtValue.Text.Trim()) == false) @@ -150,7 +156,7 @@ var sendCodePra = new SendCodePra(); sendCodePra.Account = Email; - bool falge = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/LoginSendVerCode", false, sendCodePra); + bool falge = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/RegisterSendVerCode", false, sendCodePra); if (falge == false) { return; @@ -164,11 +170,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) { @@ -176,7 +182,6 @@ System.Threading.Thread.Sleep(1000); if (waitime == 0) { - this.canCheckCode = false; Application.RunOnMainThread(() => { if (btnNext != null) @@ -197,8 +202,7 @@ } }); } - }) - { IsBackground = true }.Start(); + }); } #endregion -- Gitblit v1.8.0