mini-cart-tpl.hbs 2.86 KB
{{#carData}}
    <div class="rich-cart">
        <h3 class="rich-cart-title">最近加入的商品:</h3>
        <div class="goods-list">
            {{# totalGoods}}
                {{#gt buy_number 0}}
                    <div class="goods-item {{#gt @index 4}} hide {{/gt}}"
                         data-num="{{buy_number}}">
                        <div class="goods-img">
                            <a href="{{product_url}}">
                                <img src="{{default_img}}"/>
                            </a>
                        </div>
                        <div class="goods-info">
                            <p class="title">
                                <a href="{{product_url}}">{{product_name}}</a>
                            </p>
                            <p>
                                颜色:<span title="{{factory_goods_name}}">{{factory_goods_name}}</span>
                                尺码:{{size_name}}
                            </p>
                        </div>
                        <div class="goods-price">
                            <p>¥{{show_price}} x {{buy_number}}</p>
                            <p>
                                <a href="javascript:void(0)" class="cart-goods-del" data-id="{{goods_incart_id}}"
                                   data-cheapest="{{is_cheapest_free}}" data-sku="{{product_sku}}"
                                   data-proid="{{promotion_id}}" data-num="{{buy_number}}">删除</a>
                            </p>
                        </div>
                    </div>
                {{/gt}}
            {{/ totalGoods}}
            {{#if has_promotion}}
            <div class="activity-item">
                <label class="activity-name">活动</label>
                <h3 class="activity-content">
                    {{#if fit_outlet_promotion }}
                    购outlet商品,满¥1999再享9折
                    {{/if}}
                    {{#if has_other_promotion}}
                    <span class="mycart_i_down" title="更多"></span>
                    {{/if}}
                    {{#if has_first_promotion}}
                    {{first_promotions.promotion_title}}
                    {{/if}}
                </h3>
            </div>
            {{/if}}
            {{#if fit_free_shipping }}
            <div class="activity-item">
                <label class="activity-name">免运费</label>
                <h3 class="activity-content">全场满 ¥{{fit_free_shipping}}免运费</h3>
            </div>
            {{/if}}
        </div>
        <div class="go-full-cart">
            <div>
                <p data-role="totalinfo"
                   data-total="{{total}}">购物车里还有<span data-role="last-num">{{total}}</span>件商品</p>
                <a href="//www.yohobuy.com/shopping/cart">查看我的购物车</a>
            </div>
        </div>
    </div>
{{/carData}}