cart-list.hbs
11.6 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
{{#if isEmpty}}
<div class="pay-wapper">
<div class="shop-cart-empty">
<i class="iconfont"></i>
<p>购物车空空的哦,去看看心仪的商品吧~</p>
<a href="{{listUrl}}">去购物</a>
</div>
</div>
{{^}}
<!-- 购物车商品列表 -->
<div class="pay-wapper" data-role="order-cart">
<div class="cart-title">
<p class="left" style="width:6%;">
<i class="cart-item-check-title cart-item-check iconfont"></i> 全选
</p>
<p style="width:35%">商品信息</p>
<p style="width:14%">单价</p>
<p style="width:15%;">数量</p>
<p style="width:16%;">小计</p>
<p class="right" style="width:11.8%;">操作</p>
</div>
{{#advanceCart}}
<div class="mb20" data-role="advance">
<!-- 预售商品 -->
<div class="pre-sell pre-sell-title">
<i class="cart-item-check iconfont {{#isChecked}}cart-item-checked{{/isChecked}}" data-role="cart-item-check"></i>
<code>预售商品</code>
预售商品购物须知 <i class="iconfont hover-tip">
<p class="tip-text">预售商品不参加活动,不可使用优惠券,不同上市期的商品我们将为您先到先发。</p>
</i>{{tips}}
</div>
{{#pools}}
{{#if goodsList}}
<div class="cart-table">
<ul class="table">
{{#goodsList}}
{{> mix/cart/cart-item parent=..}}
{{/goodsList}}
</ul>
</div>
{{/if}}
{{/pools}}
{{#if offShelves}}
<div class="cart-table">
<ul class="table table-group">
{{#each offShelves}}
{{> mix/cart/cart-item parent=..}}
{{/each}}
</ul>
</div>
{{/if}}
{{#if soldOuts}}
<div class="cart-table">
<ul class="table table-group">
{{#each soldOuts}}
{{> mix/cart/cart-item parent=..}}
{{/each}}
</ul>
</div>
{{/if}}
{{!--{{#if promotionInfos}}
<!--<div class="gift-sell">-->
<!--{{#promotionInfos}}-->
<!--<p class="gift-sell-info"><code class="order-pay-mark">{{tag}}</code>{{promotionDesc}}-->
<!--<!–<a class="btn-clear blue" data-together-id="6">去凑单 ></a>–>-->
<!--</p>-->
<!--{{/promotionInfos}}-->
<!--</div>-->
{{/if}}--}}
</div>
{{/advanceCart}}
{{#ordinaryCart}}
<div data-role="ordinary">
<!-- 普通商品 -->
<div class="pre-sell ord-sell-title">
<i class="cart-item-check iconfont {{#isChecked}}cart-item-checked{{/isChecked}}" data-role="cart-item-check"></i>
<code>普通商品</code> {{tips}}
<a class="btn-clear blue order-pay-link" target="_blank" href="{{../moreGoodsLink}}">{{#unless isShippingCostFree}}去凑单{{/unless}} <i class="iconfont"></i></a>
</div>
{{#pools}}
<div class="promotion-pool {{#unless @first}}mt20{{/unless}}" data-role="promotion-pool">
{{#eq poolType 3}}
{{>mix/cart/cart-pool-title}}
{{else if promotionInfos}}
<div class="gift-sell mt20">
{{#promotionInfos}}
{{>mix/cart/cart-promotion-info}}
{{/promotionInfos}}
</div>
{{/eq}}
{{#if subs}}
<div class="cart-table">
{{#each subs}}
<ul class="table {{#isBrandGroup}}table-group{{/isBrandGroup}}">
{{#each goodsList}}
{{> mix/cart/cart-item parent=..}}
{{/each}}
</ul>
{{/each}}
</div>
{{/if}}
{{#if goodsList}}
<div class="cart-table">
<ul class="table {{#isBrandGroup}}table-group{{/isBrandGroup}}">
{{#goodsList}}
{{> mix/cart/cart-item parent=..}}
{{/goodsList}}
</ul>
</div>
{{/if}}
</div>
{{/pools}}
<!-- 全场已选择的 加价购+赠品 -->
{{#if goodsList}}
<div class="cart-table mt20">
<ul class="table">
{{#each goodsList}}
{{> mix/cart/cart-item parent=..}}
{{/each}}
</ul>
</div>
{{/if}}
<!--可选的加价购商品 -->
<!--priceGifts-->
<!--可选择的赠品-->
<!--gifts-->
{{#if hasGlobalBlock}}
<div class="gift-sell mt20">
{{#giftsPromotionInfos}}
{{>mix/cart/cart-promotion-info}}
{{/giftsPromotionInfos}}
{{#priceGiftsPromotionInfos}}
{{>mix/cart/cart-promotion-info}}
{{/priceGiftsPromotionInfos}}
{{#promotionInfos}}
{{#and (eq promotionId 0) tag}}
<p class="gift-sell-info">{{#if tag}}<code class="order-pay-mark">{{tag}}</code>{{/if}}
{{promotionDesc}}
<!--<a class="btn-clear blue" data-together-id="6">去凑单 ></a>-->
</p>
{{/and}}
{{/promotionInfos}}
</div>
{{/if}}
{{#if offShelves}}
<div class="mt20">
<div class="cart-table">
<ul class="table">
{{#offShelves}}
{{> mix/cart/cart-item parent=..}}
{{/offShelves}}
</ul>
</div>
</div>
{{/if}}
<!-- -->
{{#if soldOuts}}
<div class="mt20">
<div class="cart-table">
<ul class="table">
{{#soldOuts}}
{{> mix/cart/cart-item parent=..}}
{{/soldOuts}}
</ul>
</div>
</div>
{{/if}}
<!-- -->
{{#soldOutPools}}
<div class="promotion-pool mt20" data-role="promotion-pool">
{{#eq poolType 3}}
{{>mix/cart/cart-pool-title}}
{{/eq}}
{{#if goodsList}}
<div class="cart-table">
<ul class="table {{#isBrandGroup}}table-group{{/isBrandGroup}}">
{{#goodsList}}
{{> mix/cart/cart-item parent=..}}
{{/goodsList}}
</ul>
</div>
{{/if}}
</div>
{{/soldOutPools}}
{{#if matchGiftIds}}
<div class="promotion-pool" data-role="promotion-pool">
<div class="gift-sell-info" data-role="promotion-wrap" data-promotionid="{{matchGiftIds}}">
<span data-role="gift-sel-btn"></span>
</div>
</div>
{{/if}}
</div>
{{/ordinaryCart}}
{{#stat}}
<!-- 总价计算 -->
<div class="cart-fixed-submit">
<div class="cart-fixed-wrap">
<div class="center-content clearfix">
{{#unless ../isEmpty}}
<div class="fixed-option">
<i class="cart-item-check iconfont" id="cbSelAllGoods"></i>
<span class="check-all-sum">全选</span>
<a class="delAll delete-all-sel" href="javascript:void(0);">删除选中商品</a>
<a class="removeAll remove-all-2fav" href="javascript:void(0);">移入收藏夹</a>
<a class="emptyDisabled clean-all-disable"
href="javascript:void(0);">清空失效商品</a>
</div>
{{/unless}}
<p class="select-num">已选商品<strong class="ins">{{selectedGoodsCount}}</strong>件</p>
<div class="price-sum">
<p class="sum">应付金额(不含邮费):<strong><kbd>¥</kbd> {{lastOrderAmount}}</strong></p>
{{#if discountAmount}}
<p class="offer">活动优惠:¥ {{discountAmount}}</p>
{{/if}}
</div>
<a href="javascript:void(0);" id="Y_SubmitBtn" class="btn-account right"
{{#if mix}} data-mix="true"{{/if}}{{#if ensureUrl}} data-ensureurl="{{ensureUrl}}"{{/if}}
{{#if noSelectGiftTip}} data-noSelectGiftTip="true"{{/if}}>去结算</a>
</div>
</div>
</div>
{{/stat}}
{{> mix/cart/cart-pre-sell-tpl }}
</div>
{{/if}}
{{#if deleteShop}}
<div class="cart-del-goods">
<div class="cart-del-goods-title">已删除商品,您可以重新购买或移入收藏:</div>
<ul id="Y_delReselWrap">
{{#each deleteShop}}
<li data-sku="{{productSku}}"
data-promotionid="{{promotionId}}"
data-num="{{productNum}}">
<span class="good-name" style="width: 392px;">
<a href="{{link}}" target="_blank" title="{{productTitle}}">{{productTitle}}</a>
</span>
<span class="good-price" style="width: 148px;">{{productPrice}}</span>
<span class="good-num" style="width: 128px;">{{productNum}}</span>
<span class="good-operate" style="width: 260px;">
<a href="javascript:void(0);" data-role="readd2cart">重新购买</a>
<a href="javascript:void(0);" data-role="reFav">移入收藏</a>
</span>
</li>
{{/each}}
</ul>
</div>
{{/if}}