xm
2020-07-21 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d
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,11 +136,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)
                {
@@ -145,7 +148,6 @@
                    System.Threading.Thread.Sleep(1000);
                    if (waitime == 0)
                    {
                        this.canCheckCode = false;
                        Application.RunOnMainThread(() =>
                        {
                            if (btnNext != null)
@@ -166,8 +168,7 @@
                        }
                    });
                }
            })
            { IsBackground = true }.Start();
            });
        }
        #endregion
@@ -178,7 +179,7 @@
        /// 验证验证码
        /// </summary>
        /// <returns></returns>
        private async void CheckVerificationCode(string code)
        private void CheckVerificationCode(string code)
        {
            if (this.canCheckCode == false)
            {
@@ -189,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)
            {
                //验证码错误,请重新输入