bihuisong 8 mesiacov pred
rodič
commit
58165bebdf

+ 14 - 14
src/main/resources/static/www/spdx.images/index.css

@@ -305,8 +305,8 @@
 	width: 662px;
 }
 .xydt_list li{
-	border-bottom: 1px solid #b5b5b5;
-	padding: 1.2rem 1rem;
+	/*border-bottom: 1px solid #b5b5b5;*/
+	/*padding: 1.2rem 1rem;*/
     overflow: hidden;
     display: flex;
     align-items: center;
@@ -767,18 +767,18 @@ margin-left: 2%;
 	width: 32%;
 	margin: 0 2% 0 0;
 }
-
-
-
-
-
-
-
-
-
-
-
-
+.floating-window {
+	 position: fixed;
+	 width: 210px;
+	 height: 120px;
+	 border-radius: 10px;
+	 background-color: #f1f1f1;
+	 border: 1px solid #ccc;
+	 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
+	 z-index: 9999;
+	 background: url(./test.png) no-repeat;
+	 background-size: 100% 100%;
+}
 
 
 

BIN
src/main/resources/static/www/spdx.images/spkfdx_logo.png


+ 1 - 1
src/main/resources/templates/www/spdx/djzlnews.html

@@ -74,9 +74,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
         </div>
     </div>

+ 1 - 1
src/main/resources/templates/www/spdx/include/header.html

@@ -2,7 +2,7 @@
     <!-- 网页导航 -->
     <div class="top_nav">
         <div class="content">
-            <a class="logo" href="${frontPath}/${site.siteId}"><img src="${resPath}/spdx.images/spkfdx_sjlogo1.png"/></a>
+            <a class="logo" href="${frontPath}/${site.siteId}"><img src="${resPath}/spdx.images/spkfdx_logo.png"/></a>
             <div class="nav_right">
                 <div class="nav_sousuo">
                     <a  href="http://www.ouchn.edu.cn/">国家开放大学</a>

+ 73 - 10
src/main/resources/templates/www/spdx/index.html

@@ -24,7 +24,17 @@
     <script type="text/javascript" src="${resPath}/spdx.images/Lunbo.js"></script>
     <!-- 	首页 js-->
     <script type="text/javascript" src="${resPath}/spdx.images/index.js"></script>
+
 </head>
+
+<!--招生简章飘窗 -->
+<#cms_content_list siteId="${site.siteId}" categoryId="1178" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="1" titleLen="10" var="bean">
+    <a  href="${frontPath}/${site.siteId}/1178/${bean.contentId!}.html">
+<!--        <img id="floating-window" class="floating-window" src="${bean.thumb!}" alt="" style="background-size: auto 100%;">-->
+        <img id="floating-window" class="floating-window" src="${bean.thumb!}" alt="" style="background-size: auto 100%;">
+    </a>
+</#cms_content_list>
+<!--招生简章飘窗 -->
 <body>
 
     <!-- 网页导航 -->
@@ -292,15 +302,13 @@
                 </div>
             </div>
             <ul class="xydt_list fr">
-                <#cms_content_list siteId="${site.siteId}" categoryId="1175" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="25" var="bean">
+                <#cms_content_list siteId="${site.siteId}" categoryId="1175" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="8" titleLen="25" var="bean">
                 <li>
                     <div class="list_data fl">
                         <u> ${bean.inputdate,dateFormat="MM-dd"} </u>
-                        <i></i>
                     </div>
                     <a  class="list_txt fl" href=${frontPath}/${site.siteId}/1175/${bean.contentId!}.html" >
                         <p>${bean.title!}</p>
-                        <span> ${strutil.length(bean.description) > 30 ? strutil.subStringTo(bean.description, 0, 30) + "..." : bean.description}</span>
                     </a>
                 </li>
             </#cms_content_list>
@@ -378,7 +386,7 @@
         </div>
         <div class="spkfdx_zsjx fl">
             <div class="spkfdx_tit tab_tit2">
-                <a class="on" href="${frontPath}/${site.siteId}/1178.html">招生简章</a>
+<!--                <a class="on" href="${frontPath}/${site.siteId}/1178.html">招生简章</a>-->
                 <a href="${frontPath}/${site.siteId}/1185.html" >教学活动 </a>
             </div>
             <div class="zsjz_div tab_list2" >
@@ -392,13 +400,21 @@
                     </#cms_content_list>
                     </div>
                 </div>
-                <div class="sj_zsjz">
-                    <#cms_content_list siteId="${site.siteId}" categoryId="1178" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="5" titleLen="10" var="bean">
+<!--                <div class="sj_zsjz">-->
+<!--                    <#cms_content_list siteId="${site.siteId}" categoryId="1178" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="5" titleLen="10" var="bean">-->
+<!--                    <a class="silder-main-img" href="${frontPath}/${site.siteId}/1178/${bean.contentId!}.html" >-->
+<!--                        <img  src="${bean.thumb!}" alt="">-->
+<!--                        <p>${bean.title!}</p>-->
+<!--                    </a>-->
+<!--                </#cms_content_list>-->
+<!--                </div>-->
+                <div class="zsjz_list_xf" id="content">
+                    <#cms_content_list siteId="${site.siteId}" categoryId="1178" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="1" titleLen="10" var="bean">
                     <a class="silder-main-img" href="${frontPath}/${site.siteId}/1178/${bean.contentId!}.html" >
