good.phtml 2.89 KB
<div class="shopping-cart-good clearfix" data-promotion="{{promotion_id}}" data-id="{{id}}" data-skn="{{skn}}">
    {{#if inValid}}
        <span class="few-tag-expire">失效</span>
    {{/if}}

    {{#if showCheckbox}}
        <span class="checkbox{{#if checked}} icon-cb-checked{{^}} icon-checkbox {{#if lowStocks}}disabled{{/if}}{{/if}} iconfont"></span>
    {{/if}}

    <div class="info">
        <div class="prevent-img-click"></div>
        <a href="{{link}}">
            <img class="thumb lazy" data-original="{{thumb}}">
        </a>
        {{#if isAdvanceBuy}}
            <p class="few-tag plus-tag"><span>加价购</span></p>
        {{/if}}
        {{#if isGift}}
            <p class="few-tag gift-tag"><span>赠品</span></p>
        {{/if}}

        <div class="deps show">
            <div class="fixed-height">
                <a href="{{link}}" class="name row">{{name}}</a>
                <span class="count">
                    ×{{count}}
                </span>
                <p class="row color-size-row">
                    {{#if factoryColor}}
                        <span class="color">
                            颜色:{{factoryColor}}
                        </span>
                    {{/if}}

                    {{#if size}}
                        <span class="size">
                            尺码:{{size}}
                        </span>
                    {{/if}}

                </p>
            </div>
            <p class="row">
                    <p class="price">
                        <span class="market-price">¥{{price}}</span>
                        {{#if isAdvanceBuy}}
                        <span class="sale-price">¥{{salesPrice}}</span>
                        {{/if}}
                        {{#if isGift}}
                        <span class="sale-price">¥{{salesPrice}}</span>
                        {{/if}}
                    </p>
                {{#if isVipPrice}}
                    <span class="vip">
                        VIP
                    </span>
                {{/if}}
                {{#if isStudents}}
                <span class="vip">学</span>
                {{/if}}
                {{#unless isAdvanceBuy}}
                    {{#unless isGift}}
                        <span class="iconfont icon-edit" data-count="{{count}}">&#xe61e;</span>
                    {{/unless}}
                {{/unless}}
                <span class="iconfont icon-del" data-count="{{count}}">&#xe621;</span>
            </p>
            <p class="la-tag row clearfix">
                {{#if lowStocks}}
                    <span class="low-stocks">
                        库存不足
                    </span>
                {{/if}}
                {{#if appearDate}}
                    <span class="appear-date">
                        上市期:{{appearDate}}
                    </span>
                {{/if}}
            </p>
        </div>
    </div>
</div>