good.hbs 3.17 KB
<div class="good-info" data-skn="{{skn}}" data-from="{{from}}">
    {{#if product_id}}
        <span class="hide product-id">{{product_id}}</span>
    {{/if}}
    <div class="tag-container clearfix">
        {{# tags}}
            {{# is_new}}
                <span class="good-tag new-tag">NEW</span>
            {{/ is_new}}
            {{# is_re_new}}
                <span class="good-tag renew-tag">再到着</span>
            {{/ is_re_new}}
            {{# is_sale}}
                <span class="good-tag sale-tag">SALE</span>
            {{/ is_sale}}
            {{# is_new_festival}}
                <span class="good-tag new-festival-tag">新品节</span>
            {{/ is_new_festival}}
            {{# is_limit}}
                <span class="good-tag limit-tag">限量</span>
            {{/ is_limit}}
            {{# is_year_end_promotion}}
                <span class="good-tag yep-tag">年终大促</span>
            {{/ is_year_end_promotion}}
            {{# is_year_mid_promotion}}
                <span class="good-tag ymp-tag">年中热促</span>
            {{/ is_year_mid_promotion}}
        {{/ tags}}
    </div>
    <div class="good-detail-img">
        <a class="good-thumb" href="{{url}}" target="_blank">
            <img class="lazy"  data-original="{{image thumb 280 382}}">
        </a>
        {{# is_few}}
            <p class="few-tag">即将售罄</p>
        {{/ is_few}}

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

        {{#if show_col_btn}}
            <span class="col-btn iconfont{{#if coled}} coled{{/if}}">&#xe616;</span>
        {{/if}}
    </div>
    <div class="good-detail-text {{#for_stu}} stu-good-detail {{/for_stu}}">
        <a href="{{url}}" target="_blank">{{{product_name}}}</a>
        <p class="brand">
            <a href="{{brandUrl}}">{{brand_name}}</a>
        </p>
        <p class="price {{#if vip}}vip-center{{/if}}">
            {{# market_price}}
                <span class="market-price">¥{{round . 2}}</span>
            {{/ market_price}}
            {{# sales_price}}
            <span class="sale-price {{#unless market_price}}prime-cost{{/unless}}">
                ¥{{round . 2}}
            </span>
            {{/ sales_price}}

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

            {{# 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}}
            {{#for_stu}}<span class="stu-tag"> 学生价 </span>{{/for_stu}}
        </p>
        <div class="hideList hide">
            {{#goods_list}}
                <li data-src="{{image images_url 280 382}}" data-url="{{../url}}" data-status="{{status}}"></li>
            {{/goods_list}}
        </div>
    </div>
</div>