-                        <img  src="${bean.thumb!}" alt="">
-                        <p>${bean.title!}</p>
+<!--                        <img  src="${bean.thumb!}" alt="">-->
+                        <img  src="/static/www/spdx.images/spkfdx_logo.png" alt="">
                     </a>
-                </#cms_content_list>
+                    </#cms_content_list>
                 </div>
           </div>
             <div class="jxhd_div tab_list2">
@@ -449,7 +465,7 @@
                         <#cms_content_list siteId="${site.siteId}" categoryId="1208" orderBy="2" isHot="0" hasChild="0" isRecommend="1" size="5" titleLen="20" var="bean">
                         <div class="silder-main-img" >
                             <img src="${bean.thumb!}">
-                            <p><a href="${frontPath}/${site.siteId}/1208/${bean.contentId!}.html" >${bean.title!}</a></p>
+                            <p>${bean.title!}</p>
                         </div>
                     </#cms_content_list>
                 </div>
@@ -482,12 +498,59 @@
     @includeFileTemplate("/www/spdx/include/footer.html"){}
 </div>
 <!-- 底部结束 -->
+<script>
+    // 如果需要,你可以使用 JavaScript 动态处理飘窗的显示/隐藏、位置等行为
+    let windowElement = document.getElementById("floating-window");
+
+    let x = 20 // 初始水平位置
+    let y = 20 // 初始垂直位置
+    const speed = 2 // 飘窗移动速度(每个定时器周期移动的距离)
+
+    let directionX = Math.random() < 0.5 ? -1 : 1 // 水平方向(-1表示向左移动,1表示向右移动)
+    let directionY = Math.random() < 0.5 ? -1 : 1 // 垂直方向(-1表示向上移动,1表示向下移动)
+
+    function moveFloatingWindow () {
+        const windowWidth = window.innerWidth
+        const windowHeight = window.innerHeight
+
+        // 更新位置
+        x += speed * directionX
+        y += speed * directionY
+
+        // 边界检测
+        if (x <= 0 || x + windowElement.offsetWidth >= windowWidth) {
+            directionX = -directionX // 反向移动
+        }
+        if (y <= 0 || y + windowElement.offsetHeight >= windowHeight) {
+            directionY = -directionY // 反向移动
+        }
+
+        // 移动飘窗
+        windowElement.style.transform = 'translate('+x+'px, '+y+'px)';
+    }
+
+    // 每10毫秒调用moveFloatingWindow()函数一次,实现定时更新位置
+    let timer = setInterval(moveFloatingWindow, 20);
+
+    windowElement.addEventListener('mouseover', () => {
+        clearInterval(timer)
+    })
+    windowElement.addEventListener('mouseleave', () => {
+        timer = setInterval(moveFloatingWindow, 20);
+    })
+
+
+
+
+</script>
 <!--	层叠图片轮播-->
 <script type="text/javascript" src="${resPath}/spdx.images/slider.js">
     function toFirstCategory(_this){
         let href = $(_this).next().children(":first").attr("href");
         location.href = href;
     }
+
 </script>
+
 </body>
 </html>

+ 1 - 2
src/main/resources/templates/www/spdx/jxhdnews.html

@@ -74,10 +74,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 2
src/main/resources/templates/www/spdx/jxjynews.html

@@ -74,10 +74,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 2
src/main/resources/templates/www/spdx/lnjynews.html

@@ -74,10 +74,9 @@
                 <h1 style="font-size:24px" >${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 1
src/main/resources/templates/www/spdx/lxwmnews.html

@@ -74,9 +74,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
         </div>
     </div>

+ 1 - 2
src/main/resources/templates/www/spdx/news.html

@@ -72,10 +72,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 2
src/main/resources/templates/www/spdx/szllnews.html

@@ -74,10 +74,9 @@
                 <h1 style="font-size:24px" >${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 2
src/main/resources/templates/www/spdx/tsztnews.html

@@ -69,10 +69,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 2
src/main/resources/templates/www/spdx/xljynews.html

@@ -74,10 +74,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 2
src/main/resources/templates/www/spdx/xrldnews.html

@@ -74,10 +74,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 2
src/main/resources/templates/www/spdx/xxgknews.html

@@ -83,10 +83,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>

+ 1 - 2
src/main/resources/templates/www/spdx/xxywnews.html

@@ -74,10 +74,9 @@
                 <h1 style="font-size:24px">${content.title!}</h1>
                 <div class="news_xinxi">
                     <span>时间:${content.inputdate,dateFormat="yyyy-MM-dd"}</span>
-                    <span>来源:${content.author!}</span>
                 </div>
                 <p>  ${content.content}</p>
-
+                <span style="display: block;text-align: left;padding: 30px 0px 30px 10px;">来源:${content.author!}</span>
             </div>
 
         </div>