| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
- <html>
- <head>
- <meta name="keywords" content="${website.seoKeywords}" />
- <meta name="description" content="${website.seoDescription}" />
- <meta name="lanmu" content="${navigation.name}">
- <title>${navigation.name}_${website.seoTitle}</title>
- <website-include page="head" />
- </head>
- <body>
- <website-include page="navigation" />
- <div class="content mobile-content">
- <div class="content-row wrap">
- <!-- 左侧 -->
- <div class="content-left">
- <h2 class="content-wrap-title">
- ${parNavigation.name}
- </h2>
- <ul class="content-left-list">
- <c:forEach items="${brotherNavList}" var="item">
- <c:if test="${item.name == navigation.name}">
- <li class="content-left-current">
- <a href="${item.href}" target="_self">
- ${item.name}
- </a>
- </li>
- </c:if>
- <c:if test="${item.name != navigation.name}">
- <li>
- <a href="${item.href}" target="_self">
- ${item.name}
- </a>
- </li>
- </c:if>
- </c:forEach>
- </ul>
- </div>
- <!-- 右侧 -->
- <div class="content-item content-right">
- <div class="content-wrap">
- <!-- 面包屑 -->
- <h2 class="content-wrap-title">
- <a href="/" target="_blank">首页</a>
- >
- <c:forEach items="${crumbsNavList}" var="item" varStatus="index">
- <a href="${item.url}" target="_blank">
- ${item.name}
- </a>
- <c:if test="${index.index < crumbsNavListSize}">></c:if>
- </c:forEach>
- </h2>
- <ul class="content-wrap-list">
- <c:if test="${articleList.size() == 0}">
- <p class="no-data">空空如也</p>
- </c:if>
- <c:forEach items="${articleList}" var="item">
- <li>
- <a href="${item.url}" target="_blank">
- <p>
- ${item.title}
- </p>
- <span>
- [
- <fmt:formatDate value="${item.release_time}" pattern="yyyy年MM月dd日" />]
- </span>
- </a>
- </li>
- </c:forEach>
- </ul>
- <!-- 分页 -->
- <div class="list-page">
- <div id="page-warp"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <website-include page="footer" />
- </body>
- <script src="/main/dist/websites/plug-in/laypage/laypage.js"></script>
- <script>
- $laypage.render({
- elem: 'page-warp',
- count: 70, //数据总数,从服务端得到
- jump: function (obj, first) {
- //obj包含了当前分页的所有参数,比如:
- console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。
- console.log(obj.limit); //得到每页显示的条数
- //首次不执行
- if (!first) {
- //do something
- }
- }
- });
- </script>
- </html>
|