From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:25:59 +0800
Subject: [PATCH] 2024年07月25日17:24:45

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs |   32 +++++++++++++++++++++++++-------
 1 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
index efa787c..2bcf880 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
@@ -3,6 +3,7 @@
 using HDL_ON.DAL.Server;
 using HDL_ON.Entity;
 using HDL_ON.UI.CSS;
+using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock;
 #if __Android__
 using Java.Interop;
 using Android.Content;
@@ -33,13 +34,15 @@
                 page.LoadPage(contentView);
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
             };
-            new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)).LoadTopView_AddIcon("3ty", action);
+            var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Devices));
+            topView.maginY = 10;
+            topView.LoadTopView_AddIcon("3ty", action);
             bodyView.BackgroundColor = CSS_Color.BackgroundColor;
 
             contentView = new VerticalRefreshLayout()
             {
-                Y = Application.GetRealHeight(64),
-                Height = Application.GetRealHeight(667 - 64),
+                Y = Application.GetRealHeight(64+10),
+                Height = Application.GetRealHeight(667 - 64-10),
                 VerticalScrollBarEnabled = false,
             };
             bodyView.AddChidren(contentView);
@@ -115,10 +118,10 @@
             bool isFrist = true;
             foreach (var device in deviceList)
             {
-                if (!this.CheckSupportDevice(device))
-                {
-                    continue;
-                }
+                //if (!this.CheckSupportDevice(device))
+                //{
+                //    continue;
+                //}
                 var row = new RowLayout()
                 {
                     Height = Application.GetRealHeight(50),
@@ -205,6 +208,21 @@
                                 contentView.BeginHeaderRefreshing();
                             };
                             break;
+                        case SPK.VideoDoorLock:
+                            {
+                                CommonMethod.Current.MainThread(() =>
+                                {
+                                    //钀ょ煶瑙嗛闂ㄩ攣
+                                    var form = new VideoDoorLockPage(device, btnName, new Button(), CommonMethod.Comerom.sanfan, () =>
+                                    {
+                                        row.RemoveFromParent();
+                                    });
+                                    MainPage.BasePageView.AddChidren(form);
+                                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                                    form.Show();
+                                });
+                            }
+                            break;
                     }
                 };
 

--
Gitblit v1.8.0