黄学彪
2020-08-07 ec34983e291d1c85284472a27109d55891f9a6b5
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;
@@ -133,8 +136,8 @@
            btnNext.CanClick = false;
            //?s后重发
            string repeat = Language.StringByID(R.MyInternationalizationString.RepeatSend1);
            //有效时间300秒
            int waitime = 300;
            //有效时间60秒
            int waitime = 60;
            btnNext.Text = waitime + "s" + repeat;
            HdlThreadLogic.Current.RunThread(() =>
@@ -145,8 +148,7 @@
                    System.Threading.Thread.Sleep(1000);
                    if (waitime == 0)
                    {
                        this.canCheckCode = false;
                        Application.RunOnMainThread(() =>
                        HdlThreadLogic.Current.RunMain(() =>
                        {
                            if (btnNext != null)
                            {
@@ -158,13 +160,13 @@
                        });
                        break;
                    }
                    Application.RunOnMainThread(() =>
                    HdlThreadLogic.Current.RunMain(() =>
                    {
                        if (btnNext != null)
                        {
                            btnNext.Text = waitime + "s" + repeat;
                        }
                    });
                    }, ShowErrorMode.NO);
                }
            });
        }
@@ -177,7 +179,7 @@
        /// 验证验证码
        /// </summary>
        /// <returns></returns>
        private async void CheckVerificationCode(string code)
        private void CheckVerificationCode(string code)
        {
            if (this.canCheckCode == false)
            {
@@ -188,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)
            {
                //验证码错误,请重新输入