goods.hbs 1.56 KB
{{#if .}} {{!-- 剔除值为false的项 --}}
    <div class="good-info" data-id="{{id}}" data-bp-id="guang_goodList_{{name}}_false">
        <div class="tag-container clearfix">
            {{# tags}}
                {{# isNew}}
                    <p class="good-tag new-tag">NEW</p>
                {{/ isNew}}
                {{# isAdvance}}
                    <p class="good-tag renew-tag">再到着</p>
                {{/ isAdvance}}
                {{# isDiscount}}
                    <p class="good-tag sale-tag">SALE</p>
                {{/ isDiscount}}
                {{# isYohoood}}
	                <p class="good-tag running-man-tag">跑男同款</p>
                {{/ isYohoood}}
                {{# isLimited}}
                    <p class="good-tag limit-tag">限量商品</p>
                {{/ isLimited}}
            {{/ tags}}
        </div>
        <div class="good-detail-img">
            <a class="good-thumb" href="{{url}}">
                <img class="lazy" data-original="{{thumb}}">
            </a>
            {{# isSoonSoldOut}}
                <p class="few-tag">即将售罄</p>
            {{/ isSoonSoldOut}}
        </div>
        <div class="good-detail-text">
            <div class="name">
                <a href="{{url}}">{{name}}</a>
            </div>
            <div class="price">
                <span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span>
                {{#price}}
                    <span class="market-price">¥{{.}}</span>
                {{/price}}
            </div>
        </div>
    </div>
{{/if}}