Просмотр исходного кода

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

anderx лет назад: 3
Родитель
Сommit
9d31c2b06e

+ 3 - 3
src/main/java/com/kede/core/shiro/filter/DeviceFilter.java

@@ -15,14 +15,14 @@ public class DeviceFilter extends  AccessControlFilter{
 
 	@Autowired
 	private ShiroFilterUtils shiroFilterUtils;
-	
+
 
 	private static String mobileWebsite="http://m.kedexinxi.com";
-	
+
 	@Override
 	protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue)
 			throws Exception {
-		if (!shiroFilterUtils.isFromAPP((HttpServletRequest)request) && shiroFilterUtils.isMobileDevice((HttpServletRequest)request) 
+		if (!shiroFilterUtils.isFromAPP((HttpServletRequest)request) && shiroFilterUtils.isMobileDevice((HttpServletRequest)request)
 				&& !request.getServerName().startsWith("m")){
 			return false;
 		}

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

@@ -379,7 +379,7 @@
 </th:block>
 <!-- 底部 -->
 <th:block th:fragment="copyright(key)">
-    <div  class="contentDown" >
+    <div  class="contentDown"  style="padding:50px 0 10px">
         <div class="container">
             <!-- 友情链接 -->
                 <div class="down_left"  th:if="${key}=='index'">
@@ -481,7 +481,7 @@
                 <div class="line02"></div>
             </div>
 <!--    热门城市 -->
-            <div th:if="${key}=='index'" style="display: flex;margin-top: 10px;align-items: unset">
+            <div  style="display: flex;margin-top: 10px;align-items: unset" th:if="${key}=='index'">
                 <div class="down_left">
                     <p style="text-align: center;font-size: 17px;width: 80px">热门城市</p>
                 </div>
@@ -495,11 +495,12 @@
                     </div>
                 </div>
             </div>
+
         </div>
     </div>
     <div class="mobail_link"  th:if="${key}=='index'">
         <!-- 友情链接 -->
-        <div class="links">
+        <div class="links" >
             <div class="container">
                 <h2 class="item-title" style="font-size: 18px;text-align: center;"><a style="color:white">友情链接</a></h2>
                 <div style="color:#7E7F7F;">
@@ -525,7 +526,7 @@
         </div>
         <!-- 热门城市 -->
         <div   class="links" style="padding-bottom: 20px;">
-            <div class="container" th:if="${key=='index'}">
+            <div class="container" >
                 <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/newsDetails.html

@@ -35,7 +35,7 @@
                     <li>&gt;</li>
                     <!-- @{/technologyTrading/achievementList(fieldA=${industry.id})} -->
                     <li><a th:href="@{/news(type=${news.type})}"
-                           th:text="${news.type==0?'公司新闻': news.type==1?'行业新闻': news.type==2?'高新技术企业':news.type==3?'军工三证':''}">公司新闻</a> </li>
+                           th:text="${news.type==0?'科德新闻': news.type==1?'行业资讯': news.type==2?'高新技术企业':news.type==3?'军工三证':''}"></a> </li>
                     <li>&gt;</li>
                     <li class="active"><a href="javascript:;" th:text="${news.title}">科德高企培育系列讲座走进湘乡</a> </li>
                 </ul>