|
|
@@ -16,9 +16,9 @@
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<title>${navigation.name}_${website.seoTitle}</title>
|
|
|
- <link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-catalog-border-bottom">
|
|
|
+ <link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-list-footer-pagination">
|
|
|
</head>
|
|
|
-<body class="screen-red-theme">
|
|
|
+<body class="screen-red-theme screen-list-page">
|
|
|
<%@ include file="news-red-header.jsp"%>
|
|
|
<main>
|
|
|
<div class="news-breadcrumb"><div class="wrap"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span> / </span><a href="${item.url}">${item.name}</a></c:forEach></div></div>
|
|
|
@@ -57,8 +57,18 @@
|
|
|
</ul>
|
|
|
</c:otherwise>
|
|
|
</c:choose>
|
|
|
- <c:if test="${pageCount > 1}">
|
|
|
- <nav class="news-pagination" aria-label="分页"><c:if test="${curPageNo > 1}"><a href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:if><a class="active" href="${curHerf}?page=${curPageNo}">${curPageNo}</a><c:if test="${curPageNo < pageCount}"><a href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:if></nav>
|
|
|
+ <c:if test="${not empty articleList}">
|
|
|
+ <c:set var="pageWindowStart" value="${curPageNo - 2 < 1 ? 1 : curPageNo - 2}"/>
|
|
|
+ <c:set var="pageWindowEnd" value="${pageWindowStart + 4 > pageCount ? pageCount : pageWindowStart + 4}"/>
|
|
|
+ <c:set var="pageWindowStart" value="${pageWindowEnd - 4 < 1 ? 1 : pageWindowEnd - 4}"/>
|
|
|
+ <nav class="news-pagination" aria-label="分页">
|
|
|
+ <span class="page-summary">共 ${pageCount} 页</span>
|
|
|
+ <c:choose><c:when test="${curPageNo > 1}"><a class="page-arrow" href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:when><c:otherwise><span class="page-arrow is-disabled">上一页</span></c:otherwise></c:choose>
|
|
|
+ <c:if test="${pageWindowStart > 1}"><a href="${curHerf}?page=1">1</a><c:if test="${pageWindowStart > 2}"><span class="page-ellipsis">…</span></c:if></c:if>
|
|
|
+ <c:forEach begin="${pageWindowStart}" end="${pageWindowEnd}" var="pageNo"><a class="${pageNo eq curPageNo ? 'active' : ''}" href="${curHerf}?page=${pageNo}">${pageNo}</a></c:forEach>
|
|
|
+ <c:if test="${pageWindowEnd < pageCount}"><c:if test="${pageWindowEnd < pageCount - 1}"><span class="page-ellipsis">…</span></c:if><a href="${curHerf}?page=${pageCount}">${pageCount}</a></c:if>
|
|
|
+ <c:choose><c:when test="${curPageNo < pageCount}"><a class="page-arrow" href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:when><c:otherwise><span class="page-arrow is-disabled">下一页</span></c:otherwise></c:choose>
|
|
|
+ </nav>
|
|
|
</c:if>
|
|
|
</article>
|
|
|
</div></section>
|