wanghui лет назад: 8
Родитель
Сommit
05b6575e21

+ 12 - 1
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -428,11 +428,22 @@ public class WebpageController extends BaseController {
 		return modelview;
 	}
 	
+	/**
+	 * 政策列表
+	 * @return 
+	 */
+	@RequestMapping(value="/portal/thinkTank/policyList",method = RequestMethod.GET)
+	public ModelAndView policyList(ModelAndView modelAndView){
+		modelAndView.setViewName("/portal/thinkTank/policyList");
+		return modelAndView;
+	}
+	
 	private void handleBanners(ModelAndView modelview, BannersType bannersType) {
 		List<Banners> banners = bannersService.findPortalBanners(bannersType.getKey());
 		if (!banners.isEmpty()) {
 			modelview.addObject("banners", banners);
 		}
 	}
-
+	
+	
 }

+ 6 - 0
src/main/java/com/goafanti/common/mapper/NewsMapper.xml

@@ -240,6 +240,9 @@
 		<if test="hot != null">
 			and a.hot = #{hot,jdbcType=INTEGER}
 		</if>
+		<if test="keyword != null">
+			and a.title like concat('%',#{keyword},'%')
+		</if>
 		 -->
 		order by create_time desc
 		<if test="page_sql != null">
@@ -262,6 +265,9 @@
 		<if test="hot != null">
 			and a.hot = #{hot,jdbcType=INTEGER}
 		</if>
+		<if test="keyword != null">
+			and a.title like concat('%',#{keyword},'%')
+		</if>
 		-->
 	</select>
 </mapper>

+ 3 - 2
src/main/java/com/goafanti/news/controller/NewsController.java

@@ -74,7 +74,7 @@ public class NewsController extends BaseController {
 	 */
 	@RequestMapping(value = "/portal/news/list", method = RequestMethod.GET)
 	@ResponseBody
-	public Result portalNewsList(Integer type, String pageSize, String pageNo, Integer hot,Integer provinceId) {
+	public Result portalNewsList(Integer type, String pageSize, String pageNo, Integer hot,Integer provinceId,String keyword) {
 		Result res = new Result();
 		Integer pNo = 1,pSize = 4;
 		if (StringUtils.isNumeric(pageNo)) {
@@ -83,7 +83,7 @@ public class NewsController extends BaseController {
 		if (StringUtils.isNumeric(pageSize)) {
 			pSize = Integer.parseInt(pageSize);
 		}
-		res.setData(newsService.portalNewsList(pSize,pNo, type,hot,provinceId));
+		res.setData(newsService.portalNewsList(pSize,pNo, type,hot,provinceId,keyword));
 		return res;
 	}
 
@@ -106,6 +106,7 @@ public class NewsController extends BaseController {
 	public ModelAndView portalHighTechEvaluateIprInfo(HttpServletRequest request, ModelAndView modelview) {
 		modelview.setViewName("/portal/news/newsDetail");
 		return modelview;
+		
 	}
 
 	private void handleBanners(ModelAndView modelview, BannersType bannersType) {

+ 4 - 1
src/main/java/com/goafanti/news/service/NewsService.java

@@ -142,7 +142,7 @@ public class NewsService extends BaseMybatisDao<NewsMapper> {
 	}
 	
 	@SuppressWarnings("unchecked")
-	public Pagination<NewsPortalList> portalNewsList(Integer pSize, Integer pNo, Integer type,Integer hot,Integer provinceId) {
+	public Pagination<NewsPortalList> portalNewsList(Integer pSize, Integer pNo, Integer type,Integer hot,Integer provinceId,String keyword) {
 		Map<String, Object> params = new HashMap<String, Object>();
 		if (null != hot){
 			params.put("hot", hot);
@@ -153,6 +153,9 @@ public class NewsService extends BaseMybatisDao<NewsMapper> {
 		if(null != provinceId){
 			params.put("provinceId", provinceId);
 		}
+		if(null != keyword){
+			params.put("keyword", keyword);
+		}
 		if (pNo == null || pNo < 0) {
 			pNo = 1;
 		}

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

@@ -44,6 +44,11 @@
   					</li>
   					<li th:classappend="${mainM=='thinkTank'}? 'active'">
   						<a th:href="${basePath + '/portal/thinkTank/index.html'}">智库咨询</a>
+  						<ol class="subnavigation">
+  							<li>
+  								<a th:href="${basePath + '/portal/thinkTank/policyList.html'}">智政</a>
+  							</li>
+  						</ol>
   					</li>
   					<li>
   						<a th:href="${basePath + '/portal/financial/index.html'}">科技金融</a>
@@ -214,6 +219,7 @@
 			</div>
 			<img th:src="${portalHost+'/img/login_close.png'}" alt="" class="login_close" />
 		</div>
+		<div class="smg"><input type="text" name="msg" value="" id="msg" readonly="readonly"/></div>
 	</th:block>
 	<th:block th:fragment="footer(scripts)">
 		<script th:inline="javascript">

+ 184 - 0
src/main/webapp/WEB-INF/views/portal/thinkTank/policyList.html

@@ -0,0 +1,184 @@
+<!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})">
+	<title>智政</title>
+	<link th:href="${portalHost + '/vendors.css'}" rel="stylesheet">
+	<link th:href="${portalHost + '/thinkTank/policyList.css'}" rel="stylesheet">
+</head>
+
+<body>
+	<header>
+		<div th:replace="common::nav('thinkTank','policyList')"></div>
+	</header>
+	<!--banner-->
+  	<div class="carouselt">
+		<ul class="ct-img-big clear">
+			<li data-index=0 ><img th:src="${portalHost + '/img/highTech_slide_1.jpg'}" alt=""/></li>
+			<li data-index=1 ><img th:src="${portalHost + '/img/highTech_slide_2.jpg'}" alt=""/></li>
+			<li data-index=2 ><img th:src="${portalHost + '/img/highTech_slide_3.jpg'}" alt=""/></li>
+			<li data-index=3 ><img th:src="${portalHost + '/img/highTech_slide_4.jpg'}" alt=""/></li>
+			<li data-index=4 ><img th:src="${portalHost + '/img/highTech_slide_5.jpg'}" alt=""/></li>
+		</ul>
+		<a class="btn btn-next" href="">
+			<img th:src="${portalHost + '/img/index_next.png'}" alt=""/>
+		</a>
+		<a class="btn btn-pre" href="">
+			<img th:src="${portalHost + '/img/index_pre.png'}" alt=""/>
+		</a>
+	</div>
+	<!--主体内容区域开始-->
+    <div class="main_top">
+    	<div class="head_bj">
+	    	<div class="container">    		           
+	            <ul class="detail_toptitle">
+	            	<li><img th:src="${portalHost + '/img/detail_home.jpg'}" alt="" /></li>
+	            	<li>></li> 
+	                <li><a href="#">智库咨询</a></li>
+	                <li>></li>               
+	                <li><a href="#">智政</a></li>
+	                <li>></li>
+	                <li class="that"><a href="#" >智政资讯 </a></li>
+	            </ul>
+	            <div class="portal-content">
+					<div class="search-criteria row">
+						<div class="search-title col-md-1">
+							<span>所在区域</span>
+						</div>
+						<div class="search-select col-md-11">
+							<ul id="industryList" class="clearfix"></ul>
+						</div>
+					</div>					
+					<div class="searchs">
+		 				<div class="select">
+		 					<select name="" id="selt">
+		 											
+		 					</select>	 					
+		 				</div> 				
+		 				<div id="search_on">					
+		 					<input type="search" placeholder="高新"/>
+		 				</div>
+		 				<button id="btn_search"></button>						 			
+			 		</div>
+			 	</div>
+			</div>	       
+	    </div>	   
+        <div class="invest_midt  container">       		
+       		<div class="invest_contant">
+       			<div class="invest_left">       					 				
+		 			<div class="policy">
+	 				    <ul>
+		 					<li value="">
+		 						<div class="policy_time">
+		 							<p>30</p>
+		 							<time>2017-09</time>
+		 						</div>
+		 						<div class="policy_details">
+		 							<h4><a href="#">高新是什家纺的的大学城赴会而费尽覅么?</a></h4>
+			 						<p>怒吼道胡非常胡海峰回复哦地科技i将诶耳机哦饿哦降低间谍iOS等会吃饭虽很商务i回复</p>
+			 						<a href="#">MORE+</a>
+		 						</div>
+		 					</li>
+		 					<li value="">
+		 						<div class="policy_time">
+		 							<p>30</p>
+		 							<time>2017-09</time>
+		 						</div>
+		 						<div class="policy_details">
+		 							<h4><a href="">高新是什家纺的的大学城赴会而费尽覅么?</a></h4>
+			 						<p>怒吼道胡非常胡海峰回复哦地科技i将诶耳机哦饿哦降低间谍iOS等会吃饭虽很商务i回复</p>
+			 						<a href="#">MORE+</a>
+		 						</div>
+		 					</li>
+		 					<li value="">
+		 						<div class="policy_time">
+		 							<p>30</p>
+		 							<time>2017-09</time>
+		 						</div>
+		 						<div class="policy_details">
+		 							<h4><a href="">高新是什家纺的的大学城赴会而费尽覅么?</a></h4>
+			 						<p>怒吼道胡非常胡海峰回复哦地科技i将诶耳机哦饿哦降低间谍iOS等会吃饭虽很商务i回复</p>
+			 						<a href="#">MORE+</a>
+		 						</div>
+		 					</li>
+		 					<li value="">
+		 						<div class="policy_time">
+		 							<p>30</p>
+		 							<time>2017-09</time>
+		 						</div>
+		 						<div class="policy_details">
+		 							<h4><a href="">高新是什家纺的的大学城赴会而费尽覅么?</a></h4>
+			 						<p>怒吼道胡非常胡海峰回复哦地科技i将诶耳机哦饿哦降低间谍iOS等会吃饭虽很商务i回复</p>
+			 						<a href="#">MORE+</a>
+		 						</div>
+		 					</li>
+	 					</ul>	 				
+	 				</div>		
+       				<div class="pagination_box">
+						<nav aria-label="Page navigation" class="clearfix">							
+							<ul class="pagination">								
+								<li class="pagePre">
+									<a href="#" aria-label="Previous">
+										<span aria-hidden="true" value="1">首页</span>
+									</a>
+								</li>								
+								<li class="pageNumber active"><a href="#" value="1">1</a></li>																
+								<li class="pageNext">
+									<a href="#" aria-label="Next">
+										<span aria-hidden="true">末页</span>
+									</a>
+								</li>							
+							</ul>
+							<span class="totalCount">共 0 页 0 条数据</span>
+						</nav>
+					</div>
+       			</div>
+       			<div class="invest_right">
+       				<h5>热点资讯</h5>
+       				<ul>
+       					<li>
+       						<a href="">
+	       						<p>高新是什家纺的的大学城赴会而</p>
+	       						<time>2017-09-18</time>
+       						</a>
+       					</li> 
+       					<li>
+       						<a href="">
+	       						<p>高新是什家纺的的大学城赴会而</p>
+	       						<time>2017-09-18</time>
+       						</a>
+       					</li>
+       					<li>
+       						<a href="">
+	       						<p>高新是什家纺的的大学城赴会而</p>
+	       						<time>2017-09-18</time>
+       						</a>
+       					</li>
+       					<li>
+       						<a href="">
+	       						<p>高新是什家纺的的大学城赴会而</p>
+	       						<time>2017-09-18</time>
+       						</a>
+       					</li>
+       					<li>
+       						<a href="">
+	       						<p>高新是什家纺的的大学城赴会而</p>
+	       						<time>2017-09-18</time>
+       						</a>
+       					</li>
+       				</ul>
+       			</div> 
+       		</div>	
+        </div>
+    </div>
+  	<!--主体内容区域结束-->
+	<footer>
+		<div th:replace="common::copyright"></div>
+		<div th:replace="common::login"></div>	
+	</footer>
+	<div th:replace="common::footer(~{::script})">
+		<script type="text/javascript" th:src="${portalHost + '/vendors.js'}"></script>
+		<script type="text/javascript" th:src="${portalHost + '/thinkTank/policyList.js'}"></script>
+	</div>
+</body>
+</html>