From 273bd8b4fb918a4303207215b2b8369fbc275000 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 08 十二月 2020 18:58:44 +0800
Subject: [PATCH] Merge branch 'CJL-NEW'

---
 HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs |  101 ++++++++++++++++++++++++++++++--------------------
 1 files changed, 60 insertions(+), 41 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs
index 1faeae0..af42f85 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs
@@ -186,61 +186,80 @@
             {
                 if (button.Text == Language.StringByID(StringId.GetVerificationCode))
                 {
+                    //鍔犺浇Loading鏁堟灉
+                    var waitPage = new Loading();
+                    bodyView.AddChidren(waitPage);
+                    waitPage.Start(Language.StringByID(StringId.PleaseWait));
+
                     new Thread(() =>
                     {
-                        //1.鑾峰彇楠岃瘉鐮�,閲囩敤鏁忔劅鏁版嵁楠岃瘉
-                        ResponsePackNew resultObj;
-                        if (optionType == 1)//閭
+                        try
                         {
-                            resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA,  UserInfo.Current.userEmailInfo);
-                        }
-                        else
-                        {
-                            resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA,  UserInfo.Current.userMobileInfo, true,  UserInfo.Current.areaCode);
-                        }
-
-                        if (resultObj.Code != StateCode.SUCCESS)
-                        {
-                            // 鎻愮ず閿欒
-                            IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code);
-                        }
-                        else
-                        {
-                            if (time == 0)
+                            //1.鑾峰彇楠岃瘉鐮�,閲囩敤鏁忔劅鏁版嵁楠岃瘉
+                            ResponsePackNew resultObj;
+                            if (optionType == 1)//閭
                             {
-                                time = 60;
-                                new Thread(() =>
+                                resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, UserInfo.Current.userEmailInfo);
+                            }
+                            else
+                            {
+                                resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, UserInfo.Current.userMobileInfo, true, UserInfo.Current.areaCode);
+                            }
+
+                            if (resultObj.Code != StateCode.SUCCESS)
+                            {
+                                // 鎻愮ず閿欒
+                                IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code);
+                            }
+                            else
+                            {
+                                if (time == 0)
                                 {
-                                    while (time > 0)
+                                    time = 60;
+                                    new Thread(() =>
                                     {
-                                        time--;
+                                        while (time > 0)
+                                        {
+                                            time--;
+                                            Application.RunOnMainThread(() =>
+                                            {
+                                                button.Text = time.ToString() + "s";
+                                            });
+                                            Thread.Sleep(1000);
+                                        }
                                         Application.RunOnMainThread(() =>
                                         {
-                                            button.Text = time.ToString() + "s";
+                                            button.IsSelected = true;
+                                            button.TextID = StringId.GetVerificationCode;
+                                            button.BackgroundColor = CSS_Color.MainColor;
+                                            time = 0;
                                         });
-                                        Thread.Sleep(1000);
-                                    }
-                                    Application.RunOnMainThread(() =>
-                                    {
-                                        button.IsSelected = true;
-                                        button.TextID = StringId.GetVerificationCode;
-                                        button.BackgroundColor = CSS_Color.MainColor;
-                                        time = 0;
-                                    });
-                                })
-                                { IsBackground = true }.Start();
+                                    })
+                                    { IsBackground = true }.Start();
+                                }
+                                Application.RunOnMainThread(() =>
+                                {
+                                    button.BackgroundColor = CSS_Color.PromptingColor1;
+                                    var vcp = new ChangeBindVerificationCodePage();
+                                    vcp.IsUnbind = IsUnbind;
+                                    MainPage.BasePageView.AddChidren(vcp);
+                                    vcp.LoadPage(action, titleId, optionType, time);
+                                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                                });
                             }
+                        }
+                        catch { }
+                        finally
+                        {
                             Application.RunOnMainThread(() =>
                             {
-                                button.BackgroundColor = CSS_Color.PromptingColor1;
-                                var vcp = new ChangeBindVerificationCodePage();
-                                vcp.IsUnbind = IsUnbind;
-                                MainPage.BasePageView.AddChidren(vcp);
-                                vcp.LoadPage(action, titleId, optionType, time);
-                                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                                if (waitPage != null)
+                                {
+                                    waitPage.RemoveFromParent();
+                                    waitPage = null;
+                                }
                             });
                         }
-
                     })
                     { IsBackground = true }.Start();
                 }

--
Gitblit v1.8.0