From f788a1e320b8505435ed66e2456ddb2d0a838f76 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 19 十一月 2020 19:58:14 +0800
Subject: [PATCH] 2020-11-19 1.优化绑定和解绑页面。2.修改密码功能实现,UI界面实现,接口实现。

---
 HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs |   34 ++++++++++++++++++++++++++++++++--
 1 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs
index 09df67e..650de10 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs
@@ -35,6 +35,8 @@
 
         Button btnResend;
 
+        Button btnTip;
+
         Action<string> action;
 
         /// <summary>
@@ -80,10 +82,11 @@
             Action backAction = () =>
             {
                 Application.HideSoftInput();
+                BackConfirmAction();
             };
-            new TopViewDiv(bodyView, Language.StringByID(tId)).LoadTopView(backAction);
+            new TopViewDiv(bodyView, Language.StringByID(tId), false).LoadTopView(backAction);
 
-            Button btnTip = new Button()
+            btnTip = new Button()
             {
                 Y = Application.GetRealHeight(64),
                 Height = Application.GetRealHeight(84),
@@ -697,5 +700,32 @@
             aep.LoadPage(action, isPhone, true);
             MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
         }
+
+        /// <summary>
+        /// 杩斿洖浜屾纭浜嬩欢
+        /// </summary>
+        void BackConfirmAction()
+        {
+            //楠岃瘉鐮佸彂閫佹垚鍔燂紝浜屾纭閫�鍑�
+            if (btnTip.TextID == StringId.VerificationCodePrompt)
+            {
+                Action cancelAction = () =>
+                {
+                    if (bodyView != null)
+                    {
+                        bodyView.RemoveFromParent();
+                    }
+                };
+                HDLCommon.Current.ShowConfirmDialog(StringId.Tip, StringId.VerificationCodeMayBeDelayed, null, cancelAction, StringId.ReturnStr, StringId.WaitAMoment);
+            }
+            else
+            {
+                //鐩存帴鍏抽棴
+                if (bodyView != null)
+                {
+                    bodyView.RemoveFromParent();
+                }
+            }
+        }
     }
 }

--
Gitblit v1.8.0