good.hbs 3.01 KB
<div class="good-info" data-skn="{{skn}}" data-from="{{from}}">
    <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}}" target="_blank">
            <img class="lazy"  data-original="{{image thumb 235 314}}">
        </a>
        {{# isFew}}
            <p class="few-tag">即将售罄</p>
        {{/ isFew}}

        {{#if isSaleOut}}
            <a class="sale-out" href="{{url}}">
                <span class="sale-out-tip">已抢光</span>
            </a>
        {{/if}}

        {{#if showColBtn}}
            <span class="col-btn iconfont{{#if coled}} coled{{/if}}">&#xe616;</span>
        {{/if}}
    </div>
    <div class="good-detail-text {{#forStu}} stu-good-detail {{/forStu}}">
        <a href="{{url}}" target="_blank">{{{productName}}}</a>
        <p class="brand">
            <a href="{{brandUrl}}">{{brandName}}</a>
        </p>
        <p class="price {{#if vip}}vip-center{{/if}}">
            {{# marketPrice}}
                <span class="market-price">¥{{round . 2}}</span>
            {{/ marketPrice}}
            {{# salesPrice}}
            <span class="sale-price {{#unless marketPrice}}prime-cost{{/unless}}">
                ¥{{round . 2}}
            </span>
            {{/ salesPrice}}

            {{# studentPrice}}
            <span class="sale-price">
                ¥{{round . 2}}
            </span>
            {{/ studentPrice}}

            {{# discount}}
                <span class="discount">{{.}}</span>
            {{/ discount}}

            {{#vip}}<span class="vip-tag vip-span"><span> VIP </span></span><strong>更优惠</strong>{{/vip}}
            {{#vip1}}<span class="vip-1 vip-span"></span>{{/vip1}}
            {{#vip2}}<span class="vip-2 vip-span"></span>{{/vip2}}
            {{#vip3}}<span class="vip-3 vip-span"></span>{{/vip3}}
            {{#forStu}}<span class="stu-tag"> 学生价 </span>{{/forStu}}
        </p>
        <div class="hideList hide">
            {{#goodsList}}
                <li data-src="{{image imagesUrl 235 314}}" data-url="{{../url}}"></li>
            {{/goodsList}}
        </div>
    </div>
</div>