Pārlūkot izejas kodu

全局搜索列表联调开发

anderx 7 gadi atpakaļ
vecāks
revīzija
4e512db8cd

+ 10 - 0
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -1348,5 +1348,15 @@ public class WebpageController extends BaseController {
 		modelview.setViewName("/portal/adviser");
 		return modelview;
 	}
+	/**
+	 * 顾问首页
+	 * @param modelview
+	 * @return
+	 */
+	@RequestMapping(value = "/portal/search", method = RequestMethod.GET)
+	public ModelAndView portalSearch(ModelAndView modelview){
+		modelview.setViewName("/portal/search");
+		return modelview;
+	}
 	
 }

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

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">

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

@@ -211,13 +211,13 @@
 		</div>
 		
 		<div class="indexSearch">
-			<ul class="jumpType">
+			<!-- <ul class="jumpType">
 				<li class="active">成果</li>
 				<li>需求</li>
 				<li>专利</li>
 				<li>政策</li>
 				<li>项目</li>
-			</ul>
+			</ul> -->
 			<div class="search-inp">
 				<div class="input-group">
 					<input type="text" class="form-control demandSearch" placeholder="输入你感兴趣的内容">

+ 31 - 0
src/main/webapp/WEB-INF/views/portal/search.html

@@ -0,0 +1,31 @@
+<!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>
+		 <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <title>搜索页</title>
+<link th:href="${portalHost+'/vendors.css'}" rel="stylesheet">
+<link th:href="${portalHost+'/search.css'}" rel="stylesheet"></head>
+	</head>
+	<body>
+	<div th:replace="common::nav('','adviserDetail')"></div>  
+		 <div class="carousel">
+	        <img th:src="${portalHost+'/img/patent/patent_banner.jpg'}" alt="First slide">
+	    </div>
+	    <div class="title">
+	    	为您找到下列符合条件的信息:
+	    </div>
+		<div class="cont">
+			
+		</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+'/search.js'}"></script>
+	</div>
+	</body>
+</html>