good.phtml 2.65 KB
<div class="shopping-cart-good clearfix" data-id={{id}}>
    {{#if isSoldOut}}
        <span class="few-tag-expire">失效</span>
    {{^}}
        <span class="checkbox icon-cb-checked iconfont"></span>
    {{/if}}

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

        <div class="deps show">
            <p class="name row">{{name}}</p>
            <span class="count">
                ×{{count}}
            </span>
            <p class="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">&#xe621;</span>
            </p>
            <p class="row">
                {{#if lowStocks}}
                    <span class="low-stocks">
                        库存不足
                    </span>
                {{/if}}
            </p>
            <p class="row">
                {{#if appearDate}}
                    <span class="appear-date">
                        上市期:{{appearDate}}
                    </span>
                {{/if}}
            </p>
        </div>
        <div class="calculate-num hide">
            <div class="calculate">
                <p><i class="iconfont cut">&#xe625;</i><span>{{count}}</span><i class="iconfont add">&#xe624;</i></p>
                <p><span>颜色:{{color}}尺码:{{size}}{{name}}</span><i class="iconfont down">&#xe616;</i></p>
            </div>
            <p><span class="price"> ¥{{price}}</span></p>
            <span class="count">
                ×{{count}}
            </span>
        </div>
    </div>
    <!--<div class="opt-panel hide">
        <div class="put-in-favorite">
            <span class="iconfont">&#xe622;</span>
            <span>移入</span>
            收藏夹
        </div>
        <div class="del">
            <span class="iconfont">&#xe626;</span>
            删除
        </div>
    </div>-->

</div>