cart-good.hbs 4.44 KB
<div class="good-item{{#if lowStocks}} low-stocks{{/if}}{{#if isStudents}} is-students{{/if}}{{#if isVipPrice}} is-vip-price{{/if}}{{#ifand checked showCheckbox}} is-checked{{/ifand}}{{#if noEdit}} no-edit{{/if}}{{#if inValid}} in-valid{{/if}}{{#if inValidLow}} in-valid-low{{/if}}{{#ifor isGift isAdvanceBuy}} is-gift{{/ifor}}" data-promotion="{{promotion_id}}" data-id="{{id}}" data-skn="{{skn}}" data-mnum="{{minNumber}}" data-link="{{link}}" data-activityid="{{parent.poolId}}" data-poolbatchno="{{parent.poolBatchNo}}">
    <div class="opt">
        {{#if showCheckbox}}
            <i class="iconfont chk select{{#if checked}} checked{{/if}}"></i>
        {{/if}}
        <i class="iconfont chk edit"></i>
        {{#inValid}}
            <span class="disable fill-text">失效</span>
        {{/inValid}}
    </div>
    <div class="good-new-info">
        <a href="javascript:;" class="img-a">
            <div class="img">
                <img class="thumb lazy" data-original="{{thumb}}" alt="">
                {{#isGift}}
                    <div class="flag gift"><div class="text">赠品</div></div>
                {{/isGift}}
                {{#isAdvanceBuy}}
                    <div class="flag price-gift"><div class="text">加价购</div></div>
                {{/isAdvanceBuy}}
                {{#if parent.isBundle}}
                    <div class="flag bundle"></div>
                {{/if}}
            </div>
        </a>
        <div class="info">
            <div class="fixed-height">
                <div class="intro intro-name">
                    <div class="name-row">
                        <div class="name">
                            <a href="javascript:;">{{name}}</a>
                        </div>
                    </div>
                    <p class="color-size-row"><span class="color">颜色:{{color}}</span><span class="size">{{skuTitle}}:{{size}}</span></p>
                </div>
                {{#ifnot noEdit}}
                <div class="intro intro-edit">
                    <div class="edit-box">
                        {{#unless parent.isBundle}}
                            <div class="num-opt">
                                <a href="javascript:;" class="btn btn-opt-minus{{#ifor minSelectNum isGift isAdvanceBuy}} disabled{{/ifor}}"><span class="iconfont"></span></a>
                                <input type="text" class="good-num" disabled="true" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
                                <a href="javascript:;" class="btn btn-opt-plus{{#ifor maxSelectNum isGift isAdvanceBuy}} disabled{{/ifor}}"><span class="iconfont"></span></a>
                            </div>
                        {{^}}
                            <input type="hidden" class="good-num" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
                        {{/unless}}
                        <div class="edit-size-info {{#ifnot parent.isBundle}} edit-size-info-notop {{/ifnot}}">
                            <div class="txt">颜色:{{color}} {{skuTitle}}:{{size}}</div>
                            <div class="down">
                                <i class="iconfont"></i>
                            </div>
                        </div>
                    </div>
                </div>
                {{^}}
                    <input type="hidden" class="good-num" value="{{count}}" data-min="{{minNumber}}" data-max="{{maxNumber}}">
                {{/ifnot}}
                <div class="count">x{{count}}</div>
            </div>
            <div class="bottom">
                <div class="price{{#if reAddToCart}} pull-left{{/if}}">
                    <span class="market-price">¥{{price}}</span>
                    {{#if salesPrice}}<span class="sales-price">¥{{salesPrice}}</span>{{/if}}
                    {{#if isStudents}}<span class="vip fill-text"></span>{{/if}}
                    {{#if isVipPrice}}<span class="vip fill-text">VIP</span>{{/if}}
                </div>
                {{#if reAddToCart}}
                    <div class="re-add pull-right">
                        <span>重新加入购物车</span>
                    </div>
                {{^}}
                <div class="tags">
                    {{#if lowStocks}}<span class="low-stocks fill-text">库存不足</span>{{/if}}
                    {{#appearDate}}<span class="appear-date">上市期:{{.}}</span>{{/appearDate}}
                </div>
                {{/if}}
            </div>
        </div>
    </div>
</div>