goods-list.phtml 3.51 KB
<div class="fixed-area">
{{# goodsMenu}}
    <div class="all-goods-menu">
        <span class="menu-tag">所有商品</span>
        <ul class="menu-list">
            {{#each menuList}}
                <li class="{{#if curMenu}} on {{/if}}"><a class="pjax" href="{{href}}">{{name}}</a></li>
            {{/each}}
        </ul>
        <a href="{{url}}" class="more">MORE</a>
    </div>
{{/goodsMenu}}

{{# opts}}
    <div class="sort-pager">
        {{# sortType}}
            <a class="sort-type{{#if active}} active{{/if}} pjax" 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}}

        {{#if list}}
            {{#if oldPage}}
                <div class="pager-wrap">
                    <p class="page-orient">
                        {{#if preHref}}
                            <a class="pjax" 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 class="pjax" href="{{nextHref}}">
                                <span class="iconfont">&#xe601;</span>
                            </a>
                        {{^}}
                            <span class="dis-icon iconfont">&#xe601;</span>
                        {{/if}}
                    </p>
                </div>
            {{^}}
                <div class="page-nav">
                    {{#if preHref}}
                        <a class="pjax" href="{{preHref}}">
                            <span class="page-prev"><i class="arrow-left"></i></span>
                        </a>
                    {{^}}
                        <span class="page-prev"><i class="arrow-left"></i></span>
                    {{/if}}

                    {{#if nextHref}}
                        <a class="pjax" href="{{nextHref}}">
                            <span class="page-next">
                                下一页
                                <i class="arrow-right"></i>
                                <i class="pages">{{curPage}}</i>/{{pageCount}}
                            </span>
                        </a>
                    {{^}}
                        <span class="page-next">
                             下一页
                            <i class="arrow-right"></i>
                            <i class="pages">{{curPage}}</i>/{{pageCount}}
                        </span>
                    {{/if}}
                </div>
            {{/if}}
        {{/if}}
    </div>
{{/ opts}}
</div>

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