Sfoglia il codice sorgente

需求详情名称长度限制,成果详情时间格式修改

liliang4869 7 anni fa
parent
commit
1b32712ab7

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

@@ -347,11 +347,12 @@
         </div>
     </div>
     <footer>
-     	<div th:replace="common::copyright"></div>
+     <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+'/newMenu/achievement.js'}"></script>
+<script type="text/javascript" th:src="${portalHost+'/vendors.js'}"></script><script type="text/javascript" th:src="${portalHost+'/newMenu/achievement.js'}">
+</script>
 </div>
 </body>
 

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

@@ -2,7 +2,7 @@
 <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})">
+<head >
 <title>科技成果详情--我的技术和科技服务交易平台</title>
 <link th:href="${portalHost +'/vendors.css'}" rel="stylesheet">
 <link th:href="${portalHost + '/technologyTrading/achievementDetail.css'}" rel="stylesheet">
@@ -58,7 +58,7 @@
 							<span>类型:</span> <span th:text="${achievementdetail.categoryS}?${achievementdetail.categoryS}:暂无分类信息"></span>
 						</div>
 						<div class="inline_span1">
-							<span>最近更新</span><span th:text="${achievementdetail.releaseDate}?${achievementdetail.releaseDate}:暂无该信息"></span>  
+							<span>最近更新</span><span th:text="${achievementdetail.releaseDate}?${#dates.format(achievementdetail.releaseDate,'yyyy-MM-dd')}:暂无该信息"></span>  
 						</div>
 						<div class="loves">							
                        		<span class="box_love"></span><span class="dem_number" ></span><span>我感兴趣</span>

+ 7 - 10
src/main/webapp/WEB-INF/views/portal/technologyTrading/demandDetail.html

@@ -3,32 +3,29 @@
 	xmlns:th="http://www.thymeleaf.org"
 	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
 
-<head th:replace="common::header(~{::title},~{::link})">
-<title>科技需求详情--我的技术和科技服务交易平台</title>
+<head >
+<title >科技需求详情--我的技术和科技服务交易平台</title>
 <link th:href="${portalHost + '/vendors.css'}" rel="stylesheet">
 <link th:href="${portalHost + '/technologyTrading/demandDetail.css'}" rel="stylesheet">
 </head>
 
 <body>
 	<header>
-		<div th:replace="common::nav('technologyTrading','demand')"></div>
+		<div th:replace="common::nav('','')"></div>
 	</header>
 	<div id="all_achievement">
 		<div class="detail">
 			<div class="detail_top">
-				<!-- <div class="detail_topimg">
-					<a href="#"> <img th:src="${portalHost + '/img/detail_facebook.jpg'}" alt="" /></a> 
-					<a href="#"> <img th:src="${portalHost + '/img/detail_weixin.jpg'}" alt="" /></a> 
-					<a href="#"> <img th:src="${portalHost + '/img/detail_weibo.jpg'}" alt="" /></a>
-				</div> -->
 				<div class="detail_toptitle" th:each="demand:${demand}">
-					<a href="/portal/technologyTrading/index.html">技术交易&nbsp;&nbsp;></a>  <a href="/portal/technologyTrading/demand.html">技术需求&nbsp;&nbsp;></a>  <a href="#"class="a_detail" th:text="${demand.name}">关于超细颗粒金属碳化物的制造技术</a>
+					<a href="/portal/technologyTrading/index.html">技术交易&nbsp;&nbsp;></a> 
+					 <a href="/portal/technologyTrading/demand.html">技术需求&nbsp;&nbsp;></a> 
+					 <a href="#"class="a_detail" th:text="${#strings.abbreviate(demand.name,11)}"></a>
 				</div>
 			</div>
 			<div class="detail_center">
 				<div class="detail_centerimg" th:each="demand:${demand}">
 					<div class="big_text">
-						<h3 th:text="${demand.name}"></h3>
+						<h3 th:text="${#strings.abbreviate(demand.name,11)}"></h3>
 					</div>
 					<div class="big_img">
 						<div th:if="${demand.pictureUrl} == null " >