浏览代码

pc 页面默认图片

limin 7 年之前
父节点
当前提交
fefb7cef57

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

@@ -231,7 +231,7 @@
 					<a th:href="@{/portal/thinkTank/policyList?type=1}"><span class="line"></span><span>></span></a> 
 					
 				</h4>
-				<img th:src="(${policys[0].titleImg}==null)?${portalHost+'/img/index/index_new2.jpg'}:${avatarUploadHost+policys[0].titleImg}" alt="">
+				<img th:src="(${policys[0].titleImg}==null or ${policys[0].titleImg} == '')?${portalHost+'/img/index/index_new2.jpg'}:${avatarUploadHost+policys[0].titleImg}" alt="">
 				<ul>				
 					<li th:each="p,pStatus:${policys}" th:if="${pStatus.index}==0">
 						<a th:href="@{/portal/news/newsDetail(id=${p.id},type=0)}">
@@ -282,7 +282,7 @@
 					<a th:href="@{/portal/news/newsDetail(id=${sc.id},type=1)}">
 						<div class="time">
 							<span th:text="${#dates.format(sc.releaseDate,'MM-dd')}">03-12</span>
-								<span th:text="${#dates.format(sc.releaseDate,'yyyy')}">2018</span>
+							<span th:text="${#dates.format(sc.releaseDate,'yyyy')}">2018</span>
 						</div>
 						<p th:text="${sc.title}"></p>
 					</a>

文件差异内容过多而无法显示
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/patent.html