Browse Source

官网缓存处理-移动m先去掉

anderx 3 years ago
parent
commit
8d7df62883

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

@@ -34,8 +34,9 @@ public class DeviceFilter extends  AccessControlFilter{
 		if (!shiroFilterUtils.isFromAPP((HttpServletRequest)request) && shiroFilterUtils.isMobileDevice((HttpServletRequest)request)
 				&& !request.getServerName().startsWith("m")){
 			LoggerUtils.debug(getClass(), "当前访问为移动设备");
-			String url=mobileWebsite+WebUtils.getRequestUri((HttpServletRequest)request);
-			WebUtils.issueRedirect(request, response, url,null,false);
+//			String url=mobileWebsite+WebUtils.getRequestUri((HttpServletRequest)request);
+//			WebUtils.issueRedirect(request, response, url,null,false);
+			return true;
 		}
 		return false;
 	}

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

@@ -45,68 +45,87 @@
     <div class="news main">
       <div class="container">
         <div class="newmain">
-        <!-- 新闻列表 -->
-        <ul class="newslist">
+          <div class="newleft">
+            <!-- 新闻列表 -->
+            <ul class="newslist">
 
-        </ul>
-        <!-- 热门推荐 -->
-        <div class="hot">
-          <div class="hitem">
-            热门推荐
-            <div class="hlist">
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">1</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">2</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">3</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">4</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">5</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">6</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">7</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">8</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">9</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-              <a target="_blank" href="">
-                <div class="htit"><span class="hnum">10</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
-              </a>
-            </div>
+            </ul>
+            <!-- 分页 -->
+            <div class="page_1"></div>
           </div>
-          <div class="hitem">
-            热门产品推荐
-            <div class="hlist2">
-<!--              <h4 style='text-align:center;margin:90px 0;color:#666'>暂无热门推荐</h4>-->
-              <a target="_blank" th:href="${basePath+'/service/gqpy?1'}"><div class="htit"><span class="hnum"></span>高企培育</div></a>
-              <a target="_blank" th:href="${basePath+'/service/gqpy?0'}"><div class="htit"><span class="hnum"></span>高企认定</div></a>
-              <a target="_blank" th:href="${basePath+'/service/jszy?0'}"><div class="htit"><span class="hnum"></span>技术转移</div></a>
-              <a target="_blank" th:href="${basePath+'/service/zscq?0'}"><div class="htit"><span class="hnum"></span>知识产权</div></a>
-              <a target="_blank" th:href="${basePath+'/service/zczx?0'}"><div class="htit"><span class="hnum"></span>政策咨询</div></a>
-              <a target="_blank" th:href="${basePath+'/service/csfw?0'}"><div class="htit"><span class="hnum"></span>财务管理体系咨询</div></a>
-              <a target="_blank" th:href="${basePath+'/service/jmkj?0'}"><div class="htit"><span class="hnum"></span>军民科技转化</div></a>
-              <a target="_blank" th:href="${basePath+'/service/txrz?0'}"><div class="htit"><span class="hnum"></span>体系认证</div></a>
-              <a target="_blank" th:href="${basePath+'/service/kfpt?0'}"><div class="htit"><span class="hnum"></span>平台开发建设</div></a>
+          <!-- 热门推荐 -->
+          <div class="hot">
+            <div class="hitem">
+              热门推荐
+              <div class="hlist">
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">1</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">2</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">3</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">4</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">5</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">6</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">7</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">8</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">9</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">10</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+              </div>
+            </div>
+            <div class="hitem">
+              热门产品推荐
+              <div class="hlist2">
+                <!--              <h4 style='text-align:center;margin:90px 0;color:#666'>暂无热门推荐</h4>-->
+                <a target="_blank" th:href="${basePath+'/service/gqpy?1'}">
+                  <div class="htit"><span class="hnum"></span>高企培育</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/gqpy?0'}">
+                  <div class="htit"><span class="hnum"></span>高企认定</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/jszy?0'}">
+                  <div class="htit"><span class="hnum"></span>技术转移</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/zscq?0'}">
+                  <div class="htit"><span class="hnum"></span>知识产权</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/zczx?0'}">
+                  <div class="htit"><span class="hnum"></span>政策咨询</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/csfw?0'}">
+                  <div class="htit"><span class="hnum"></span>财务管理体系咨询</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/jmkj?0'}">
+                  <div class="htit"><span class="hnum"></span>军民科技转化</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/txrz?0'}">
+                  <div class="htit"><span class="hnum"></span>体系认证</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/kfpt?0'}">
+                  <div class="htit"><span class="hnum"></span>平台开发建设</div>
+                </a>
+              </div>
             </div>
           </div>
         </div>
