wxr
2021-07-01 43b0d5870d528f23ecd6aeceb6cfd4325188b46f
HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
@@ -253,7 +253,7 @@
                Y = Application.GetRealHeight(276),
                Gravity = Gravity.CenterHorizontal,
                Width = Application.GetRealWidth(220),
                Height = Application.GetRealHeight(44),
                Height = Application.GetRealWidth(44),
                SelectedBackgroundColor = CSS_Color.MainColor,
                BackgroundColor = CSS_Color.PromptingColor1,
                TextAlignment = TextAlignment.Center,
@@ -282,7 +282,8 @@
        /// </summary>
        void LoadEvent_VerificationEntryEvent()
        {
            EventHandler<MouseEventArgs> clickEvent = (sender, e) => {
            EventHandler<MouseEventArgs> clickEvent = (sender, e) =>
            {
                et.Foucs = true;
                var etCode = et.Text;
                switch (etCode.Length)
@@ -380,7 +381,8 @@
            btnNum5.MouseUpEventHandler = clickEvent;
            btnNum6.MouseUpEventHandler = clickEvent;
            et.TextChangeEventHandler = (sender, e) => {
            et.TextChangeEventHandler = (sender, e) =>
            {
                var etCode = et.Text;
                switch (etCode.Length)
                {
@@ -559,7 +561,7 @@
            { IsBackground = true }.Start();
        }
        /// <summary>
        /// 重发验证码等待线程
        /// </summary>
@@ -567,9 +569,15 @@
        {
            btnResend.IsSelected = false;
            int time = 60;
            try
            //加载Loading效果
            var waitPage = new Loading();
            bodyView.AddChidren(waitPage);
            waitPage.Start(Language.StringByID(StringId.PleaseWait));
            new Thread(() =>
            {
                new Thread(() =>
                try
                {
                    //2.2  获取验证码
                    ResponsePackNew resultObj;
@@ -579,7 +587,7 @@
                    }
                    else
                    {
                        resultObj = new DAL.Server.HttpServerRequest().VerificationCodeSend(VerifyType.FIND_PASSWORD, account, true,  UserInfo.Current.areaCode.ToString());
                        resultObj = new DAL.Server.HttpServerRequest().VerificationCodeSend(VerifyType.FIND_PASSWORD, account, true, UserInfo.Current.areaCode.ToString());
                    }
                    if (resultObj.Code != StateCode.SUCCESS)
@@ -594,36 +602,46 @@
                    }
                    else
                    {
                        //发送成功,开始倒计时
                        Application.RunOnMainThread(() =>
                        new Thread(() =>
                        {
                            btnTip.TextID = StringId.VerificationCodePrompt;
                        });
                        while (time > 0)
                        {
                            time--;
                            //发送成功,开始倒计时
                            Application.RunOnMainThread(() =>
                            {
                                btnResend.Text = time.ToString() + "s";
                                btnTip.TextID = StringId.VerificationCodePrompt;
                            });
                            Thread.Sleep(1000);
                        }
                        Application.RunOnMainThread(() =>
                        {
                            btnResend.IsSelected = true;
                            btnResend.TextID = StringId.GetVerificationCode;
                        });
                            while (time > 0)
                            {
                                time--;
                                Application.RunOnMainThread(() =>
                                {
                                    btnResend.Text = time.ToString() + "s";
                                });
                                Thread.Sleep(1000);
                            }
                            Application.RunOnMainThread(() =>
                            {
                                btnResend.IsSelected = true;
                                btnResend.TextID = StringId.GetVerificationCode;
                            });
                        })
                        { IsBackground = true }.Start();
                    }
                })
                { IsBackground = true }.Start();
            }
            catch { }
            finally
            {
            };
                }
                catch { }
                finally
                {
                    Application.RunOnMainThread(() =>
                    {
                        if (waitPage != null)
                        {
                            waitPage.RemoveFromParent();
                            waitPage = null;
                        }
                    });
                }
            })
            { IsBackground = true }.Start();
        }
        /// <summary>