From ec074f7a42c10995732739c842e60ed84aedce20 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 20 十一月 2020 18:02:59 +0800
Subject: [PATCH] 2020-11-20 1.更新

---
 HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs |   55 +++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 43 insertions(+), 12 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs
index 1ce3c56..91255e5 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs
@@ -35,6 +35,8 @@
 
         Button btnResend;
 
+        Button btnTip;
+
         Action<string> action;
 
         int titleId;
@@ -88,13 +90,13 @@
             this.verAccount = account;
             this.isModifyBind = isModifyBind;
 
-
             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),
@@ -527,7 +529,7 @@
                             else
                             {
                                 //澶辫触鎻愮ず
-                                IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Member_BindWithAccount, resultObj);
+                                IMessageCommon.Current.ShowErrorInfoAlter(resultObj);
                             }
                             Application.RunOnMainThread(() =>
                             {
@@ -558,32 +560,34 @@
                 var tipMsg = "";
                 if (isPhone)
                 {
-                    MainPage.LoginUser.userMobileInfo = verAccount;
-                    tipMsg = "璇蜂娇鐢ㄦ柊鐨勬墜鏈鸿处鍙风櫥褰旳PP";
+                     UserInfo.Current.userMobileInfo = verAccount;
+                    //璇蜂娇鐢ㄦ柊鐨勬墜鏈鸿处鍙风櫥褰旳PP
+                    tipMsg = Language.StringByID(StringId.PleaseLoginWithNewMobileAccount);
                     if (isModifyBind)
                     {
                         //鐧诲綍鎵嬫満淇敼瀹屾垚
-                        tipTitle = "鐧诲綍鎵嬫満淇敼瀹屾垚";
+                        tipTitle = Language.StringByID(StringId.LoginMobileAccountModificationCompleted);
                     }
                     else
                     {
                         //鐧诲綍鎵嬫満缁戝畾瀹屾垚
-                        tipTitle = "鐧诲綍鎵嬫満缁戝畾瀹屾垚";
+                        tipTitle = Language.StringByID(StringId.LoginMobileAccountBindCompleted);
                     }
                 }
                 else
                 {
-                    MainPage.LoginUser.userEmailInfo = verAccount;
-                    tipMsg = "璇蜂娇鐢ㄦ柊鐨勯偖绠辫处鍙风櫥褰旳PP";
+                     UserInfo.Current.userEmailInfo = verAccount;
+                    //璇蜂娇鐢ㄦ柊鐨勯偖绠辫处鍙风櫥褰旳PP
+                    tipMsg = Language.StringByID(StringId.PleaseLoginWithNewEmailAccount);
                     if (isModifyBind)
                     {
                         //鐧诲綍閭淇敼瀹屾垚
-                        tipTitle = "鐧诲綍閭淇敼瀹屾垚";
+                        tipTitle = Language.StringByID(StringId.LoginEmailAccountModificationCompleted);
                     }
                     else
                     {
                         //鐧诲綍閭缁戝畾瀹屾垚
-                        tipTitle = "鐧诲綍閭缁戝畾瀹屾垚";
+                        tipTitle = Language.StringByID(StringId.LoginEmailAccountBindCompleted);
 
                     }
                 }
@@ -675,6 +679,33 @@
                 LoadThread_SendVerCode();
             };
         }
+
+        /// <summary>
+        /// 杩斿洖浜屾纭浜嬩欢
+        /// </summary>
+        void BackConfirmAction()
+        {
+            //楠岃瘉鐮佸彂閫佹垚鍔燂紝浜屾纭閫�鍑�
+            if (btnTip.TextID == StringId.VerificationCodePrompt)
+            {
+                Action cancelAction = () =>
+                {
+                    if (bodyView != null)
+                    {
+                        bodyView.RemoveFromParent();
+                    }
+                };
+                new ConfirmDialog().ShowDialog(StringId.Tip, StringId.VerificationCodeMayBeDelayed, null, cancelAction, StringId.ReturnStr, StringId.WaitAMoment);
+            }
+            else
+            {
+                //鐩存帴鍏抽棴
+                if (bodyView != null)
+                {
+                    bodyView.RemoveFromParent();
+                }
+            }
+        }
        
     }
 }

--
Gitblit v1.8.0