sort-pager.phtml 2.03 KB
<div class="sort-pager">
    {{# sortType}}
        <a class="sort-type{{#if active}} active{{/if}}" href="{{href}}">
            {{name}}
            {{#if hasSortOrient}}
                {{#if active}}
                    {{#if desc}}
                        <span class="active-icon iconfont">&#xe603;</span>
                    {{^}}
                        <span class="active-icon iconfont">&#xe604;</span>
                    {{/if}}
                {{^}}
                    <span class="iconfont">&#xe614;</span>
                {{/if}}
            {{^}}
                <span class="iconfont">&#xe604;</span>
            {{/if}}
        </a>
    {{/ sortType}}

    {{# checks}}
        <a class="checks{{#if checked}} checked{{/if}}" href="{{href}}">
            {{#if checked}}
                <span class="iconfont">&#xe612;</span>
            {{^}}
                <span class="iconfont">&#xe613;</span>
            {{/if}}
            {{name}}
        </a>
    {{/ checks}}

    <div class="pager-wrap">
        <div class="page-count">
            <span id="count-per-page">
                {{countPerPage}}
                <i class="iconfont">&#xe604;</i>
            </span>
            每页
            <ul>
                {{# pageCounts}}
                    <li>
                        <a href="{{href}}">{{count}}</a>
                    </li>
                {{/ pageCounts}}
            </ul>
        </div>

        <p class="pager">
            {{#if preHref}}
                <a href="{{preHref}}">
                    <span class="iconfont">&#xe615;</span>
                </a>
            {{^}}
                <span class="dis-icon iconfont">&#xe615;</span>
            {{/if}}

            <span>
                <i>{{curPage}}</i>/{{pageCount}}
            </span>

            {{#if nextHref}}
                <a href="{{nextHref}}">
                    <span class="iconfont">&#xe601;</span>
                </a>
            {{^}}
                <span class="dis-icon iconfont">&#xe601;</span>
            {{/if}}
        </p>
    </div>
</div>