brand.phtml 3.26 KB
{{# favBrands}}
    <div class="favorite-brands">
        <p class="favorite-table-header table-header clearfix">
            <span class="name">品牌名称</span>
            <span class="new-arrival">新品上架</span>
            <span class="col-count">收藏人气</span>
            <span class="options">操作</span>
        </p>

        {{#if brands.empty}}
            {{#with brands}}
                {{> home/empty}}
            {{/with}}
        {{^}}
            <ul>
                {{# brands}}
                    <li class="fav-brand fav-row" data-id="{{id}}">
                        <div class="checkbox">
                            <input type="checkbox">
                        </div>

                        <div class="thumb">
                            <a href="{{url}}">
                                <img src="{{img}}">
                                <span class="name">{{name}}</span>
                            </a>
                        </div>

                        <div class="new-arrival">
                            <span class="na-trigger">新品到着({{naCount}})</span>
                            {{#if naCount}}
                                <div class="na-list hide">
                                    <div class="na-content clearfix"></div>
                                    <div class="arrow"></div>
                                </div>
                            {{/if}}
                        </div>

                        <p class="col-count">
                            {{colCount}}
                        </p>

                        <div class="options">
                            <a class="brand-shop" href="{{url}}" target="_blank">去品牌店铺</a>
                            <a class="del-favorite">[ 删除 ]</a>
                        </div>
                    </li>
                {{/ brands}}
            </ul>
        {{/if}}
        <script id="na-tpl" type="text/html">
            \{{#if naGoods}}
                <span class="na-pre hidden">
                    <i class="iconfont">&#xe622;</i>
                </span>
                <div class="na-goods">
                    <ul class="na-goods-ul clearfix">
                        \{{# naGoods}}
                            <li class="na-good">
                                <a href="\{{url}}">
                                    <img class="na-good-thumb" src="\{{img}}">

                                    <p class="na-good-name">\{{name}}</p>
                                </a>

                                <span class="na-price\{{#if salePrice}} has-sale\{{/if}}">¥\{{marketPrice}}</span>

                                \{{#if salePrice}}
                                    <span class="na-price">¥\{{salePrice}}</span>
                                \{{/if}}
                            </li>
                        \{{/ naGoods}}
                    </ul>
                </div>
                <span class="na-next hidden">
                    <i class="iconfont">&#xe621;</i>
                </span>
            \{{^}}
                <p class="has-no-na">暂无新产品</p>
            \{{/if}}
        </script>
    </div>

    {{> home/pager}}
{{/ favBrands}}