From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:25:59 +0800
Subject: [PATCH] 2024年07月25日17:24:45

---
 HDL_ON/UI/UI2/FuntionControlView/Acst/AcstSubHistoryPage.cs |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstSubHistoryPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstSubHistoryPage.cs
index eb0b3db..bd1070c 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstSubHistoryPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstSubHistoryPage.cs
@@ -35,10 +35,12 @@
         string curQueryType = "hour";
         string queryTime;
         Function function;
-        public AcstSubHistoryPage(Function temp)
+        string colorString;
+        public AcstSubHistoryPage(Function temp,string colorStr)
         {
             function = temp;
             bodyView = this;
+            colorString = colorStr;
         }
 
 
@@ -47,7 +49,7 @@
         /// </summary>
         public void LoadPage()
         {
-            new TopViewDiv(bodyView, function.GetRoomListName()).LoadTopView();
+            new TopViewDiv(bodyView, function.name).LoadTopView();
             bodyView.BackgroundColor = CSS_Color.BackgroundColor;
 
             //var contentView = new FrameLayout()
@@ -134,7 +136,7 @@
             {
                 Y = Application.GetRealHeight(222),
                 Height = Application.GetRealHeight(34),
-                Text = "鏈�杩�24灏忔椂鐨勫钩鍧囧鍐呮俯搴�",
+                TextID = StringId.Temp,
                 TextSize = 10,
                 TextColor = 0xFF798394,
                 TextAlignment = TextAlignment.Center,
@@ -169,7 +171,7 @@
             {
                 Y = Application.GetRealHeight(222),
                 Height = Application.GetRealHeight(34),
-                Text = "鏈�杩�24灏忔椂鐨勫钩鍧囧鍐呮箍搴�",
+                TextID = StringId.Humidity,
                 TextSize = 10,
                 TextColor = 0xFF798394,
                 TextAlignment = TextAlignment.Center,
@@ -327,7 +329,7 @@
                                 }
                                 tempEchartOption.InitXdataText(vs);
                             }
-                            tempEchartOption.InitYdataText("", revertData, "#FF80AEFF");
+                            tempEchartOption.InitYdataTextLinearGradient("(掳C)", revertData, colorString);
 
                             tempEchartOption.xTitle = Language.StringByID(StringId.timeMode);
                             var opString = tempEchartOption.InitOption();
@@ -383,7 +385,7 @@
                                 }
                                 humiEchartsOption.InitXdataText(vs);
                             }
-                            humiEchartsOption.InitYdataText("", revertData, "#FF80AEFF");
+                            humiEchartsOption.InitYdataTextLinearGradient("(%)", revertData, colorString);
                         }
                     }
                     humiEchartsOption.xTitle = Language.StringByID(StringId.timeMode);

--
Gitblit v1.8.0