Browse Source

公共底部做首页显示友情连接与热门城市

anderx 3 years ago
parent
commit
11d65374d0

+ 8 - 8
src/main/webapp/WEB-INF/views/common.html

@@ -378,14 +378,14 @@
     </div>
 </th:block>
 <!-- 底部 -->
-<th:block th:fragment="copyright">
-    <div class="contentDown" style="height:540px">
+<th:block th:fragment="copyright(key)">
+    <div  class="contentDown" >
         <div class="container">
             <!-- 友情链接 -->
-                <div class="down_left">
+                <div class="down_left"  th:if="${key}=='index'">
                     <p>友情链接</p>
                 </div>
-            <div style="color:#7E7F7F">
+            <div style="color:#7E7F7F"  th:if="${key}=='index'">
                 <div style="overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;width: 66vw;">
                     <!--                <div class="swiper-slide links" style="display:flex" >-->
                     <span class="spanLink" th:each="link:${links}" style="padding: 0 2px;display: inline-block">
@@ -481,7 +481,7 @@
                 <div class="line02"></div>
             </div>
 <!--    热门城市 -->
-            <div style="display: flex;margin-top: 10px;align-items: unset">
+            <div th:if="${key}=='index'" style="display: flex;margin-top: 10px;align-items: unset">
                 <div class="down_left">
                     <p style="text-align: center;font-size: 17px;width: 80px">热门城市</p>
                 </div>
@@ -497,7 +497,7 @@
             </div>
         </div>
     </div>
-    <div class="mobail_link">
+    <div class="mobail_link"  th:if="${key}=='index'">
         <!-- 友情链接 -->
         <div class="links">
             <div class="container">
@@ -524,8 +524,8 @@
         </div>
         </div>
         <!-- 热门城市 -->
-        <div class="links" style="padding-bottom: 20px;">
-            <div class="container">
+        <div   class="links" style="padding-bottom: 20px;">
+            <div class="container" th:if="${key=='index'}">
                 <h2 class="item-title" style="font-size: 18px;text-align: center;"><a style="color:white">热门城市</a></h2>
                 <div style="color:#7E7F7F;">
                     <div style="overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;">

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/about.html

@@ -932,7 +932,7 @@
         <!-- 主题内容 end -->
         <!-- 底部 -->
           <footer>
-		<div th:replace="common::copyright"></div>
+		<div th:replace="common::copyright('')"></div>
 		</footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/client.html

@@ -66,7 +66,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-          <div th:replace="common::copyright"></div>
+          <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/contactUs.html

@@ -60,7 +60,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-          <div th:replace="common::copyright"></div>
+          <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/index.html

@@ -723,7 +723,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-		<div th:replace="common::copyright"></div>
+		<div th:replace="common::copyright('index')"></div>
 		  <!-- 模态框 -->
         <div class="modalKede">
             <div class="modal_video">

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/link.html

@@ -47,7 +47,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-          <div th:replace="common::copyright"></div>
+          <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/news.html

@@ -54,7 +54,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-           	<div th:replace="common::copyright"></div>
+           	<div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/newsDetails.html

@@ -67,7 +67,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-           	<div th:replace="common::copyright"></div>
+           	<div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/csfw.html

@@ -504,7 +504,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-            <div th:replace="common::copyright"></div>
+            <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/gqpy.html

@@ -375,7 +375,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-            <div th:replace="common::copyright"></div>
+            <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/jmkj.html

@@ -389,7 +389,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-            <div th:replace="common::copyright"></div>
+            <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/jszy.html

@@ -371,7 +371,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-            <div th:replace="common::copyright"></div>
+            <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/kfpt.html

@@ -262,7 +262,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-            <div th:replace="common::copyright"></div>
+            <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/txrz.html

@@ -1926,7 +1926,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
         <footer>
-            <div th:replace="common::copyright"></div>
+            <div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/zczx.html

@@ -823,7 +823,7 @@
     <!-- 主体内容  end -->
     <!-- 底部 -->
     <footer>
-        <div th:replace="common::copyright"></div>
+        <div th:replace="common::copyright('')"></div>
     </footer>
     <!-- 底部  end -->
 </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/zscq.html

@@ -456,7 +456,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
           <footer>
-		<div th:replace="common::copyright"></div>
+		<div th:replace="common::copyright('')"></div>
 		</footer>
         <!-- 底部  end -->
         </div>

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/strategic.html

@@ -58,7 +58,7 @@
         <!-- 主体内容  end -->
         <!-- 底部 -->
          <footer>
-           	<div th:replace="common::copyright"></div>
+           	<div th:replace="common::copyright('')"></div>
         </footer>
         <!-- 底部  end -->
     </div>