mini-cart-tpl.hbs
2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{{#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}}