Преглед изворни кода

成果、需求首页跳转列表页修改

liliang4869 пре 7 година
родитељ
комит
7a07c9bff6

+ 3 - 2
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -21,6 +21,7 @@ import com.goafanti.common.bo.PolicyEntity;
 import com.goafanti.common.bo.fieldGlossoryBo;
 import com.goafanti.common.constant.PageConstants;
 import com.goafanti.common.model.Banners;
+import com.goafanti.common.model.IndustryCategory;
 import com.goafanti.common.model.JtBusinessCategory;
 import com.goafanti.common.model.JtBusinessProject;
 import com.goafanti.common.model.News;
@@ -534,7 +535,7 @@ public class WebpageController extends BaseController {
 		String url =com.goafanti.common.utils.StringUtils.getDomainByHttpRequest(request);
 		modelview.setViewName("/portal/technologyTrading/demand");
 		//行业
-		List<fieldGlossoryBo> industryList = userIdentityService.industryList();
+		List<fieldGlossoryBo> industryList = userIdentityService.domainList();
 		modelview.addObject("industryList", industryList);
 		
 		//最新需求
@@ -642,7 +643,7 @@ public class WebpageController extends BaseController {
 		String url =com.goafanti.common.utils.StringUtils.getDomainByHttpRequest(request);
 		modelview.setViewName("/portal/technologyTrading/achievement");
 		//行业
-				List<fieldGlossoryBo> industryList = userIdentityService.industryList();
+				List<fieldGlossoryBo> industryList = userIdentityService.domainList();//行业类型 1级
 				modelview.addObject("industryList", industryList);
 
 		//最新成果

+ 3 - 9
src/main/webapp/WEB-INF/views/portal/technologyTrading/achievement.html

@@ -24,7 +24,8 @@
                     <div class="menuList">
                         <ul>
                             <li th:each="industry:${industryList}" >
-                            <p th:text="${industry.name}"></p>
+                            
+                            <a th:href="@{/portal/technologyTrading/achievementList(fieldA=${industry.id})}" th:text="${industry.name}"></a>
                             </li>
                          
                         </ul>
@@ -42,14 +43,7 @@
                         </span>
                         <div class="txtVal"></div>
                     </div>
-                    <div>
-                        <img th:src="${portalHost+'/img/newMenu/search-xq.png'}" alt="">
-                        <span>发布需求</span>
-                    </div>
-                    <div>
-                        <img th:src="${portalHost+'/img/newMenu/search-cg.png'}" alt="">
-                        <span>发布技术</span>
-                    </div>
+                   
                 </div>
                 <div class="searchMain">
                     <ol>

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/technologyTrading/achievementList.html


+ 4 - 9
src/main/webapp/WEB-INF/views/portal/technologyTrading/demand.html

@@ -23,7 +23,9 @@
 					<div class="menuList">
 						<ul>
 							<li th:each="industryList:${industryList}"
-								th:text=" ${industryList.name}"></li>
+								>
+								<a th:href="@{/portal/technologyTrading/demandList(industryCategoryA=${industryList.id})}" th:text=" ${industryList.name}"></a>
+								</li>
 
 						</ul>
 					</div>
@@ -41,14 +43,7 @@
 						</span>
 						<div class="txtVal"></div>
 					</div>
-					<div>
-						<img th:src="${portalHost+'/img/newMenu/search-xq.png'}" alt="">
-						<span>发布需求</span>
-					</div>
-					<div>
-						<img th:src="${portalHost+'/img/newMenu/search-cg.png'}" alt="">
-						<span>发布技术</span>
-					</div>
+					
 				</div>
 				<div class="searchMain">
 					<ol>