favorite-brand.hbs 1.58 KB
{{# hasFavBrand}}
<div class="fav-brand-swiper">
    <a class="swiper-header" href="{{link}}">
            <div class="swiper-logo">
                <img src="{{image brandImg 30 30}}" alt=""/>
            </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 97 150}}" alt=""/>
                    </a>
                    <div class="brand-product">
                        <div class="{{# discount}}price-discount{{/ discount}}">
                            {{# discount}}<span>{{.}}<span>{{/ discount}}
                            <b>{{price}}</b>
                        </div>
                    </div>
                    <div class="swiper-lazy-preloader"></div>
                </li>
                {{/ productList}}
            </ul>
    </div>
    {{/if}}
</div>
{{/ hasFavBrand}}