brand.hbs 4.09 KB
{{# data}}

    {{#if total}}
        <div class="favorite-brands">
            <div class="brands-list clearfix">
                {{#each brandList}}
                    <div class="brand-raw clearfix">
                        <div class="check">
                            {{> icon/checkbox}}
                        </div>
                        <div class="brand-info" data-id="{{brandId}}">
                            <div class="brand-icon">
                                <img src="{{image brandIco 145 126}}" alt="">
                            </div>
                            <div class="brand-name">
                                {{brandName}}
                            </div>
                            <div class="tool-area clearfix">
                                <a class="btn white" href="/product/shop/{{brandDomain}}" target="_blank">去店铺页</a>
                                <span class="btn white cancel">取消收藏</span>
                            </div>
                        </div>
                        <div class="brand-products slide-container">
                            <div class="slide-switch">
                                <a class="prev" href="javascript:;">
                                    <span class="iconfont">&#xe62c;</span>
                                </a>
                                <a class="next" href="javascript:;">
                                    <span class="iconfont">&#xe629;</span>
                                </a>
                            </div>
                            <div class="slide-wrap">
                                <ul>
                                    {{#each newProduct}}
                                        <li class="clearfix">
                                            {{#each this}}
                                                {{#if more}}
                                                    <div class="goods-more">
                                                        <div class="more-text">MORE</div>
                                                        <p>查看更多</p>
                                                    </div>
                                                {{^}}
                                                    <div class="goods-info">
                                                        <a href="{{url}}" target="_blank">
                                                            <img class="lazy thumb"
                                                                 src="{{image defaultImages 148 196}}"
                                                                 style="display: block;">
                                                            <div class="desc">
                                                                <span class="name">{{productName}}</span>
                                                                <p class="price">¥{{round salesPrice 2}}</p>
                                                            </div>
                                                        </a>
                                                    </div>
                                                {{/if}}
                                            {{/each}}
                                        </li>
                                    {{/each}}
                                </ul>
                            </div>
                        </div>
                    </div>
                {{/each}}
            </div>

            <div class="favorite-footer">
                <div class="favorite-tool">
                    <div class="check-all">
                        {{> icon/checkbox}}
                        <label>全选</label>
                    </div>

                    <div class="favorite-cancel">
                        取消收藏
                    </div>
                </div>
                {{{ pagination paginationData }}}
            </div>
        </div>
    {{^}}
        <div class="favorite-empty">
            <p>您还没有收藏的店铺, 去<a href="{{siteUrl}}">首页</a>看看吧</p>
        </div>
    {{/if}}
{{/data}}