Browse Source

新增网站地图开发

anderx 3 years ago
parent
commit
5f079d9137

+ 3 - 3
src/main/java/com/kede/banners/bo/InputBannerDetails.java

@@ -4,14 +4,14 @@ import com.kede.common.model.BannerDetails;
 
 public class InputBannerDetails extends BannerDetails {
 	/**
-	 * 
+	 *
 	 */
 	private static final long serialVersionUID = 1L;
 	public InputBannerDetails() {};
 	/**
-	 * 
+	 *
 	 * @param display 显示 0 否 1是
-	 * @param position 位置  0 首页 1产品中心 2战略合作 3服务客户 4新闻动态 5关于科德 6联系我们  
+	 * @param position 位置  0 首页 1产品中心 2战略合作 3服务客户 4新闻动态 5关于科德 6联系我们  7站点地图
 	 */
 	public InputBannerDetails(int display, int position) {
 		this.setDisplay(display);

+ 16 - 1
src/main/java/com/kede/common/controller/WebpageController.java

@@ -11,6 +11,7 @@ import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import com.kede.core.mybatis.page.Pagination;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -166,6 +167,20 @@ public class WebpageController extends BaseController {
 		modelview.addObject("banners",o);
 		return modelview;
 	}
+
+	@RequestMapping(value = "/htmlmap", method = RequestMethod.GET)
+	public ModelAndView htmlmap(HttpServletRequest request, ModelAndView modelview,Integer id) {
+		modelview.setViewName("/portal/htmlmap");
+		InputBannerDetails ibd=new InputBannerDetails(1,7);
+		OutBannerDetails o=new OutBannerDetails();
+		List<OutBannerDetails> list=(List<OutBannerDetails>) bannersService.listBannersDetails(ibd, 1, 1).getList();
+		o=list.size()>0?list.get(0):null;
+		modelview.addObject("banners",o);
+		InputNews inputNews = new InputNews();
+		List<OutNews> news = (List<OutNews>) newsService.listnewsDetails(inputNews, 5, 1).getList();
+		modelview.addObject("news",news);
+		return modelview;
+	}
 	/**
 	 * 战略合作
 	 * @param request
@@ -414,7 +429,7 @@ public class WebpageController extends BaseController {
 		InputNews in=new InputNews(type,1,1);
 		List<OutNews>list=(List<OutNews>) newsService.listnewsDetails(in, 4, 1).getList();
 		for (OutNews o : list) {
-			o.setReleaseTimeConvert(DateUtils.formatDate(o.getReleaseTime(), AFTConstants.MMDD));
+			o.setReleaseTimeConvert(DateUtils.formatDate(o.getReleaseTime(), AFTConstants.YYYYMMDD));
 			o.setContent(displayRestriction(o.getContent()));
 		}
 		return  list;

+ 3 - 3
src/main/resources/props/config_local.properties

@@ -61,9 +61,9 @@ template.cacheable=false
 
 #连接开�
 
-portal.host=//kedejs.jishutao.com/portal/1.0.25
-#portal.host=//172.16.1.187/portal/1.0.25
-#portal.host=//172.16.0.255:3000/1.0.21
+#portal.host=//kedejs.jishutao.com/portal/1.0.27
+#portal.host=//172.16.1.187/portal/1.0.27
+portal.host=//172.16.0.255:3000/kede_ow/1.0.27
 
 #static.host=//kedejs.jishutao.com/client/1.0.7
 static.host=//172.16.1.187/client/1.0.7

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

@@ -434,6 +434,7 @@
                             <ul>
                                 <li><a th:href="${basePath+'/news?type=0'}">官方公告</a></li>
                                 <li><a th:href="${basePath+'/news?type=1'}">政策解读</a></li>
+                                <li><a th:href="${basePath+'/htmlmap'}">网站地图</a></li>
                             </ul>
                         </li>
                         <li>

+ 62 - 0
src/main/webapp/WEB-INF/views/portal/htmlmap.html

@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<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>站点地图 - 科德集团</title>
+  <meta name="Keywords" Content="科德集团,高新技术企业,军工三证,财务咨询,高企认定" />
+  <meta name="description" 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>
+      <!-- 轮播图 end -->
+    </header>
+    <!-- 头部  end -->
+    <div>
+      <ul class="news-list-it">
+      <li th:each="y:${news}">
+        <a th:href="${'/news/'+y.id}" target="_blank" >
+          <div class="newsitem">
+            <span class="time" th:text="${y.releaseTimeConvert}">11-07</span>
+            <h4 class="title" ><em style="margin-right: 15px;">●</em><span th:text="${y.title}">咨询行业2020迎来新转机!!!</span></h4>
+            <p></p>
+            <div class="item_p" th:utext="${y.content}">
+              <p>10月29日,雷锋网全球十佳XXXX企业榜单正式揭晓,来自中、美、英、印四国为代表的10家XXXX企业脱颖而出。科德以其独特的技术和智慧财务的精准赛道,榜上有名。
+              </p>
+            </div>
+          </div>
+        </a>
+      </li>
+      </ul>
+    </div>
+
+
+
+    <!-- 底部 -->
+    <footer>
+      <div th:replace="common::copyright('')"></div>
+    </footer>
+    <!-- 底部  end -->
+  </div>
+  <div th:replace="common::footer(~{::script},'')">
+    <!-- 引入分页 -->
+    <script th:src="${portalHost+'/js/page.js'}"></script>
+    <script th:src="${portalHost+'/js/new.js'}"></script>
+
+  </div>
+</body>
+
+</html>