wxr
2022-08-02 66c72ee19b9e3543537621b8dd25685c9b5c03c4
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);
                //下载第三方品牌icon
                //ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.authrBandIconUrl, btnIcon);
                ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.authrBandIconUrl, btnIcon);
                btnName.MouseUpEventHandler = (sender, e) => {
                    if (brand.hasAuthorization)