good.phtml 2.94 KB
<div class="shopping-cart-good clearfix" data-id={{id}}>
    <span class="checkbox icon-cb-checked iconfont"></span>
    <!--    {{#if isSoldOut}}
<p class="">失效</p>
        {{^}}
        {{#if isGift}}
        {{^}}
<span class="checkbox icon-cb-checked iconfont"></span>
        {{/if}}

        {{/if}}-->
    <div class="info">
        <img class="thumb lazy" data-original={{thumb}}>
        <!--
         <a class="" href="{{url}}">
            <img class="thumb lazy" data-original="{{thumb}}">
        </a>
        {{#if isAdvanceBuy}}
            <p class="few-tag">加价购</p>
        {{^}}
            {{#if isGift}}
            <p class="few-tag">赠品</p>
            {{/if}}
        {{/if}}
        {{#if isSoldOut}}
        <p class="few-tag">失效</p>
        {{/if}}

        -->

        <div class="deps show">
            <p class="name row">{{name}}</p>
            <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>
                <span class="count">
                    ×{{count}}
                </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>