cart-item.hbs 2.78 KB
<li class="pre-sell-box tr {{#isChecked}}active{{/isChecked}}" data-role="pitem"
    {{#if pid}}data-pid="{{pid}}"{{/if}}
    {{#if id}}data-id="{{id}}"{{/if}}
    {{#if skn}}data-skn="{{skn}}"{{/if}}
    {{#if sku}}data-sku="{{sku}}"{{/if}}
    {{#if productNum}}data-productnum="{{productNum}}"{{/if}}
    {{#if goodsType}}data-goodstype="{{goodsType}}"{{/if}}
    data-promotionid="{{promotionId}}"
    data-color="{{productColor}}"
    data-size="{{productSize}}"
    {{#if isGift}} data-isgift="true"{{/if}}
    {{#if isPriceGift}}data-ispricegift="true"{{/if}} >
    <div class="pay-pro td" style="width: 45%;">
        {{#unless isGift}}
            <i class="cart-item-check iconfont {{#isChecked}}cart-item-checked{{/isChecked}}"
               readonly="readonly" data-goodstype="{{goodsType}}"
               {{#if isChecked}}checked{{/if}}></i>
        {{/unless}}
        <a class="pay-pro-icon" href="{{link}}" target="_blank">
            <img src="{{imgCover}}">
            {{#if isAdvance}}<span class="incentive red">预售</span>{{/if}}
        </a>
        <p class="pay-pro-info">
            {{#if tag}}<code class="order-pay-mark">{{tag}}</code>{{/if}}
            <a href="{{link}}" target="_blank">{{productTitle}}</a>
            <em class="pay-pro-detail"><span><b title="{{productColor}}">颜色:{{productColor}}</b> 尺码:{{productSize}}<i class="iconfont">&#xe6c7;</i></span></em>
        </p>
    </div>
    <div class="product-price td" style="width:17%;">¥{{productPrice}}
        {{#if promotionInfos}}
            <div class="sale-info">
                <span class="sale-info-title">促销信息<i></i></span>
                <ul class="none">
                    {{#promotionInfos}}
                        <li>{{promotionTitle}}
                            {{>cart-promotion-btn}}
                        </li>
                    {{/promotionInfos}}
                </ul>
            </div>
        {{/if}}
    </div>
    <div style="width:10%;" class="adjust-cart-num td">
        {{#if isGift}}
            <div>{{productNum}}</div>
        {{^}}
            {{#if isPriceGift}}
                <div>{{productNum}}</div>
            {{^}}
                <div class="cart-num-cont">
                    <span class="minus"></span>
                    <input type="text" value="{{productNum}}" readonly="readonly"/>
                    <span class="plus"></span>
                </div>

                <p class="tip-message {{#isTipNoStore}}tipNoStore{{/isTipNoStore}}">{{tipMessage}}</p>
            {{/if}}
        {{/if}}
    </div>
    <div style="width:17%;" class="sub-total red td">¥{{productSubtotal}}</div>
    <div  style="width:11%;" class="cart-operation td">
        <span class="cart-del-btn">删除</span>
        <span class="cart-col-btn">移入收藏</span>
    </div>
</li>