<div th:fragment="home_page">
    <head>
        <style>
            .pag {text-align:center}
            .pag .num{color: red;}
        </style>
    </head>
    <div class="pag" th:if="${page.pages > 0}">
        <span>总记录</span>
        <span class="num" th:text="${page.total}"></span>
        <span>条</span>
        <span>总页数</span>
        <span class="num" th:text="${page.pages}"></span>
        <span>页</span>
        <span>当前第</span>
        <span class="num" th:text="${page.pageNum}"></span>
        <span>页</span>
        <span>每页</span>
        <span class="num" th:text="${page.pageSize}"></span>
        <span>条</span>
        <a th:href="@{${pageUrl}(p=1)}" th:if="${not page.isFirstPage}">首页</a>
        <a th:href="@{${pageUrl}(p=${page.prePage})}"  th:if="${not page.isFirstPage}">上一页</a>
        <a th:href="@{${pageUrl}(p=${page.nextPage})}"  th:if="${not page.isLastPage}">下一页</a>
        <a th:href="@{${pageUrl}(p=${page.pages})}"  th:if="${not page.isLastPage}">尾页</a>
    </div>
    <div style="height: 200px;text-align: center;padding-top: 50px;" th:if="${page.pages == 0}">
        <img src="/home/base/nodata.png"/>
    </div>

</div>