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

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

    <div class="info">
        <a href="{{link}}">
            <img class="thumb lazy" data-original="{{thumb}}">
        </a>
        {{#if isAdvanceBuy}}
            <p class="few-tag plus-tag">加价购</p>
        {{/if}}
        {{#if isGift}}
            <p class="few-tag gift-tag">赠品</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 color}}
                        <span class="color">
                            颜色:{{color}}
                        </span>
                    {{/if}}

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

                </p>
            </div>
            <p class="row">
                <span class="price">
                    ¥{{price}}
                </span>

                {{#if vip}}
                    <span class="vip">
                        VIP
                    </span>
                {{/if}}

                <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>