From f9181a9c8125136f597add7c30cb2ff508d54ba7 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:34:32 +0800
Subject: [PATCH] 2024年07月25日17:33:40

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs |  161 +++++++++++------------------------------------------
 1 files changed, 34 insertions(+), 127 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index 4d984e0..e84a5cb 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -4,6 +4,11 @@
 using HDL_ON.Entity;
 using Shared;
 
+#if __IOS__
+using UIKit;
+using Foundation;
+#endif
+
 namespace HDL_ON.UI
 {
     public partial class PersonalDataPage
@@ -16,7 +21,7 @@
             LoadEvent_ChangeHeadImageView();
             LoadEvent_Logout();
             LoadEvent_EditUserName();
-            LoadEvent_SkipInterpretationSettings();
+            //LoadEvent_SkipInterpretationSettings();
             LoadEvent_ChangeBindEmail();
             LoadEvent_ChangeBindPhone();
             LoadEvent_SkipModifyPassword();
@@ -35,111 +40,6 @@
                 LoadPictureOptionView();
             };
         }
-
-        ///// <summary>
-        ///// 閫�鍑虹櫥褰曟搷浣�
-        ///// </summary>
-        //void Logout()
-        //{
-        //    #region 淇濆瓨鏈湴鏁版嵁鑷虫枃浠跺す
-        //    string oldRegionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID.ToString());
-        //    new System.Threading.Thread(() =>
-        //    {
-        //        try
-        //        {
-        //            var backuplist = FileUtils.ReadFiles();
-        //            //绉诲姩鏂囦欢
-        //            foreach (var fileName in backuplist)
-        //            {
-        //                System.IO.FileInfo fileInfo = new System.IO.FileInfo(FileUtils.RootPath + fileName);
-        //                if (fileInfo.Exists)
-        //                {
-        //                    fileInfo.MoveTo(oldRegionRootPath + fileName);
-        //                    MainPage.Log("move file : " + fileName);
-        //                }
-        //            }
-        //            FileUtils.DeleteRegionFiles(oldRegionRootPath);
-        //        }
-        //        catch (Exception ex)
-        //        {
-        //            MainPage.Log($"xxx:{ex.Message}");
-        //        }
-        //        finally
-        //        {
-        //            FileUtils.DeleteAllFile();
-        //        }
-        //    }).Start();
-        //    #endregion
-
-        //    //2.娉ㄩ攢鎺ㄩ��
-        //    new HttpServerRequest().SignOutPush();
-        //    //3.璺宠浆鐧诲綍椤甸潰
-        //    UserInfo.Current.LastTime = DateTime.MinValue;
-        //    UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//閲嶇疆鐢ㄦ埛澶村儚
-        //    UserInfo.Current.SaveUserInfo();
-        //    MainPage.GoLoginPage(UserInfo.Current);
-        //    DB_ResidenceData.residenceData.EixtAccount();
-        //}
-
-        ///// <summary>
-        ///// 閫�鍑虹櫥褰曟搷浣�
-        ///// </summary>
-        //public void LogoutNew()
-        //{
-        //    //鍔犺浇Loading鏁堟灉
-        //    var waitPage = new Loading();
-        //    bodyView.AddChidren(waitPage);
-        //    waitPage.Start(Language.StringByID(StringId.PleaseWait));
-
-        //    new Thread(() =>
-        //    {
-        //        try
-        //        {
-        //            #region 淇濆瓨鏈湴鏁版嵁鑷虫枃浠跺す
-        //            //string oldRegionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID.ToString());
-        //            ////娓呯┖涔嬪墠鐨勪綇瀹呮枃浠�
-        //            //FileUtils.DeleteRegionFiles(oldRegionRootPath);
-        //            //var backuplist = FileUtils.ReadFiles();
-        //            ////绉诲姩鏂囦欢
-        //            //foreach (var fileName in backuplist)
-        //            //{
-        //            //    System.IO.FileInfo fileInfo = new System.IO.FileInfo(FileUtils.RootPath + fileName);
-        //            //    if (fileInfo.Exists)
-        //            //    {
-        //            //        fileInfo.MoveTo(oldRegionRootPath + fileName);
-        //            //        MainPage.Log("move file : " + fileName);
-        //            //    }
-        //            //}
-        //            #endregion
-        //        }
-        //        catch (Exception ex)
-        //        {
-        //            MainPage.Log($"xxx:{ex.Message}");
-        //        }
-        //        finally
-        //        {
-        //            //FileUtils.DeleteAllFile();
-        //            //2.娉ㄩ攢鎺ㄩ��
-        //            new HttpServerRequest().SignOutPush();
-        //            //3.璺宠浆鐧诲綍椤甸潰
-        //            UserInfo.Current.LastTime = DateTime.MinValue;
-        //            UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//閲嶇疆鐢ㄦ埛澶村儚
-        //            UserInfo.Current.SaveUserInfo();
-        //            Shared.Application.RunOnMainThread(() =>
-        //            {
-        //                if (waitPage != null)
-        //                {
-        //                    waitPage.RemoveFromParent();
-        //                    waitPage = null;
-        //                }
-
-        //                MainPage.GoLoginPage(UserInfo.Current);
-        //                DB_ResidenceData.residenceData.EixtAccount();
-
-        //            });
-        //        }
-        //    }).Start();
-        //}
 
         /// <summary>
         /// 閫�鍑鸿处鍙风櫥褰曚簨浠�
