From 8c1bf42c5fca66625b59728006bd47bae0b6a3ad Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 23 十一月 2020 10:18:16 +0800
Subject: [PATCH] Revert "Merge branch 'CJL' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into CJL"

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs
index 4bcc52c..f6d7949 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs
@@ -61,10 +61,10 @@
                 };
                 dispalyView.AddChidren(contentView);
 
-                if (MainPage.LoginUser.regionList.Count < 3)
+                if ( UserInfo.Current.regionList.Count < 3)
                 {
                 }
-                else if (MainPage.LoginUser.regionList.Count < 4)
+                else if ( UserInfo.Current.regionList.Count < 4)
                 {
                     dispalyView = new FrameLayout()
                     {
@@ -79,7 +79,7 @@
                     contentView.Height = Application.GetRealHeight(45 * 3);
                     dispalyView.AddChidren(contentView);
                 }
-                else if (MainPage.LoginUser.regionList.Count < 5)
+                else if ( UserInfo.Current.regionList.Count < 5)
                 {
                     dispalyView = new FrameLayout()
                     {
@@ -113,7 +113,7 @@
 
 
 
-                foreach (var home in MainPage.LoginUser.regionList)
+                foreach (var home in  UserInfo.Current.regionList)
                 {
                     var btnHomeName = new Button()
                     {
@@ -130,7 +130,7 @@
                     };
                     contentView.AddChidren(btnHomeName);
 
-                    if (MainPage.LoginUser.regionList.IndexOf(home) < MainPage.LoginUser.regionList.Count - 1)
+                    if ( UserInfo.Current.regionList.IndexOf(home) <  UserInfo.Current.regionList.Count - 1)
                     {
                         contentView.AddChidren(new Button()
                         {
@@ -145,7 +145,7 @@
                         var regionId = (string)btnHomeName.Tag;
                         dialog.Close();
                         //DB_ResidenceData.residenceData.CurReginID = regionId;
-                        LoadEvent_ChangeCurHome(MainPage.LoginUser.regionList.Find((obj) => obj.RegionID == regionId));
+                        LoadEvent_ChangeCurHome( UserInfo.Current.regionList.Find((obj) => obj.RegionID == regionId));
                         LoadContentView();
                     };
                 }
@@ -208,7 +208,7 @@
                     }
                     //鍊掑嚭鏂颁綇瀹呮暟鎹�
                     FileUtils.RestoreRegionFiles(newRegionRootPath);
-                    MainPage.LoginUser.SaveUserInfo();
+                     UserInfo.Current.SaveUserInfo();
                     DB_ResidenceData.residenceData.EixtAccount();
                     DB_ResidenceData.residenceData.CurReginID = homeTemp.RegionID;
                     OnAppConfig.Instance.SaveUserConfig();
@@ -270,11 +270,11 @@
             {
                 Action updataHeadImage = () =>
                 {
-                    userHeadImageView.ImagePath = MainPage.LoginUser.headImagePagePath;
+                    userHeadImageView.ImagePath =  UserInfo.Current.headImagePagePath;
                 };
                 Action updataUserName = () =>
                 {
-                    btnUserName.Text = MainPage.LoginUser.userName;
+                    btnUserName.Text =  UserInfo.Current.userName;
                 };
 
                 var personalDataView = new PersonalDataPage(updataHeadImage, updataUserName);

--
Gitblit v1.8.0