From 8301df084faa8f43f4b9cb7f92088e5fd9e64524 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 01 十二月 2022 15:41:53 +0800
Subject: [PATCH] 大华摄像头更新

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs |   29 +++++++++++++++++++----------
 1 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
index abaab54..87fe48e 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
@@ -26,15 +26,24 @@
         {
             Action<string, string> action = (s, a) =>
             {
-                //var page = new AddDevciePage(brand);
-                //MainPage.BasePageView.AddChidren(page);
-                //page.LoadPage(contentView);
-                //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-                var backTemp = new AddLcCam();
-                backTemp.backAction = () => {
-                    Load3tyBrandDeviceList();
-                };
-                Com.Utils.HdlToLcUtils.Instance.AddCamera(backTemp);
+                if (brand.productBrand == "")
+                {
+#if __ANDROID__
+                    var backTemp = new AddLcCam();
+                    backTemp.backAction = () =>
+                    {
+                        Load3tyBrandDeviceList();
+                    };
+                    Com.Utils.HdlToLcUtils.Instance.AddCamera(backTemp);
+#endif
+                }
+                else
+                {
+                    var page = new AddDevciePage(brand);
+                    MainPage.BasePageView.AddChidren(page);
+                    page.LoadPage(contentView);
+                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                }
             };
             new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)).LoadTopView_AddIcon("3ty", action);
             bodyView.BackgroundColor = CSS_Color.BackgroundColor;
@@ -415,7 +424,7 @@
         }
     }
 #else
-    public class AddLcCam()
+    public class AddLcCam
     {
         public Action backAction;
 

--
Gitblit v1.8.0