standard-content.hbs 3.25 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">&#xe615;</span>
                        {{^}}
                            <span class="active-icon iconfont">&#xe610;</span>
                        {{/if}}
                    {{^}}
                        <span class="iconfont">&#xe614;</span>
                    {{/if}}
                {{^}}
                    <span class="iconfont">&#xe610;</span>
                {{/if}}
            </a>
        {{/ sortType}}

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

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

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

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

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

{{#if goods}}
    <div class="goods-container clearfix">
        {{#each goods}}
            {{> product/good}}
        {{/each}}
        {{# hasNextPage}}
            <div class="block-next-page">
                <a href="{{href}}">
                    <img src="{{src}}" alt=""/>
                </a>
            </div>
        {{/ hasNextPage}}
        <div class="good-item-wrapper">
            <div class="good-info-main"></div>
            <div class="good-select-color"></div>
        </div>
    </div>

    {{> common/foot-pager}}
{{^}}
    {{> product/no-result}}
{{/if}}