-        </div>
         <!-- 新闻列表  end -->
-        <!-- 分页 -->
-        <div class="page_1"></div>
-        <!-- 分页 end -->
       </div>
     </div>
     <!-- 主体内容  end -->
@@ -134,4 +153,4 @@
   </div>
 </body>
 
-</html>
+</html>

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

@@ -1,80 +1,126 @@
 <!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
+  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+
 <head th:replace="common::header(~{::title},~{::link},~{::meta})">
-    <meta charset="UTF-8">
-    <meta http-equiv="X-UA-Compatible" content="ie=edge">
-    <title th:text="${tt +'... - 科德集团'}">科德集团</title>
-    <meta name="Keywords" th:content="${keywords}"/>
-    <meta name="description" th:Content="${content}"/>
-    <!-- 二级页面CSS -->
-    <link rel="stylesheet" th:href="${portalHost+'/css/secode.css'}">
+  <meta charset="UTF-8">
+  <meta http-equiv="X-UA-Compatible" content="ie=edge">
+  <title th:text="${tt +'... - 科德集团'}">科德集团</title>
+  <meta name="Keywords" th:content="${keywords}" />
+  <meta name="description" th:Content="${content}" />
+  <!-- 二级页面CSS -->
+  <link rel="stylesheet" th:href="${portalHost+'/css/secode.css'}">
 </head>
 
 <body>
-    <div class="app">
-        <!-- 头部 -->
-        <header>
-           <div th:replace="common::nav('','')"></div>
-		 <!-- 轮播图  -->
-            <div class="swiper-containerx">
-                <img th:src="${banners}==null?${portalHost+'/images/banner/about_bg.png'}:${avatarUploadHost}+${banners.bannerUrl}" />
-                <div class="swiper_title">
-                    <h6>关于科德</h6>
-                </div>
+  <div class="app">
+    <!-- 头部 -->
+    <header>
+      <div th:replace="common::nav('','')"></div>
+      <!-- 轮播图  -->
+      <div class="swiper-containerx">
+        <img
+          th:src="${banners}==null?${portalHost+'/images/banner/about_bg.png'}:${avatarUploadHost}+${banners.bannerUrl}" />
+        <div class="swiper_title">
+          <h6>关于科德</h6>
+        </div>
+      </div>
+      <!-- 轮播图 end -->
+    </header>
+    <!-- 头部  end -->
+    <!-- 面包屑 -->
+    <div class="bread-crumbs">
+      <div class="container">
+        <ul>
+          <li><a th:href="${basePath+'/'}">首页</a></li>
+          <li>&gt;</li>
+          <li><a th:href="${basePath+'/news'}">新闻动态</a> </li>
+          <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>
+          <li>&gt;</li>
+          <li class="active"><a href="javascript:;" th:text="${news.title}">科德高企培育系列讲座走进湘乡</a> </li>
+        </ul>
+      </div>
+    </div>
+    <!-- 面包屑 end -->
+    <!-- 主体内容 -->
+    <div class="news main">
+      <div class="container">
+        <div class="newmain">
+          <!-- 新闻详情 -->
+          <div class="news-detail">
+            <div class="detail-title">
+              <h6 th:text="${news.title}">科德高企培育系列讲座走进湘乡</h6>
+              <span th:text="${news.releaseTimeConvert}">2019-12-06</span>
+              <span>&nbsp;&nbsp;阅读 </span>
+              <span th:text="${news.hot}">432</span>
+            </div>
+            <div class="detail-content" th:utext="${news.content}">
+
             </div>
