cart-good.hbs 3.49 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}}">
    <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}}
            </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">尺码:{{size}}</span></p>
                </div>
                {{#ifnot noEdit}}
                <div class="intro intro-edit">
                    <div class="edit-box">
                        <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>
                        <div class="edit-size-info">
                            <div class="txt">颜色:{{color}} 尺码:{{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>
            <p class="price">
                <span class="market-price">¥{{price}}</span>
                {{#if isStudents}}<span class="vip fill-text"></span>{{/if}}
                {{#if isVipPrice}}<span class="vip fill-text">VIP</span>{{/if}}
            </p>
            <div class="tags">
                {{#if lowStocks}}<span class="low-stocks fill-text">库存不足</span>{{/if}}
                {{#appearDate}}<span class="appear-date">上市期:{{.}}</span>{{/appearDate}}
            </div>
        </div>
    </div>
</div>