From 39e83c7df7608b29a3f359bcc6d9ca9b7ff095f5 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期二, 17 五月 2022 13:54:39 +0800
Subject: [PATCH] 增加预编译条件

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
index b1e3fa5..3e639fb 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
@@ -703,7 +703,7 @@
 
             //璁垮绠$悊
             #region 涓汉閫夐」-璁垮绠$悊
-            if (Entity.DB_ResidenceData.Instance.SupportVisitorManage)//鍒ゆ柇鏄惁鏀寔璁垮绠$悊
+            if (!Entity.DB_ResidenceData.Instance.SupportVisitorManage)//鍒ゆ柇鏄惁鏀寔璁垮绠$悊
             {
                 optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
 
@@ -736,24 +736,26 @@
 
                 btnisitorVManagementText.MouseUpEventHandler = (sender, e) =>
                 {
+#if __IOS__
                     //鍒锋柊鎺ュ彛璇锋眰鎵�闇�瑕佺殑鍙傛暟
                     NSDictionary info = new NSDictionary("regionUrl", HttpUtil.GlobalRequestHttpsHost, "token", UserInfo.Current.LoginTokenString, "appkey", "HDL-HOME-APP-TEST", "secret", "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss", "refreshToken", UserInfo.Current.RefreshToken);
                     Shared.IOS.HDLFVSDK.Video.RefreshInfo(info);
                     //璺宠浆璁垮绠$悊鐣岄潰
                     Shared.IOS.HDLFVSDK.Video.ShowVisitorManager();
+#endif
                 };
             }
 
 
-            #endregion
-            #endregion
+#endregion
+#endregion
             var topPaddingView2 = new FrameLayout()
             {
                 Height = Application.GetRealHeight(8)
             };
             bodyScrolView.AddChidren(topPaddingView2);
 
-            #region 瑙i攣璁剧疆鍖哄煙
+#region 瑙i攣璁剧疆鍖哄煙
             ///// <summary>
             ///// 瑙i攣璁剧疆鍖哄煙
             ///// </summary>
@@ -803,9 +805,9 @@
             //};
             //interpretationSettingsView.AddChidren(btnInterpretationSettingsRight);
             //interpretationSettingsView.AddChidren(new LineView(interpretationSettingsView.Height));
-            #endregion
+#endregion
 
-            #region 鏈嶅姟鍣ㄤ俊鎭�
+#region 鏈嶅姟鍣ㄤ俊鎭�
             ListCellView myServerInfoCellView = new ListCellView()
             {
             };
@@ -822,10 +824,10 @@
             myServerInfoCellView.BtnTilte.Text = Language.StringByID(StringId.ServerInformation);
             //myServerInfoCellView.LineView.RemoveFromParent();
 
-            #endregion
+#endregion
 
 
-            #region 娉ㄩ攢璐﹀彿
+#region 娉ㄩ攢璐﹀彿
             ListCellView logOffView = new ListCellView()
             {
             };
@@ -842,7 +844,7 @@
             logOffView.BtnTilte.Text = Language.StringByID(StringId.CancelAccount);
             logOffView.LineView.RemoveFromParent();
 
-            #endregion
+#endregion
 
             btnLogout = new Button()
             {

--
Gitblit v1.8.0