From 437c7a6d88d11e500fc19a3dd198aec28412f06b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 20 十一月 2020 17:48:23 +0800 Subject: [PATCH] 2020-11-20 1.修改UserInfo调用方法。2.增加保存用户注册域名信息。 --- 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