From 1f5fdd892e8efc9f1babe1ace9d810803edef396 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 27 八月 2021 11:29:45 +0800
Subject: [PATCH] 2021-08-27 11:29:39

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs |   76 ++++++++++++++++++++-----------------
 1 files changed, 41 insertions(+), 35 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
index 8c65a3e..e7f2bb5 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
@@ -259,11 +259,17 @@
             /// </summary>
             optionListView = new VerticalScrolViewLayout()
             {
-                Height = Application.GetRealHeight(51 * (6+1)),
+                Height = Application.GetRealHeight(51 * 6),
                 BackgroundColor = CSS_Color.MainBackgroundColor,
                 ScrollEnabled = false,
             };
             bodyScrolView.AddChidren(optionListView);
+
+            if(Entity.DB_ResidenceData.Instance.SupportFacePass)
+            {
+                optionListView.Height = Application.GetRealHeight(51 * (6 + 1));
+            }
+
             #region 涓汉閫夐」-鍚嶅瓧鍖哄煙
             /// <summary>
             /// 涓汉閫夐」-鍚嶅瓧鍖哄煙
@@ -563,46 +569,46 @@
             optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
             #endregion
 
-
-            #region 涓汉閫夐」-浜鸿劯閫氳绠$悊
-            faceManagementView = new FrameLayout()
+            if (Entity.DB_ResidenceData.Instance.SupportFacePass)
             {
-                Height = Application.GetRealHeight(50),
-            };
-            optionListView.AddChidren(faceManagementView);
+                #region 涓汉閫夐」-浜鸿劯閫氳绠$悊
+                faceManagementView = new FrameLayout()
+                {
+                    Height = Application.GetRealHeight(50),
+                };
+                optionListView.AddChidren(faceManagementView);
 
-            var btnFaceManagementRight = new Button()
-            {
-                X = Application.GetRealWidth(339),
-                Gravity = Gravity.CenterVertical,
-                Width = Application.GetMinRealAverage(16),
-                Height = Application.GetMinRealAverage(16),
-                UnSelectedImagePath = "Public/Right.png",
-            };
-            faceManagementView.AddChidren(btnFaceManagementRight);
+                var btnFaceManagementRight = new Button()
+                {
+                    X = Application.GetRealWidth(339),
+                    Gravity = Gravity.CenterVertical,
+                    Width = Application.GetMinRealAverage(16),
+                    Height = Application.GetMinRealAverage(16),
+                    UnSelectedImagePath = "Public/Right.png",
+                };
+                faceManagementView.AddChidren(btnFaceManagementRight);
 
-            btnFaceManagementText = new Button()
-            {
-                X = Application.GetRealWidth(16),
-                TextAlignment = TextAlignment.CenterLeft,
-                TextColor = CSS_Color.FirstLevelTitleColor,
-                TextSize = CSS_FontSize.SubheadingFontSize,
-                TextID = StringId.FacePassageSetting,
-            };
-            faceManagementView.AddChidren(btnFaceManagementText);
+                btnFaceManagementText = new Button()
+                {
+                    X = Application.GetRealWidth(16),
+                    TextAlignment = TextAlignment.CenterLeft,
+                    TextColor = CSS_Color.FirstLevelTitleColor,
+                    TextSize = CSS_FontSize.SubheadingFontSize,
+                    TextID = StringId.FacePassageSetting,
+                };
+                faceManagementView.AddChidren(btnFaceManagementText);
 
-            btnFaceManagementText.MouseUpEventHandler = (sender, e) =>
-            {
-                var page = new FacePassagePage();
-                MainPage.BasePageView.AddChidren(page);
-                page.LoadPage();
-                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-                
-            };
+                btnFaceManagementText.MouseUpEventHandler = (sender, e) =>
+                {
+                    var page = new FacePassagePage();
+                    MainPage.BasePageView.AddChidren(page);
+                    page.LoadPage();
+                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                };
 
-            #endregion
+                #endregion
 
-
+            }
 
             #endregion
 

--
Gitblit v1.8.0