order-ensure.hbs
17.8 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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<div class="order-ensure-page yoho-page {{pageClass}}">
{{# content}}
<div class="order-ensure-title">
{{> shopping-step}}
</div>
<div class="basic-info">
<h2 class="title">
请填写并核对以下信息
</h2>
<div class="info-block-wrap">
<div class="address-info info-block">
<p class="name">
收货地址:
<em id="address-modify" class="info-status address-status">[修改]</em>
<em id="abort-address-modify" class="info-status address-status hide">[不保存并关闭]</em>
</p>
{{# deliveryAddress}}
<p id="address-used" class="address-used" data-id="{{id}}" data-mobile="{{mobile}}">
<em class="consignee">{{consignee}}</em>
<em class="address-text">{{area}} {{address}} {{zip_code}} {{mobile}} {{phone}}</em>
</p>
{{/ deliveryAddress}}
<div id="address-editor-wrap" class="address-editor-wrap hide">
<ul id="address-list" class="address-list">
<li class="address-item use-new-address">
<input type="radio" name="address-item-radio">使用新地址
</li>
</ul>
<ul id="address-form" class="address-form hide">
<li>
<span class="editor-legend">
<em class="star">*</em>收货人姓名:
</span>
<input class="editor-consignee editor" type="text" data-attr="consignee">
请填写您的真实姓名,最多5个汉字
</li>
<li>
<span class="editor-legend">
<em class="star">*</em>省市:
</span>
<select id="editor-province" class="editor-province"></select>
<select id="editor-city" class="editor-city">
<option value="0">请选择城市</option>
</select>
<select id="editor-area" class="editor-area">
<option value="0">请选择区县</option>
</select>
<input class="editor-address editor" type="text" data-attr="address">
标*的为支持加急送的地区,请输入收货的详细地址
</li>
<li>
<span class="editor-legend">
<em class="star">*</em>手机号码:
</span>
<input class="editor-mobile editor" type="text" data-attr="mobile">
填写正确手机号便于接受发货和收货通知
</li>
<li>
<span class="editor-legend">固定电话:</span>
<input class="editor-phonecode editor" type="text">
—
<input class="editor-phone editor" type="text" data-attr="phone">
如:010-12345678,固话和手机号至少填一项
</li>
<li>
<span class="editor-legend">电子邮件:</span>
<input class="editor-email editor" type="text" data-attr="email">
用来接收订单提醒邮件,便于您及时了解订单状态
</li>
<li>
<span class="editor-legend">邮编:</span>
<input class="editor-zipcode editor" type="text" data-attr="zipCode">
请填写准确的邮编,以确保商品尽快送达
</li>
</ul>
<span id="save-set-address" class="save-set-address">保存并送到这个地址</span>
</div>
</div>
<div id="pay-delivery-info" class="pay-delivery-info info-block">
<p class="name">
支付及送货时间:
<em id="pd-modify" class="info-status pd-status">[修改]</em>
<em id="abort-pd-modify" class="info-status pd-status hide">[不保存并关闭]</em>
</p>
{{# defaultPayDelivery}}
<ul id="pay-delivery-used" class="pay-delivery-used">
<li>
付款方式:<em id="payment-way" data-id="{{paymentTypeId}}" data-type="{{paymentType}}">{{paymentTypeName}}</em>
</li>
<li>
送货时间:<em id="delivery-time" data-id="{{deliveryTimeId}}">{{deliveryTimeStr}}</em>
</li>
<li>
送货前联系我:<em id="contract-me">{{#if contractMe}}是{{^}}否{{/if}}</em>
</li>
</ul>
{{/ defaultPayDelivery}}
<div id="pay-delivery-choice" class="pay-delivery-choice hide">
<p class="sub-title payment-sub-title">支付方式</p>
<ul class="payment-type">
{{#each paymentWay}}
<li>
<input type="radio" name="pay-type-radio"{{#isY default}} checked{{/isY}} data-id="{{payment_id}}" data-type="{{payment_type}}" data-name="{{payment_type_name}}">{{payment_type_name}}
{{#isEqual payment_type 1}}
<span class="check-banks">
查看支持在线支付的银行和平台
</span>
<div class="supports hide">
<p>支持以下支付平台在线支付</p>
<div class="online-support">
{{#each ../../supportLine}}
<img src="{{image2 .}}">
{{/each}}
</div>
<p>支持以下银行在线支付</p>
<div class="bank-support">
{{#each ../../supportBank}}
<img src="{{image2 .}}">
{{/each}}
</div>
</div>
{{/isEqual}}
</li>
{{/each}}
</ul>
<p class="sub-title">送货时间</p>
<ul class="delivery-time">
<li class="delivery-time-tip">温馨提示:快递公司会尽力按您选择的送货时间配送,如遇特殊情况(天气、环境等)无法按您要求的时间配送,还请您谅解。</li>
{{# deliveryTime}}
<li>
<input type="radio" name="delivery-time-radio"{{#isY default}} checked{{/isY}} data-id="{{delivery_time_id}}" data-name="{{delivery_time_string}}">{{delivery_time_string}}
</li>
{{/ deliveryTime}}
<li class="contract-me">
送货前是否联系:
<input type="radio" name="contract-me-radio" value="1">是
<input type="radio" name="contract-me-radio" checked value="0">否
</li>
</ul>
<span id="pay-delivery-sure" class="btn pay-delivery-btn">确定</span>
</div>
</div>
<div class="fregit-info info-block">
<p class="name">选择快递:</p>
<ul class="delivery-way">
{{# deliveryWay}}
<li>
<input type="radio" name="delivery-way-radio"{{#isY default}} checked{{/isY}} value="{{delivery_way_id}}">
{{delivery_way_name}}:运费¥{{delivery_way_cost}}
</li>
{{/ deliveryWay}}
<li class="delivery-way-tip">注:配送会由于天气,交通等不可抗拒的客观因素造成您收货时间延迟,请您知悉。</li>
<li class="delivery-way-warn">如您购买的商品为航空禁运品顺丰会用陆运的方式给你派送,预计3-5天送达,请您见谅</li>
</ul>
</div>
</div>
</div>
{{#with shopping_cart_data}}
{{#isY is_multi_package}}
<div class="multi-package-row">
温馨提示:您购买的商品<em class="red">分属不同仓库</em>,需要调拨,将被拆分成多个包裹送达
<span class="iconfont show-package"></span>
<div class="package-list hide">
<div class="package-up-icon"></div>
{{#each ../package_list}}
<div class="package-item">
<p class="package-title bold">包裹{{math @index '+' 1}}:{{#if @first}}总仓发货{{^}}异地调拨{{/if}}</p>
{{#if showToggle}}
<span class="iconfont toggle-icon left-icon"></span>
<span class="iconfont toggle-icon right-icon"></span>
{{/if}}
<div class="package-goods-wrap">
<ul class="package-goods clearfix">
{{#each goods_list}}
<li class="left">
<img class="lazy package-goods-img" data-original="{{image2 goods_images w=90 h=90}}">
</li>
{{/each}}
</ul>
</div>
<p class="package-shipping">运费:¥{{shopping_cost}}元</p>
</div>
{{/each}}
</div>
</div>
{{/isY}}
{{/with}}
<table class="goods-table">
<thead>
<tr>
<th width="40%">商品信息</th>
<th width="10%">单价(元)</th>
<th width="10%">返YOHO币</th>
<th width="10%">数量</th>
<th width="10%">小计(元)</th>
<th width="20%">商品金额(元)</th>
</tr>
</thead>
<tbody>
{{#each goodsList}}
<tr>
<td>
<a class="image" href="{{linkToGoods}}">
<img src="{{image2 goods_images w=60 h=60}}">
</a>
<p class="name-size-color">
<a href="{{linkToGoods}}">{{product_name}}</a>
<span>颜色:{{color_name}} 尺码:{{size_name}}</span>
</p>
</td>
<td>
¥{{round last_vip_price 2}}
</td>
<td>
{{yoho_coin_num}}个
</td>
<td>
{{buy_number}}
</td>
<td>
{{str_subtotal}}
</td>
{{#if @first}}
{{#with ../shoppingCartData}}
<td rowspan="{{selected_goods_count}}">{{str_order_amount}}</td>
{{/with}}
{{/if}}
</tr>
{{/each}}
</tbody>
</table>
<div class="invoice-wrap">
<p class="title">发票信息</p>
<div class="content">
<div id="without-invoice" class="without-invoice invoice-label">
<input id="invoice-radio" class="invoice-radio" type="radio">
<label for="invoice-radio">发票开具</label>
</div>
<div id="with-invoice" class="with-invoice invoice-label hide">
<input id="invoice-radio-checked" type="radio" checked>
<label for="invoice-radio-checked">发票开具</i>
<em></em>
<span id="modify-invoice" class="modify-invoice">修改</span>
</div>
</div>
</div>
{{# shoppingCartData}}
<div class="balance-wrap clearfix">
<div class="remark left">
<span id="remark-btn" class="remark-btn">添加备注信息</span>
<div class="remark-content hide">
<textarea id="remark" class="remark-text"></textarea>
<p class="remark-tip">声明:备注中有关收货人信息、支付方式、配送方式、发票信息等购买要求一律以上面的选择为准,备注无效。</p>
是否打印价格:
<input type="radio" name="print-price" value="Y" checked> 是
<input type="radio" name="print-price" value="N"> 否(如:送朋友的商品可不打印价格哦!)
</div>
</div>
<ul id="balance-detail" class="balance-detail right">
<li class="gain-coin">
<a class="gain-coin-tip" href="/help/detail?id=105" target="_blank"></a>
共返YOHO币:{{gain_yoho_coin}}个
</li>
{{#each promotion_formula_list}}
<li class="promotion-item{{#isEqual promotion '运费'}} fregit-promotion{{/isEqual}}">
<span class="promotion-name">{{promotion}}:</span>
<em class="promotion-val">{{promotion_amount}}</em>
</li>
{{/each}}
<li>
{{#if ../couponUnsupport}}
<span class="use-coupons not-support">该商品不可使用优惠券</span>
{{^}}
<span id="use-coupons" class="use-coupons coupons-trigger">使用优惠券支付</span>
<div class="using-coupon coupons-trigger hide">
<p>请选择您要使用的优惠券:</p>
<p class="orange">(OUTLET商品除免邮券外不可使用优惠券)</p>
<p class="orange">(订单中使用优惠券将不赠送商品返还的YOHO币)</p>
<ul id="coupon-list" class="coupon-list">
<li>
<input type="radio" name="coupons" checked> 直接输入优惠券码:
<input id="coupon-code" class="coupon-code" type="text">
</li>
</ul>
<p class="btns">
<span id="coupons-sure" class="coupons-sure sure-btn">确定</span>
<span id="coupons-cancel" class="coupons-cancel cancel-btn">取消</span>
</p>
</div>
{{/if}}
</li>
<li>
<span id="use-coin" class="use-coin coin-trigger">使用有货币支付</span>
<div class="using-coin coin-trigger hide">
<ul id="using-coin-cont">
{{#if coinErrorTip}}
<li><span class="red">{{coinErrorTip}}</span></li>
{{/if}}
<li>
有货币满<span class="red">{{yoho_coin_pay_rule.num_limit}}</span>个即可使用,每次使用有货币为<span class="red">{{yoho_coin_pay_rule.num_limit}}</span>的整数倍
<i class="iconfont help-icon"></i>
<div class="coin-tip-help">
<p>有货币使用提示:</p>
<p>
1.订单金额大于20元(含20元)<br>
2.有货币数量大于{{yoho_coin_pay_rule.num_limit}}个(含{{yoho_coin_pay_rule.num_limit}}个) <br>
3.有货币支付上限为每笔订单应付金额的{{yoho_coin_pay_rule.max_pay_rate_desc}}
</p>
<p class="rs-text">备注:使用有货币数量为{{yoho_coin_pay_rule.num_limit}}的整数倍,100有货币抵1元</p>
</div>
</li>
<li>您当前共有有货币 <span class="red">{{total_yoho_coin_num}}</span> 个,可用 <span class="red">{{canUseCoinNum}}</span> 个</li>
<li>
<p{{#if coinErrorTip}} class="coin-use-hide"{{/if}}>本次使用有货币<span class="red">{{canUseCoinNum}}</span>个,抵扣 <span class="red">¥{{yoho_coin}}</span></p>
</li>
</ul>
<p class="btns">
<span id="coin-sure" class="coin-sure sure-btn">确定</span>
<span id="coin-cancel" class="coin-cancel cancel-btn">取消</span>
<a href="/help/detail?id=105" class="coin-help" target="_blank">有货币使用规则?</a>
</p>
</div>
<input id="coin-used" type="hidden" data-coin="{{usedCoinNum}}" data-max={{canUseCoinNum}}>
</li>
</ul>
</div>
<p id="sum-row" class="sum-row" data-amount="{{order_amount}}">您需要实际支付金额:<em>{{round last_order_amount 2}}</em>元</p>
{{/ shoppingCartData}}
<p class="go-pay-row">
<span id="go-pay" class="go-pay">去付款</span>
</p>
{{> order-tpl}}
{{/ content}}
</div>