| | |
| | | |
| | | }; |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView_Add3tyIot(action); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView_Add3tyIot(action); |
| | | |
| | | bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | |
| | | bodyView.AddChidren(new Button |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Y = Application.GetRealHeight(64+10), |
| | | Height = Application.GetRealHeight(1), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }); |
| | | |
| | | contentView = new VerticalRefreshLayout() |
| | | { |
| | | Y = Application.GetRealHeight(65), |
| | | Height = Application.GetRealHeight(603), |
| | | Y = Application.GetRealHeight(65+10), |
| | | Height = Application.GetRealHeight(603-10), |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | | |
| | |
| | | bool isFrist = true; |
| | | foreach (var brand in brandList) |
| | | { |
| | | if(brand.productPlatform == "HaiLin")//子晴需要隐藏这个入口,由调试软件上传数据 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(87), |
| | |
| | | Button btnName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(83), |
| | | //Width = Application.GetRealWidth(210), |
| | | Width = Application.GetRealWidth(310), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | |
| | | //下载第三方品牌icon |
| | | 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; |
| | | } |
| | | |
| | | } |