@@ -363,6 +263,7 @@
         {
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
+
                 Action<string> callBack = (str) =>
                 {
                     if (string.IsNullOrEmpty(str))
@@ -439,7 +340,6 @@
                 MainPage.BasePageView.AddChidren(aep);
                 aep.LoadPage();
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-
             };
             _QRcodeView.MouseUpEventHandler = eventHandler;
             btnQRcode.MouseUpEventHandler = eventHandler;
@@ -459,6 +359,7 @@
                 {
 
                     btnUserEmailInfo.Text = GetBindAccountText(email);
+
                 };
 
                 if (CheckIfUnbound(btnUserEmailInfo.Text))
@@ -493,6 +394,7 @@
                 Action<string> action = (phone) =>
                 {
                     btnUserPhoneInfo.Text = GetBindAccountText(phone);
+
                 };
 
                 if (CheckIfUnbound(btnUserPhoneInfo.Text))
@@ -511,31 +413,30 @@
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                 }
 
-
             };
             btnUserPhoneInfo.MouseUpEventHandler = eventHandler;
             btnUserPhoneRight.MouseUpEventHandler = eventHandler;
             userPhoneInfoView.MouseUpEventHandler = eventHandler;
         }
-        #endregion
+#endregion
 
-        #region 瑙i攣璁剧疆鍖哄煙
-        void LoadEvent_SkipInterpretationSettings()
-        {
-            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
-            {
-                var page = new AppUnlockSettingsPage();
-                MainPage.BasePageView.AddChidren(page);
-                page.LoadPage();
-                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-            };
+#region 瑙i攣璁剧疆鍖哄煙
+        //void LoadEvent_SkipInterpretationSettings()
+        //{
+        //    EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
+        //    {
+        //        var page = new AppUnlockSettingsPage();
+        //        MainPage.BasePageView.AddChidren(page);
+        //        page.LoadPage();
+        //        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+        //    };
 
-            btnInterpretationSettingsRight.MouseUpEventHandler = eventHandler;
-            btnInterpretationSettingsTitle.MouseUpEventHandler = eventHandler;
-            btnInterpretationSettingsTip.MouseUpEventHandler = eventHandler;
-        }
+        //    btnInterpretationSettingsRight.MouseUpEventHandler = eventHandler;
+        //    btnInterpretationSettingsTitle.MouseUpEventHandler = eventHandler;
+        //    btnInterpretationSettingsTip.MouseUpEventHandler = eventHandler;
+        //}
 
-        #endregion
+#endregion
 
         /// <summary>
         /// 璺宠浆淇敼瀵嗙爜鐣岄潰
@@ -544,10 +445,16 @@
         {
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
-                var page = new ResetPasswordOptionPage();
-                MainPage.BasePageView.AddChidren(page);
-                page.LoadPage();
+                //var page = new ResetPasswordOptionPage();
+                //MainPage.BasePageView.AddChidren(page);
+                //page.LoadPage();
+                //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+
+                var vcp = new ResetPasswordPage();
+                MainPage.BasePageView.AddChidren(vcp);
+                vcp.LoadPage();
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+
             };
             btnResetPasswordRight.MouseUpEventHandler = eventHandler;
             btnResetPasswordText.MouseUpEventHandler = eventHandler;

--
Gitblit v1.8.0