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/BrandListPage.cs |   63 ++++++++++++++++++++++---------
 1 files changed, 44 insertions(+), 19 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
index b9406c7..f54199f 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/BrandListPage.cs
@@ -26,14 +26,23 @@
 
             };
 
-            new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView();//.LoadTopView_AddIcon("3ty",action);//.LoadTopView();//
+            var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand));
+            topView.maginY = 10;
+            topView.LoadTopView_Add3tyIot(action);
 
-            bodyView.BackgroundColor = CSS_Color.BackgroundColor;
+            bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
+
+            bodyView.AddChidren(new Button
+            {
+                Y = Application.GetRealHeight(64+10),
+                Height = Application.GetRealHeight(1),
+                BackgroundColor = CSS_Color.DividingLineColor,
+            });
 
             contentView = new VerticalRefreshLayout()
             {
-                Y = Application.GetRealHeight(64),
-                Height = Application.GetRealHeight(603),
+                Y = Application.GetRealHeight(65+10),
+                Height = Application.GetRealHeight(603-10),
             };
             bodyView.AddChidren(contentView);
 
@@ -100,24 +109,35 @@
             bool isFrist = true;
             foreach (var brand in brandList)
             {
+                if(brand.productPlatform == "HaiLin")//瀛愭櫞闇�瑕侀殣钘忚繖涓叆鍙o紝鐢辫皟璇曡蒋浠朵笂浼犳暟鎹� 2023-03-09 17:20:33
+                {
+                    continue;
+                }else if(brand.productPlatform == "TUYA") {
+                    if(DB_ResidenceData.Instance.CurrentRegion.regionUrl != "https://test-gz.hdlcontrol.com" &&
+                       DB_ResidenceData.Instance.CurrentRegion.regionUrl != "https://china-gateway.hdlcontrol.com")
+                    {
+                        continue;
+                    }
+                }
                 var row = new RowLayout()
                 {
-                    Height = Application.GetRealHeight(50),
+                    Height = Application.GetRealHeight(87),
                     BackgroundColor = CSS_Color.MainBackgroundColor,
                     LineColor = 0x00000000,
                 };
                 contentView.AddChidren(row);
 
-                if (isFrist)
-                {
-                    isFrist = false;
-                }
-                else
+                //if (isFrist)
+                //{
+                //    isFrist = false;
+                //}
+                //else
                 {
                     Button btnLine = new Button()
                     {
-                        X = Application.GetRealWidth(56),
-                        Width = Application.GetRealWidth(303),
+                        Y = Application.GetRealHeight(86),
+                        Gravity = Gravity.CenterHorizontal,
+                        Width = Application.GetRealWidth(343),
                         Height = 1,
                         BackgroundColor = CSS_Color.DividingLineColor,
                     };
@@ -128,9 +148,9 @@
                 {
                     X = Application.GetRealWidth(12),
                     Gravity = Gravity.CenterVertical,
-                    Width = Application.GetRealWidth(32),
-                    Height = Application.GetRealWidth(32),
-                    Radius = (uint)Application.GetRealWidth(4),
+                    Width = Application.GetRealWidth(47),
+                    Height = Application.GetRealWidth(47),
+                    Radius = (uint)Application.GetRealWidth(9),
                     BackgroundColor = CSS_Color.PromptingColor1
                 };
                 row.AddChidren(btnIcon);
@@ -146,23 +166,28 @@
 
                 Button btnName = new Button()
                 {
-                    X = Application.GetRealWidth(56),
-                    Width = Application.GetRealWidth(303),
+                    X = Application.GetRealWidth(83),
+                    Width = Application.GetRealWidth(310),
                     TextAlignment = TextAlignment.CenterLeft,
                     TextColor = CSS_Color.FirstLevelTitleColor,
-                    TextSize = CSS_FontSize.TextFontSize,
+                    TextSize = CSS_FontSize.SubheadingFontSize,
                     Text = brand.brandName,
                 };
                 row.AddChidren(btnName);
                 //涓嬭浇绗笁鏂瑰搧鐗宨con
                 ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.brandIcon, btnIcon);
 
-                btnName.MouseUpEventHandler = (sender, e) => {
+                EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
+                    
                     var page = new DeviceListPage(brand);
                     MainPage.BasePageView.AddChidren(page);
                     page.LoadPage();
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                 };
+                btnName.MouseUpEventHandler = eventHandler;
+                btnIcon.MouseUpEventHandler = eventHandler;
+                btnRight.MouseUpEventHandler = eventHandler;
+                row.MouseUpEventHandler = eventHandler;
             }
 
         }

--
Gitblit v1.8.0