Browse Source

首页精品需求更改

Michael_9527 8 years ago
parent
commit
ddbda4f7ee

+ 1 - 1
src/main/java/com/goafanti/common/enums/MarketingPage.java

@@ -2,7 +2,7 @@ package com.goafanti.common.enums;
 
 public enum MarketingPage {
 	mainAchievement("/index",1,5), //首页成果
-	mainDemand("/index",2,5),	// 首页需求
+	mainDemand("/index",2,8),	// 首页需求
 	mainPolicy("/index",6,3), //首页政策
 	specialist("/index",7,6);//智者专家
 	MarketingPage(String pageUrl,Integer boothType,Integer boothSize){

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

@@ -116,8 +116,24 @@
 				<a th:href="${basePath + '/portal/technologyTrading/demand.html'}">MORE+</a>
 			</div>
 			<div class="demand_cont">				
-				<div th:each="item:${demandList}">
-					<a th:href="@{/portal/technologyTrading/demandDetail(id=${item.productId},type=${item.ownerType})}">
+				<div>
+					<a th:each="item:${demandList}" th:class="${demandList.odd}?'odd':'even'" 
+					th:href="@{/portal/technologyTrading/demandDetail(id=${item.productId},type=${item.ownerType})}">
+					<div>
+						<div class="demand_img">
+							<img th:src="${avatarUploadHost + item.coverImg}" alt=""  />
+							<div>
+								<h5 th:text="${item.name}"></h5>
+								<p><span><img th:src="${portalHost + '/img/index_er4.png'}"/></span>长沙</p>
+							</div>
+						</div>
+						<p class="demand_p" th:text="${item.problem_des}"></p>
+					</div>	
+					</a>
+				</div>
+				<div>
+					<a th:each="item:${demandList}" th:class="${demandList.even}?'even':'odd'" 
+					th:href="@{/portal/technologyTrading/demandDetail(id=${item.productId},type=${item.ownerType})}">
 					<div>
 						<div class="demand_img">
 							<img th:src="${avatarUploadHost + item.coverImg}" alt=""  />