From 884a8ce78b6d198a5878e85fc30cb85177e59826 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 08 八月 2023 10:04:36 +0800
Subject: [PATCH] 三相空开验收

---
 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..45e80fe 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