wubb 8 years ago
parent
commit
65cb9d2cc3
1 changed files with 9 additions and 7 deletions
  1. 9 7
      src/main/webapp/WEB-INF/views/portal/news/newsIndex.html

+ 9 - 7
src/main/webapp/WEB-INF/views/portal/news/newsIndex.html

@@ -85,11 +85,13 @@
 		<div class="government_contacts_list">
 			<ul>
 				<li th:each="it: ${zfwl}">
-					<img th:src="${staticDomain + '/upload' + it.titleImg}">
-					<div class="government_contacts_txt">
-						<h4 th:text="${it.title}" th:title="${it.title}"></h4>
-						<span class="date" th:text="${#calendars.format(it.createTime,'yyyy-MM-dd')}"></span>
-					</div>
+					<a th:href="${'/portal/news/newsDetail.html?newsId=' + it.id}" target="_blank">
+						<img th:src="${staticDomain + '/upload' + it.titleImg}">
+						<div class="government_contacts_txt">
+							<h4 th:text="${it.title}" th:title="${it.title}"></h4>
+							<span class="date" th:text="${#calendars.format(it.createTime,'yyyy-MM-dd')}"></span>
+						</div>
+					</a>
 				</li>
 			</ul>
 		</div>
@@ -113,7 +115,7 @@
 				<div class="national_policy_list">
 					<ul>
 						<li th:each="it : ${gjzc}">
-							<a href="#">
+							<a th:href="${'/portal/news/newsDetail.html?newsId=' + it.id}" target="_blank">
 								<p th:text="${it.title}" th:title="${it.title}"></p> 
 								<span th:text="${#calendars.format(it.createTime,'MM/dd')}"></span>
 							</a>
@@ -129,7 +131,7 @@
 				<div class="national_policy_list">
 					<ul>
 						<li th:each="it : ${dfzc}">
-							<a href="#">
+							<a th:href="${'/portal/news/newsDetail.html?newsId=' + it.id}" target="_blank">
 								<p th:text="${it.title}" th:title="${it.title}"></p>
 								<span th:text="${#calendars.format(it.createTime,'MM/dd')}"></span>
 							</a>