-        <!-- 轮播图 end -->
-        </header>
-        <!-- 头部  end -->
-        <!-- 面包屑 -->
-        <div class="bread-crumbs">
-            <div class="container">
-                <ul>
-                    <li><a th:href="${basePath+'/'}">首页</a></li>
-                    <li>&gt;</li>
-                    <li><a th:href="${basePath+'/news'}">新闻动态</a> </li>
-                    <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>
-                    <li>&gt;</li>
-                    <li class="active"><a href="javascript:;" th:text="${news.title}">科德高企培育系列讲座走进湘乡</a> </li>
-                </ul>
+            <div class="copyright">版权声明:本平台部分资源来源于互联网,仅限于行业间的公益交流和知识分享,版权属于原作者。如涉及到版权问题,请联系本平台删除处理。</div>
+          </div>
+          <!-- 最新资讯 -->
+          <div class="hot">
+            <div class="hitem">
+              最新资讯
+              <div class="hlist">
+                <a target="_blank" href="">
+                  <div class="htit"><span class="hnum">1</span>政府采购、招投标都要求ISO三体系认证!它到底有多大魅力?</div>
+                </a>
+              </div>
             </div>
-        </div>
-        <!-- 面包屑 end -->
-        <!-- 主体内容 -->
-        <div class="news main">
-            <div class="container">
-                <div class="news-detail">
-                    <div class="detail-title">
-                        <h6 th:text="${news.title}">科德高企培育系列讲座走进湘乡</h6>
-                        <span th:text="${news.releaseTimeConvert}">2019-12-06</span>
-                        <span>&nbsp;&nbsp;阅读 </span>
-                        <span th:text="${news.hot}">432</span>
-                    </div>
-                    <div class="detail-content" th:utext="${news.content}">
-                        <p>
-                        </p>
-                        <img src="./images/home.png" alt="" />
-                        <p>
-                        </p>
-                        <p>
-                        </p>
-                    </div>
-                </div>
+            <div class="hitem">
+              热门产品推荐
+              <div class="hlist2">
+                <a target="_blank" th:href="${basePath+'/service/gqpy?1'}">
+                  <div class="htit"><span class="hnum"></span>高企培育</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/gqpy?0'}">
+                  <div class="htit"><span class="hnum"></span>高企认定</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/jszy?0'}">
+                  <div class="htit"><span class="hnum"></span>技术转移</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/zscq?0'}">
+                  <div class="htit"><span class="hnum"></span>知识产权</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/zczx?0'}">
+                  <div class="htit"><span class="hnum"></span>政策咨询</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/csfw?0'}">
+                  <div class="htit"><span class="hnum"></span>财务管理体系咨询</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/jmkj?0'}">
+                  <div class="htit"><span class="hnum"></span>军民科技转化</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/txrz?0'}">
+                  <div class="htit"><span class="hnum"></span>体系认证</div>
+                </a>
+                <a target="_blank" th:href="${basePath+'/service/kfpt?0'}">
+                  <div class="htit"><span class="hnum"></span>平台开发建设</div>
+                </a>
+              </div>
             </div>
+          </div>
         </div>
-        <!-- 主体内容  end -->
-        <!-- 底部 -->
-        <footer>
-           	<div th:replace="common::copyright('')"></div>
-        </footer>
-        <!-- 底部  end -->
+      </div>
     </div>
-    </div>
-    <div th:replace="common::footer(~{::script},'')">
+    <!-- 主体内容  end -->
+    <!-- 底部 -->
+    <footer>
+      <div th:replace="common::copyright('')"></div>
+    </footer>
+    <!-- 底部  end -->
+  </div>
+  </div>
+  <div th:replace="common::footer(~{::script},'')">
     <script></script>
-    </div>
+    <script th:src="${portalHost+'/js/newdetails.js'}"></script>
+  </div>
 </body>
 
-</html>
+</html>