陈嘉乐
2020-09-02 652243206427f35a256400a149a1734085824cb9
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;
@@ -145,7 +148,7 @@
                    System.Threading.Thread.Sleep(1000);
                    if (waitime == 0)
                    {
                        Application.RunOnMainThread(() =>
                        HdlThreadLogic.Current.RunMain(() =>
                        {
                            if (btnNext != null)
                            {
@@ -157,13 +160,13 @@
                        });
                        break;
                    }
                    Application.RunOnMainThread(() =>
                    HdlThreadLogic.Current.RunMain(() =>
                    {
                        if (btnNext != null)
                        {
                            btnNext.Text = waitime + "s" + repeat;
                        }
                    });
                    }, ShowErrorMode.NO);
                }
            });
        }
@@ -176,7 +179,7 @@
        /// 验证验证码
        /// </summary>
        /// <returns></returns>
        private async void CheckVerificationCode(string code)
        private void CheckVerificationCode(string code)
        {
            if (this.canCheckCode == false)
            {
@@ -187,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)
            {
                //验证码错误,请重新输入