From efcffde735fa65ae34bae0bcc86313b74ed0e36c Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 20 五月 2024 13:47:38 +0800
Subject: [PATCH] 优化离线数据

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

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
index f09d43a..a7cd03f 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -167,6 +167,22 @@
 
         public void LoadView()
         {
+            //try
+            //{
+            //    if (MainPage.CurPageIndex == 3)
+            //    {
+            //        Application.RunOnMainThread(() =>
+            //        {
+            //            this.RemoveFromParent();
+            //            return;
+            //        });
+            //    }
+            //}
+            //catch (Exception ex)
+            //{
+            //    MainPage.Log($"鐣岄潰鍒囨崲寮傚父:{ex.Message}");
+            //}
+            MainPage.CurPageIndex = 3;
             #region 涓汉淇℃伅
             topbg = new FrameLayout()
             {
@@ -297,7 +313,7 @@
             #region 浣忓畢淇℃伅鍖哄煙
             if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare
                 && DB_ResidenceData.Instance.GatewayType == 1
-                && DB_ResidenceData.Instance.CurrentRegion.isSupportGroupControl)
+                && DB_ResidenceData.Instance.HomeGateway.isSupportGroupControl)
             {
                 residenceInfoView = new FrameLayout()
                 {
@@ -587,7 +603,7 @@
                     residenceAddFunctionView.AddChidren(btnResidenceAddFunctionText);
                     #endregion
 
-                    if (DB_ResidenceData.Instance.CurrentRegion.isSupportGroupControl)
+                    if (DB_ResidenceData.Instance.HomeGateway.isSupportGroupControl)
                     {
                         residenceFunctionCount++;
                         #region ---缁勫悎璋冨厜
@@ -613,10 +629,11 @@
                         {
                             Y = btnResidenceManageIcon.Bottom,
                             Height = Application.GetRealHeight(29),
-                            TextID = StringId.CombinedDimming,
+                            TextID = StringId.GroupControl,
                             TextAlignment = TextAlignment.Center,
                             TextColor = CSS_Color.FirstLevelTitleColor,
-                            TextSize = CSS_FontSize.PromptFontSize_FirstLevel
+                            TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                            IsMoreLines = true,
                         };
                         faceManagementView.AddChidren(btnFaceManagementText);
 

--
Gitblit v1.8.0