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

{{#if phrase}}
    <div class="phrase">
        {{phrase}}
    </div>
{{/if}}

{{# opts}}
    <div class="sort-pager">
        {{# sortType}}
            <a class="sort-type{{#if active}} active{{/if}}" href="{{href}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>
                {{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 @root.pageNoFollow}} rel="nofollow"{{/if}}>
                    {{#if checked}}
                        <span class="iconfont">&#xe613;</span>
                    {{^}}
                        <span class="iconfont">&#xe612;</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}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>{{count}}</a>
                            </li>
                        {{/ pageCounts}}
                    </ul>
                </div>

                <p class="page-orient">
                    {{#if preHref}}
                        <a href="{{preHref}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>
                            <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}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>
                            <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}}"{{#if @root.pageNoFollow}} rel="nofollow"{{/if}}>
                    <img src="{{image2 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}}