From cea18f0cdcd583d3c3caf4360f3382dbfecd8f03 Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Sat, 13 Jul 2024 10:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=91=8A=E6=BB=9A=E5=8A=A8=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/home/base.html | 64 ++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/templates/home/base.html b/ruoyi-admin/src/main/resources/templates/home/base.html index 07a425e..6ee77d7 100644 --- a/ruoyi-admin/src/main/resources/templates/home/base.html +++ b/ruoyi-admin/src/main/resources/templates/home/base.html @@ -398,6 +398,55 @@ .sliderA:hover{ color: #ffbb3f; } + .notice{ + width: 49%; + height: 40px; + border-radius: 8px; + border: 1px solid #eee; + margin: 36px auto 10px; + overflow: hidden; + float: left; + } + .notice__inner{ + height: 100%; + font-size: 14px; + color: #333; + line-height: 40px; + white-space: nowrap; + position: relative; + } + .notice__item{ + position: absolute; + top: 0; + left: 100%; + height: 100%; + z-index: -1; + } + .notice__item-first{ + padding-right: 70%; + animation: rollFirst 25s linear infinite; + } + .notice__item-second{ + padding-right: 53%; + animation: rollSecond 25s linear 12s infinite; + } + @keyframes rollFirst { + 0% { + transform: translateX(0); + } + 100% { + transform: translateX(-200%); + } + } + @keyframes rollSecond { + 0% { + transform: translateX(0); + } + 100% { + transform: translateX(-200%); + } + } + @@ -408,7 +457,20 @@
-
+
+
+ + + [[${#strings.abbreviate(noticeList[0].noticeTitle,33)}]] + 【[[${#dates.format(noticeList[0].createTime, 'yyyy年MM月dd日')}]]】 + + + [[${#strings.abbreviate(noticeList[1].noticeTitle,33)}]] + 【[[${#dates.format(noticeList[1].createTime, 'yyyy年MM月dd日')}]]】 + +
+
+