standard-content.phtml 3.15 KB
{{!-- 搜索页、列表页、NEW/SALE页标准内容--}}
{{# filters}}
    {{> product/filter-box}}
{{/ filters}}

{{# opts}}
    <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}}

        {{#if ../goods}}
            <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>
        {{/if}}
    </div>
{{/ opts}}

{{#if goods}}
    <div class="goods-container clearfix">
        {{#each goods}}
            {{> product/good}}
        {{/each}}
        <div class="good-item-wrapper">
            <div class="good-info-main"></div>
            <div class="good-select-color"></div>
        </div>
    </div>

    <div class="product-pager clearfix">
        <span class="total">{{opts.curPage}} - {{opts.pageCount}} / {{totalCount}}件商品</span>

        <div class="pager">
            {{{pager}}}
        </div>
    </div>
{{^}}
    {{> product/no-result}}
{{/if}}