favorite-brand.hbs 1.6 KB
{{# hasFavBrand}}
<div class="fav-brand-swiper">
    <a class="swiper-header" href="{{link}}">
            <div class="swiper-logo">
                {{#if brandImg}}
                <img src="{{image brandImg 30 30}}" onerror="this.remove()" alt=""/>
                {{/if}}
            </div>
            <div class="brand-info">
                <span class="brand-name">{{brandName}}</span>
                <div class="brand-update">
                    {{# update}}
                    <span class="brand-new">上新<b>{{.}}</b></span>
                    {{/ update}}
                    {{# discount}}
                    <span class="brand-discount">折扣<b>{{.}}</b></span>
                    {{/ discount}}
                </div>
            </div>
            <span class="fav-more"></span>
    </a>
    {{#if productList}}
    <div id="swiper-container-{{id}}" class="swiper-container" data-id="{{id}}">
            <ul class="swiper-wrapper swiper-wrapper-{{id}}">
                {{# productList}}
                <li class="swiper-slide">
                    <a href="{{link}}">
                        <img class="swiper-lazy" data-src="{{image imgUrl 235 314}}" alt=""/>
                    </a>
                    <div class="brand-product">
                        <div class="{{# discount}}price-discount{{/ discount}}">
                            {{# discount}}<span>{{.}}<span>{{/ discount}}
                            <b>{{price}}</b>
                        </div>
                    </div>
                </li>
                {{/ productList}}
            </ul>
    </div>
    {{/if}}
</div>
{{/ hasFavBrand}}