From a40848272e33822f72a7fe0310f079717bf73f23 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期五, 18 十月 2024 16:21:39 +0800 Subject: [PATCH] 修复金茂科技系统,金茂光伏问题 --- HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs index 7bc7270..4d02f55 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs @@ -24,7 +24,6 @@ brand = integratedBrand; } - public void LoadPage() { Action<string, string> action = (s, a) => @@ -34,13 +33,15 @@ page.LoadPage(contentView); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; - new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)).LoadTopView_AddIcon("3ty", action); + var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)); + topView.maginY = 10; + topView.LoadTopView_AddIcon("3ty", action); bodyView.BackgroundColor = CSS_Color.BackgroundColor; contentView = new VerticalRefreshLayout() { - Y = Application.GetRealHeight(64), - Height = Application.GetRealHeight(667 - 64), + Y = Application.GetRealHeight(64+10), + Height = Application.GetRealHeight(667 - 64-10), VerticalScrollBarEnabled = false, }; bodyView.AddChidren(contentView); @@ -66,7 +67,7 @@ { var pm = new HttpServerRequest(); var pack = pm.Get3TyBrandBindDeviceList(brand.productPlatform, brand.productBrand); - if (pack.Code == DAL.Server.StateCode.SUCCESS) + if (pack.Code == StateCode.SUCCESS) { var revData = Newtonsoft.Json.JsonConvert.DeserializeObject<Function3tyBrandObj>(pack.Data.ToString()); @@ -116,10 +117,6 @@ bool isFrist = true; foreach (var device in deviceList) { - //if (!this.CheckSupportDevice(device)) - //{ - // continue; - //} var row = new RowLayout() { Height = Application.GetRealHeight(50), -- Gitblit v1.8.0