good.phtml 1.98 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">
            <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>
            <p class="row">
                <span class="price">
                    ¥{{price}}
                </span>

                {{#if soldOut}}
                    <span class="sold-out">
                        已售罄
                    </span>
                {{/if}}

                <span class="iconfont icon-del" data-count="{{count}}">&#xe621;</span>
            </p>
            {{#if lowStocks}}
                <p class="row">
                    <span class="low-stocks">
                        库存不足
                    </span>
                </p>
            {{/if}}
            {{#if appearDate}}
                <p class="row">
                    <span class="appear-date">
                        上市期:{{appearDate}}
                    </span>
                </p>
            {{/if}}
        </div>
    </div>
</div>