wxr
2023-08-03 3c08c6a18196f5802c623959bfcecdb7707cd13d
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) =>
            {
@@ -438,6 +438,23 @@
        }
        /// <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)
            {
                return "";
            }
        }
        /// <summary>
        /// 删除推送消息
        /// <param name="pushMessageInfo"></param>
        /// <param name="rowView"></param>