good.phtml 1.77 KB
<div class="good-info" data-skn="{{skn}}">
    <div class="tag-container clearfix">
        {{# tags}}
            {{# isNew}}
                <span class="good-tag new-tag">NEW</span>
            {{/ isNew}}
            {{# isReNew}}
                <span class="good-tag renew-tag">再到着</span>
            {{/ isReNew}}
            {{# isSale}}
                <span class="good-tag sale-tag">SALE</span>
            {{/ isSale}}
            {{# isNewFestival}}
                <span class="good-tag new-festival-tag">新品节</span>
            {{/ isNewFestival}}
            {{# isLimit}}
                <span class="good-tag limit-tag">限量商品</span>
            {{/ isLimit}}
            {{# isYearEndPromotion}}
                <span class="good-tag yep-tag">年终大促</span>
            {{/ isYearEndPromotion}}
            {{# isYearMidPromotion}}
                <span class="good-tag ymp-tag">年中热促</span>
            {{/ isYearMidPromotion}}
        {{/ tags}}
    </div>
    <div class="good-detail-img">
        <a class="good-thumb" href="{{url}}">
            <img class="lazy" data-original="{{thumb}}">
        </a>
        {{# isFew}}
            <p class="few-tag">即将售罄</p>
        {{/ isFew}}

        {{#if showColBtn}}
            <span class="col-btn iconfont{{#if coled}} coled{{/if}}">&#xe616;</span>
        {{/if}}
    </div>
    <div class="good-detail-text">
        <a href="{{url}}">{{name}}</a>
        <p class="price">
            <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">
                ¥{{salePrice}}
            </span>
            {{# marketPrice}}
                <span class="market-price">¥{{.}}</span>
            {{/ marketPrice}}
        </p>
    </div>
</div>