From 66c72ee19b9e3543537621b8dd25685c9b5c03c4 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 02 八月 2022 14:05:30 +0800
Subject: [PATCH] RGB色盘优化,第三方平台对接功能

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs |   56 ++++++++++++++++++++++----------------------------------
 1 files changed, 22 insertions(+), 34 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs
index f1091a7..32531d7 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs
@@ -14,7 +14,7 @@
     {
         FrameLayout bodyView;
 
-        VerticalRefreshLayout contentView;
+        VerticalScrolViewLayout contentView;//VerticalRefreshLayout
 
         List<IntegratedBrand_Iot> brandList;
 
@@ -56,7 +56,7 @@
             };
             bodyView.AddChidren(btnTipText);
              
-            contentView = new VerticalRefreshLayout()
+            contentView = new VerticalScrolViewLayout()
             {
                 Y = Application.GetRealHeight(150),
                 Height = Application.GetRealHeight(573),
@@ -68,14 +68,11 @@
 
             GetBindList();
 
-            contentView.BeginHeaderRefreshingAction = () =>
-            {
-                contentView.EndHeaderRefreshing();
-                GetBindList();
-            };
-
-            LoadRow();
-
+            //contentView.BeginHeaderRefreshingAction = () =>
+            //{
+            //    contentView.EndHeaderRefreshing();
+            //    GetBindList();
+            //};
 
         }
         /// <summary>
@@ -130,14 +127,12 @@
         void LoadRow()
         {
             contentView.RemoveAll();
-            bool isFrist = true;
-
-            brandList.Add(new IntegratedBrand_Iot
-            {
-                authBrandNameCn = "Test Hdl",
-                authBrandNameEn = "Test Hdl",
-                hasAuthorization = false
-            });
+            //brandList.Add(new IntegratedBrand_Iot
+            //{
+            //    authBrandNameCn = "Test Hdl",
+            //    authBrandNameEn = "Test Hdl",
+            //    hasAuthorization = false
+            //});
 
             foreach (var brand in brandList)
             {
@@ -149,22 +144,15 @@
                 };
                 contentView.AddChidren(row);
 
-                //if (isFrist)
-                //{
-                //    isFrist = false;
-                //}
-                //else
+                Button btnLine = new Button()
                 {
-                    Button btnLine = new Button()
-                    {
-                        Y = Application.GetRealWidth(86),
-                        Gravity = Gravity.CenterHorizontal,
-                        Width = Application.GetRealWidth(343),
-                        Height = 1,
-                        BackgroundColor = CSS_Color.DividingLineColor,
-                    };
-                    row.AddChidren(btnLine);
-                }
+                    Y = Application.GetRealWidth(86),
+                    Gravity = Gravity.CenterHorizontal,
+                    Width = Application.GetRealWidth(343),
+                    Height = 1,
+                    BackgroundColor = CSS_Color.DividingLineColor,
+                };
+                row.AddChidren(btnLine);
 
                 ImageView btnIcon = new ImageView()
                 {
@@ -209,7 +197,7 @@
                 };
                 row.AddChidren(btnName);
                 //涓嬭浇绗笁鏂瑰搧鐗宨con
-                //ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.authrBandIconUrl, btnIcon);
+                ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.authrBandIconUrl, btnIcon);
 
                 btnName.MouseUpEventHandler = (sender, e) => {
                     if (brand.hasAuthorization)

--
Gitblit v1.8.0