From 8e940d7f0c873cfedf7f6d8c885be98b96f1d046 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 10 九月 2024 15:43:41 +0800 Subject: [PATCH] 金茂光伏,金茂热水器 --- HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index dd89adc..4284a3e 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -1765,7 +1765,8 @@ { X = Application.GetRealWidth(11), Y = Application.GetRealWidth(10), - TextID = StringId.Acst, + Text = function.name, + //TextID = StringId.Acst, IsBold = true, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.TextFontSize, @@ -1784,6 +1785,22 @@ Height = Application.GetRealHeight(37), }; view.AddChidren(btnLogo); + + try + { + if (function.extend.Contains("jinmao") && function.extend.Contains("true")) + { + btnLogo.Visible = true; + } + else + { + btnLogo.Visible = false; + } + } + catch (Exception ex) + { + MainPage.Log("Error", $"閲戣寕logo鏄剧ず澶勭悊寮傚父锛歿ex.Message}"); + } Button btnFunctionViewBg; btnFunctionViewBg = new Button() @@ -1805,7 +1822,7 @@ } else if (function.spk == SPK.InverterJinmao) { - btnName.TextID = StringId.NewEnergy; + //btnName.TextID = StringId.NewEnergy; btnFunctionViewBg.MouseUpEventHandler = (sender, e) => { var page = new InverterJinmaoPage(); -- Gitblit v1.8.0