product.hbs 2.31 KB
{{# favProducts}}
    {{#with sort}}
        <div class="default-sorts sorts clearfix">
            {{#each default}}
                <span class="sort{{#if focus}} focus{{/if}}">
                    <a href="{{url}}">{{name}}{{count}}</a>
                </span>
                {{#unless @last}}
                    <span class="sep">|</span>
                {{/unless}}
            {{/each}}

            {{#if all}}
                <span class="has-more">......</span>
                <span id="spread-sort" class="sort-btn" title="展开">
                    <i class="iconfont">&#xe63a;</i>
                </span>
            {{/if}}
        </div>
        {{#if all}}
            <div class="all-sorts sorts">
                {{#each all}}
                    <span class="sort{{#if focus}} focus{{/if}}">
                        <a href="{{url}}">{{name}}{{count}}</a>
                    </span>
                    {{#unless @last}}
                        <span class="sep">|</span>
                    {{/unless}}
                {{/each}}
                <span id="retract-sort" class="sort-btn" title="收起">
                    <i class="iconfont">&#xe639;</i>
                </span>
            </div>
        {{/if}}
    {{/with}}

    <p class="reduction-filter">
        {{# reduction}}
            <a class="reduction-notice" href="{{url}}">我订阅的降价通知(<span>{{count}}</span>/5)</a>
        {{/ reduction}}

        {{# filter}}
            <a href="{{reductionUrl}}">
                <input type="checkbox" class="reductionChecked" {{#if reductionChecked}} checked{{/if}}>降价商品
            </a>

            <a href="{{activityUrl}}">
                <input type="checkbox" class="activityChecked" {{#if activityChecked}} checked{{/if}}>参加活动的商品
            </a>
        {{/ filter}}

    </p>

    <div class="favorite-products">
        <p class="favorite-table-header table-header clearfix">
            <span class="info">商品信息</span>
            <span class="price">单价(元)</span>
            <span class="options">操作</span>
        </p>

        {{#if goods.empty}}
            {{#with goods}}
                {{> home/orders/empty}}
            {{/with}}
        {{^}}
            {{> favorite/product-table}}
        {{/if}}
    </div>

    {{> pager}}
{{/ favProducts}}