From f703a411c0ebdf7ada490fda75b52fd839dae079 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 16 三月 2023 14:04:59 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev-cqy(1.5.9)' into dev--wxr

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

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
index 3887a17..2cd51bc 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -257,6 +257,10 @@
                 {
                     btnExit.Text = "閫�鍑�";
                 }
+                //else if (Language.CurrentLanguage == "russian")
+                //{
+                //    btnExit.Text = "胁褘褏芯写";
+                //}
                 else
                 {
                     btnExit.Text = "Exit";
@@ -286,22 +290,24 @@
         {
             contentView.RemoveAll();
 
+            var residenceFunctionCount = 0;
+
             #region 浣忓畢淇℃伅鍖哄煙
-            //if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare && DB_ResidenceData.Instance.GatewayType == 1)
-            //{
-            //    residenceInfoView = new FrameLayout()
-            //    {
-            //        Gravity = Gravity.CenterHorizontal,
-            //        Width = Application.GetRealWidth(343),
-            //        Height = Application.GetRealHeight(213),
-            //        BackgroundColor = CSS_Color.MainBackgroundColor,
-            //        Radius = (uint)Application.GetRealHeight(12),
-            //        BorderColor = 0x00FFFFFF,
-            //        BorderWidth = 0,
-            //    };
-            //    contentView.AddChidren(residenceInfoView);
-            //}
-            //else
+            if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare && DB_ResidenceData.Instance.GatewayType == 1)
+            {
+                residenceInfoView = new FrameLayout()
+                {
+                    Gravity = Gravity.CenterHorizontal,
+                    Width = Application.GetRealWidth(343),
+                    Height = Application.GetRealHeight(213),
+                    BackgroundColor = CSS_Color.MainBackgroundColor,
+                    Radius = (uint)Application.GetRealHeight(12),
+                    BorderColor = 0x00FFFFFF,
+                    BorderWidth = 0,
+                };
+                contentView.AddChidren(residenceInfoView);
+            }
+            else
             {
                 residenceInfoView = new FrameLayout()
                 {
@@ -384,6 +390,7 @@
 
             if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare)
             {
+                residenceFunctionCount++;
                 #region ---浣忓畢绠$悊鍖哄煙
                 residenceManageView = new FrameLayout()
                 {
@@ -416,6 +423,7 @@
                 residenceManageView.AddChidren(btnResidenceManageText);
                 #endregion
 
+                residenceFunctionCount++;
                 #region ---鎴愬憳鍖哄煙
                 residenceMemberView = new FrameLayout()
                 {
@@ -543,6 +551,7 @@
 
                 if (DB_ResidenceData.Instance.GatewayType == 1)
                 {
+                    residenceFunctionCount++;
                     #region ---娣诲姞鍔熻兘鍖哄煙
                     residenceAddFunctionView = new FrameLayout()
                     {
@@ -573,6 +582,39 @@
                     };
                     residenceAddFunctionView.AddChidren(btnResidenceAddFunctionText);
                     #endregion
+
+                    residenceFunctionCount++;
+                    #region ---浜鸿劯绠$悊
+                    var faceManagementView = new FrameLayout()
+                    {
+                        X = Application.GetRealWidth(28 - 24),
+                        Y = residenceManageView.Bottom,
+                        Width = Application.GetRealWidth(64 + 48),
+                        Height = Application.GetRealWidth(64),
+                    };
+                    residenceInfoView.AddChidren(faceManagementView);
+
+                    var btnFaceManagementIcon = new Button
+                    {
+                        Gravity = Gravity.CenterHorizontal,
+                        Y = Application.GetRealHeight(5),
+                        Width = Application.GetMinRealAverage(30),
+                        Height = Application.GetMinRealAverage(30),
+                        UnSelectedImagePath = "PersonalCenter/FaceManagementIcon.png",
+                    };
+                    faceManagementView.AddChidren(btnFaceManagementIcon);
+                    var btnFaceManagementText = new Button()
+                    {
+                        Y = btnResidenceManageIcon.Bottom,
+                        Height = Application.GetRealHeight(29),
+                        TextID = StringId.FaceManagemant,
+                        TextAlignment = TextAlignment.Center,
+                        TextColor = CSS_Color.FirstLevelTitleColor,
+                        TextSize = CSS_FontSize.PromptFontSize_FirstLevel
+                    };
+                    faceManagementView.AddChidren(btnFaceManagementText);
+                    #endregion
+
                 }
             }
             else

--
Gitblit v1.8.0