From a9d1161b1df96e7ddad566335989a1444e433ef5 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期二, 28 三月 2023 11:54:45 +0800 Subject: [PATCH] 2023年03月28日11:52:02 --- HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs | 73 +++++++++++++++++------------------- 1 files changed, 35 insertions(+), 38 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..6ac1e9a 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; @@ -55,8 +55,13 @@ TextAlignment = TextAlignment.CenterLeft, }; bodyView.AddChidren(btnTipText); - - contentView = new VerticalRefreshLayout() + if (Language.CurrentLanguage != "Chinese") + { + btnTipText.Text = "Synchronize your devices on the third-party platform to on Pro for control by binding the third-party platform account to the cloud connection"; + } + + + contentView = new VerticalScrolViewLayout() { Y = Application.GetRealHeight(150), Height = Application.GetRealHeight(573), @@ -68,18 +73,15 @@ GetBindList(); - contentView.BeginHeaderRefreshingAction = () => - { - contentView.EndHeaderRefreshing(); - GetBindList(); - }; - - LoadRow(); - + //contentView.BeginHeaderRefreshingAction = () => + //{ + // contentView.EndHeaderRefreshing(); + // GetBindList(); + //}; } /// <summary> - /// 鑾峰彇缁戝畾鍒楄〃 + /// 鑾峰彇鍒楄〃 /// </summary> void GetBindList() { @@ -130,14 +132,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 +149,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,9 +202,8 @@ }; row.AddChidren(btnName); //涓嬭浇绗笁鏂瑰搧鐗宨con - //ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.authrBandIconUrl, btnIcon); - - btnName.MouseUpEventHandler = (sender, e) => { + ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.authBrandIconUrl, btnIcon); + EventHandler<MouseEventArgs> eventHandler = (sender, e) => { if (brand.hasAuthorization) { Action unboundAction = () => @@ -243,6 +235,11 @@ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; } }; + + btnRight.MouseUpEventHandler = eventHandler; + row.MouseUpEventHandler = eventHandler; + btnName.MouseUpEventHandler = eventHandler; + btnBindTip.MouseUpEventHandler = eventHandler; } } -- Gitblit v1.8.0