From 3c334646ba738745d9421abfd984178cf7f15691 Mon Sep 17 00:00:00 2001 From: czt <czt18638530771@163.com> Date: 星期三, 28 五月 2025 14:07:54 +0800 Subject: [PATCH] 优化页面配置 --- igds-dzhwk-web/src/main/resources/templates/dzhwk/index.html | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/igds-dzhwk-web/src/main/resources/templates/dzhwk/index.html b/igds-dzhwk-web/src/main/resources/templates/dzhwk/index.html index 0feef15..b1f9ca4 100644 --- a/igds-dzhwk-web/src/main/resources/templates/dzhwk/index.html +++ b/igds-dzhwk-web/src/main/resources/templates/dzhwk/index.html @@ -108,7 +108,8 @@ <li class="li1"> <div class="con"> <div class="videobox"> - <video src="http://player.alicdn.com/video/aliyunmedia.mp4" class="img" +<!-- <video src="http://player.alicdn.com/video/aliyunmedia.mp4" class="img"--> + <video th:src="${videoUrl}" style="width: 100%;height: 100%;" poster="/img/dzhwk/imgl4.jpg" muted preload controls webkit-playsinline="true" playsinline="true">鎮ㄧ殑娴忚鍣ㄤ笉鏀寔video鏍囩 </video> @@ -1120,6 +1121,7 @@ <script th:src="@{/dzhwk/swiper-bundle.min.js}"></script> <script th:src="@{/dzhwk/common.js}"></script> <script th:inline="javascript"> + var flag = [[${flag}]]; var swiper = new Swiper('.m-swiperl1 .swiper', { slidesPerView: 1, // autoplay: { @@ -1150,7 +1152,11 @@ setInterval(function () { timeFormate() }, 1000); -</script> + //鐩戝惉鎿嶄綔 + document.addEventListener('mousemove', resetTimeout); //榧犳爣绉诲姩 + document.addEventListener('click', resetTimeout); //榧犳爣鐐瑰嚮 + document.addEventListener('touchstart', resetTimeout); //瑙﹀睆 +</script> </body> </html> \ No newline at end of file -- Gitblit v1.9.3