From 1789f33db1b549f0211258d828c551cc33c7c407 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 03 八月 2023 15:46:18 +0800
Subject: [PATCH] cct控制组件高度

---
 HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs b/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
index b2635af..6bc91dc 100644
--- a/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
@@ -378,9 +378,9 @@
             //鏃ユ湡
             var btnDatetime = new Button()
             {
-                X = Application.GetRealWidth(259),
+                X = Application.GetRealWidth(249),
                 Y = btnTilte.Bottom + Application.GetRealHeight(4),
-                Width = Application.GetRealWidth(100),
+                Width = Application.GetRealWidth(110),
                 Height = Application.GetRealHeight(17),
                 TextAlignment = TextAlignment.CenterRight,
                 TextColor = CSS_Color.PromptingColor1,
@@ -406,7 +406,7 @@
             };
 
 
-            btnDatetime.Text = GetUnixToDateTime(pushMessageInfo.createTime);
+            btnDatetime.Text = GetUnixToDateTime2(pushMessageInfo.createTime);
 
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
@@ -430,6 +430,23 @@
             try
             {
                 return Utlis.UnixToDateTimeWithFormatMS(time, "MM/dd HH:mm");
+            }
+            catch (Exception ex)
+            {
+                return "";
+            }
+        }
+
+        /// <summary>
+        /// 鏃堕棿鏍煎紡杞崲澶勭悊
+        /// </summary>
+        /// <param name="time">姣鏃堕棿鎴�</param>
+        /// <returns></returns>
+        string GetUnixToDateTime2(long time)
+        {
+            try
+            {
+                return Utlis.UnixToDateTimeWithFormatMS(time, "yyyy-MM-dd HH:mm");
             }
             catch (Exception ex)
             {
@@ -832,6 +849,7 @@
             {
                 if (bodyView != null)
                 {
+
                     //Utlis.WriteLine("GetPushMessageAction M鏀跺埌鎺ㄩ��");
                     GetPushMessageList(showMesType);
                 }

--
Gitblit v1.8.0