From 7d005a7618e3d7a80d8ede3baf6ecc4bf8019cd5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 01 九月 2020 15:22:09 +0800
Subject: [PATCH] 2020-09-01

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs |   77 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 72 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index a4f5353..90f7720 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -15,6 +15,9 @@
             LoadEvent_Logout();
             LoadEvent_EditUserName();
             LoadEvent_SkipInterpretationSettings();
+            LoadEvent_ChangeBindEmail();
+            LoadEvent_ChangeBindPhone();
+            LoadEvent_SkipModifyPassword();
         }
 
         /// <summary>
@@ -37,7 +40,7 @@
             {
                 MainPage.LoginUser.lastTime = DateTime.MinValue;
                 MainPage.LoginUser.SaveUserInfo();
-                MainPage.GoLoginPage(MainPage.LoginUser.accountString);
+                MainPage.GoLoginPage(MainPage.LoginUser);
                 FileUtils.DeleteAllFile();
                 DB_ResidenceData.residenceData.EixtAccount();
             };
@@ -46,16 +49,18 @@
         /// <summary>
         /// 鍔犺浇鑳屾櫙鍥鹃�夋嫨鍖哄煙浜嬩欢鍒楄〃
         /// </summary>
-        void LoadEvent_PictureOptionViewEventList()
+        void LoadEvent_PictureOptionViewEventList(FrameLayout baseView)
         {
             pictureOptionView.MouseUpEventHandler = (sender, e) =>
             {
-                pictureOptionView.RemoveFromParent();
+                baseView.RemoveFromParent();
             };
-
+            baseView.MouseUpEventHandler = (sender, e) => {
+                baseView.RemoveFromParent();
+            };
             btnCancel.MouseUpEventHandler = (sender, e) =>
             {
-                pictureOptionView.RemoveFromParent();
+                baseView.RemoveFromParent();
             };
 
             btnTakePicture.MouseUpEventHandler = (sender, e) =>
@@ -133,6 +138,10 @@
                         }.Show(bodyView);
                         return;
                     }
+                    if(str == MainPage.LoginUser.userName)
+                    {
+                        return;
+                    }
                     var waitPage = new Loading();
                     waitPage.Start(Language.StringByID(StringId.PleaseWait));
                     new System.Threading.Thread(() =>
@@ -195,6 +204,48 @@
             btnEditUserNameIcon.MouseUpEventHandler = eventHandler;
         }
 
+        #region 淇敼缁戝畾閭
+        /// <summary>
+        /// 淇敼缁戝畾閭
+        /// </summary>
+        void LoadEvent_ChangeBindEmail()
+        {
+            EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
+                Action<string> action = (email) =>
+                {
+                    btnUserEmailInfo.Text = email;
+                };
+
+                var aep = new AccountBindInfoPage();
+                MainPage.BasePageView.AddChidren(aep);
+                aep.LoadPage(action,1,StringId.EmailAddress);
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            };
+            btnUserEmailInfo.MouseUpEventHandler = eventHandler;
+            btnUserEmailRight.MouseUpEventHandler = eventHandler;
+            userEmailInfoView.MouseUpEventHandler = eventHandler;
+        }
+        /// <summary>
+        /// 淇敼缁戝畾鎵嬫満
+        /// </summary>
+        void LoadEvent_ChangeBindPhone()
+        {
+            EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
+                Action<string> action = (phone) =>
+                {
+                    btnUserPhoneInfo.Text = phone;
+                };
+
+                var aep = new AccountBindInfoPage();
+                MainPage.BasePageView.AddChidren(aep);
+                aep.LoadPage(action, 2, StringId.PhoneInfo);
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            };
+            btnUserPhoneInfo.MouseUpEventHandler = eventHandler;
+            btnUserPhoneRight.MouseUpEventHandler = eventHandler;
+            userPhoneInfoView.MouseUpEventHandler = eventHandler;
+        }
+        #endregion
 
         #region 瑙i攣璁剧疆鍖哄煙
         void LoadEvent_SkipInterpretationSettings()
@@ -214,5 +265,21 @@
 
         #endregion
 
+        /// <summary>
+        /// 璺宠浆淇敼瀵嗙爜鐣岄潰
+        /// </summary>
+        void LoadEvent_SkipModifyPassword()
+        {
+            EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
+                var page = new ResetPasswordOptionPage();
+                MainPage.BasePageView.AddChidren(page);
+                page.LoadPage();
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            };
+            btnResetPasswordRight.MouseUpEventHandler = eventHandler;
+            btnResetPasswordText.MouseUpEventHandler = eventHandler;
+            resetPasswordView.MouseUpEventHandler = eventHandler;
+        }
+
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0