From b8e94316e41eba72d927d5ca7d931b26139ee8ff Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 15 六月 2020 09:12:53 +0800
Subject: [PATCH] 20200612

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
index 0f6b5af..1df7c54 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -245,7 +245,7 @@
             #endregion
 
             #region 浣忓畢淇℃伅鍖哄煙
-            if (MainPage.LoginUser.accountType == 0)
+            if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare)
             {
                 residenceInfoView = new FrameLayout()
                 {
@@ -316,7 +316,8 @@
                 Y = Application.GetRealHeight(15),
                 Width = Application.GetMinRealAverage(20),
                 Height = Application.GetMinRealAverage(20),
-                UnSelectedImagePath = MainPage.LoginUser.accountType == 0 ? "PersonalCenter/AdminTypeIcon.png" : "PersonalCenter/MemberTypeIcon.png",
+                UnSelectedImagePath = DB_ResidenceData.residenceData.residecenInfo.IsOthreShare
+                                    == false ? "PersonalCenter/AdminTypeIcon.png" : "PersonalCenter/MemberTypeIcon.png",
             };
             userTypeView.AddChidren(btnUserTypeIcon);
 
@@ -328,12 +329,13 @@
                 TextAlignment = TextAlignment.CenterLeft,
                 TextColor = CSS_Color.MainBackgroundColor,
                 TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-                Text = MainPage.LoginUser.accountType == 0 ? "绠$悊鍛�" : "鎴愬憳"
+                Text = DB_ResidenceData.residenceData.residecenInfo.IsOthreShare
+                        == false ? "绠$悊鍛�" : "鎴愬憳"
             };
             userTypeView.AddChidren(btnUserTypeName);
             #endregion
             #region 浣忓畢绠$悊
-            if (MainPage.LoginUser.accountType == 0)
+            if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare)
             {
                 #region ---浣忓畢绠$悊鍖哄煙
                 residenceManageView = new FrameLayout()

--
Gitblit v1.8.0