From bc8e768831cca0097a28d52a107d4edf00c3713a Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期一, 16 五月 2022 20:28:51 +0800
Subject: [PATCH] 1.导入全视通dll,增加全视通相关初始化、监听、访客、退出登录等方法 2.增加访客管理入口 3.增加全局判断是否支持全视通 4.增加自研判断 5.为全视通时隐藏通话记录界面

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

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
index ccba2be..12ce6ef 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
@@ -3,6 +3,7 @@
 using HDL_ON.UI;
 using HDL_ON.UI.CSS;
 using Shared;
+using Foundation;
 
 namespace HDL_ON.UI
 {
@@ -174,6 +175,17 @@
         Button btnFaceManagementText;
         #endregion
 
+        #region 涓汉閫夐」-璁垮绠$悊
+        /// <summary>
+        /// 涓汉閫夐」-璁垮绠$悊
+        ///
+        /// </summary>
+        FrameLayout visitorManagementView;
+        /// <summary>
+        /// 浜鸿劯閫氳绠$悊鏂囨湰isitor
+        /// </summary>
+        Button btnisitorVManagementText;
+        #endregion
 
         #endregion
 
@@ -266,10 +278,21 @@
             };
             bodyScrolView.AddChidren(optionListView);
 
+            //鏍规嵁闇�瑕佹坊鍔犺
+            int addRow = 0;
             if(Entity.DB_ResidenceData.Instance.SupportFacePass)
             {
-                optionListView.Height = Application.GetRealHeight(51 * (6 + 1));
+                addRow += 1;
             }
+
+            if (Entity.DB_ResidenceData.Instance.SupportVisitorManage)
+            {
+                addRow += 1;
+            }
+
+            //鏈夊叏瑙嗛�氱殑鎯呭喌
+            optionListView.Height = Application.GetRealHeight(51 * (6 + addRow));
+
 
             #region 涓汉閫夐」-鍚嶅瓧鍖哄煙
             /// <summary>
@@ -678,6 +701,46 @@
 
             }
 
+            //璁垮绠$悊
+            #region 涓汉閫夐」-璁垮绠$悊
+            optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
+
+            visitorManagementView = new FrameLayout()
+            {
+                Height = Application.GetRealHeight(50),
+            };
+            optionListView.AddChidren(visitorManagementView);
+
+            var btnVisitorManagementRight = new Button()
+            {
+                X = Application.GetRealWidth(339),
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetMinRealAverage(16),
+                Height = Application.GetMinRealAverage(16),
+                UnSelectedImagePath = "Public/Right.png",
+            };
+            visitorManagementView.AddChidren(btnVisitorManagementRight);
+
+            btnisitorVManagementText = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                TextAlignment = TextAlignment.CenterLeft,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                TextSize = CSS_FontSize.SubheadingFontSize,
+                TextID = StringId.VisitorManage,
+            };
+            visitorManagementView.AddChidren(btnisitorVManagementText);
+
+            btnisitorVManagementText.MouseUpEventHandler = (sender, e) =>
+            {
+                //鍒锋柊鎺ュ彛璇锋眰鎵�闇�瑕佺殑鍙傛暟
+                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();
+            };
+
+            #endregion
             #endregion
             var topPaddingView2 = new FrameLayout()
             {

--
Gitblit v1.8.0