item.hbs
15.3 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
<div class="product-item-page blk-page">
{{# content}}
{{!-- 品牌banner --}}
{{> brand-banner}}
<div class="center-content">
{{> path-nav}}
{{# goodInfo}}
<div class="product-main clearfix" data-id="{{id}}" data-skn="{{productSkn}}">
<div class="thumbs left clearfix">
<div class="thumb-show right">
<img id="main-thumb" src="{{image img 482 643}}" style="display: block;">
<div class="check-btns{{#if btnsHide}} hide{{/if}}">
<span class="iconfont pre-thumb"></span>
<span class="iconfont next-thumb"></span>
</div>
</div>
<div class="thumb-list hide">
{{# colors}}
<div class="thumb-wrap{{#unless cur}} hide{{/unless}}">
{{#if cur}}
{{# thumbs}}
<img class="thumb{{#if @first}} cur{{/if}}" src="{{image . 75 100}}" data-shower="{{image . 482 643}}">
{{/ thumbs}}
{{^}}
{{# thumbs}}
<img class="thumb lazy" data-original="{{image . 75 100}}" data-shower="{{image . 482 643}}">
{{/ thumbs}}
{{/if}}
</div>
{{/ colors}}
</div>
</div>
<div class="infos left clearfix">
<p class="brand-name">{{brandName}}</p>
<p class="name">{{name}}</p>
<p class="intro">{{intro}}</p>
<p class="sell-price">¥{{round sellPrice 2}}</p>
{{#if marketPrice}}
<p class="market-price">¥{{round marketPrice 2}}</p>
{{/if}}
<div class="trade-wrapper">
<div class="option-content">
<p class="choose-color">
<label class="title">Color:</label>
<span class="color">{{colorName}}</span>
</p>
<div class="color-list clearfix">
{{# colors}}
<div class="color-item" data-color="{{color}}" data-total="{{total}}" >
{{> round-color}}
</div>
{{/ colors}}
</div>
<p class="choose-size">
<label class="title">Size:</label>
<span class="size"></span>
</p>
<div class="sizes">
{{# colors}}
<ul class="size-list{{#unless cur}} hide{{/unless}} clearfix">
{{# sizes}}
<li {{#unless num}}class="disable"{{/unless}} title="{{title}}" data-sku="{{sku}}" data-num="{{num}}" data-name="{{name}}">{{name}}</li>
{{/ sizes}}
</ul>
{{/ colors}}
</div>
</div>
<div class="tip-content">
{{# fashionTopGoods}}
{{#if getLimitedCode}}
<span>
点击
<i class="get-lc{{#unless getLimitedCodeDis}} blue{{/unless}}">获取限购码</i>
,凭借限购码购买商品
</span>
<div class="lc-container hide">
<span class="lc-arrow"></span>
<div class="lc-content">
<div class="qr-code"></div>
<p class="title">打开APP扫描二维码获取限购码</p>
<p class="sub-title">商品开售后即可购买</p>
</div>
</div>
{{/if}}
{{#if hadLimitedCode}}
<span>您已获取限购码</span>
{{/if}}
{{#if limitedCodeSoldOut}}
<span>限购码已抢光</span>
{{/if}}
{{/ fashionTopGoods}}
{{#if soldOut}}
{{!-- <span>
点击
<i class="arr-notice blue">到货通知</i>
,到货第一时间通知您
</span> --}}
<script type="text/html" id="arrival-notice-tpl">
// <h1>到货通知</h1>
// <p>商品一旦在30日内到货,我们将会第一时间通知您,请及时关注哦!</p>
// <div class="phone-num">手机号<input type="text" class="notice-phone"></div>
// <p>
// <span class="iconfont add-fav checked"></span>
// 添加到收藏夹
// </p>
</script>
<script type="text/html" id="arrival-notice-success-tpl">
// <h1>到货通知</h1>
// <p>商品订阅到货通知成功!</p>
</script>
{{/if}}
</div>
<p class="btns">
{{#unless soldOut}}
{{# buyNow}}
<span id="buy-now" class="btn{{#if dis}} disable{{/if}}" data-base="{{buyNowBase}}">立即购买</span>
{{/ buyNow}}
{{# openSoon}}
<span id="open-soon" class="btn disable">即将开售</span>
{{/ openSoon}}
{{#if notForSale}}
<span class="btn disable">
<i class="iconfont"></i>
非卖品
</span>
{{/if}}
{{#if addToBag}}
<span id="add-to-bag" class="btn">
<i class="iconfont"></i>
加入购物袋
</span>
{{/if}}
{{/unless}}
<span id="sold-out" class="btn disable{{#unless soldOut}} hide{{/unless}}">已售罄</span>
<span id="collect-product" class="btn white{{#if productFav}} coll{{/if}}">
<span class="collecting">
<i class="iconfont"></i>
收藏商品
</span>
<span class="collected">
<i class="iconfont"></i>
<em>已收藏</em>
<em class="cal-col">取消收藏</em>
</span>
</span>
</p>
{{> share}}
</div>
<div class="balance-wrapper">
<p class="success-tip">商品已成功添加到购物袋!</p>
<a class="go-bag btn" href="/shopping/cart">去购物袋结算</a>
<span id="keep-shopping" class="btn white">继续购物</span>
</div>
</div>
</div>
{{/ goodInfo}}
<div class="other-info">
{{# brand}}
<div class="info-block">
<div class="block-title">
<label class="title-wrapper">
<div class="en">{{titleEn}}</div>
<div class="cn">{{titleCn}}</div>
</label>
</div>
<div class="intro-block">
<img src="{{image logo 250 84}}">
<div class="intro-text">{{{intro}}}</div>
</div>
<div id="intro-full-hide" class="hide">
<div class="full-intro-title">
<h2>{{titleEn}}</h2>
<h5>{{titleCn}}</h5>
</div>
<div class="full-intro-text nano">
<div class="nano-content">
{{{fullIntro}}}
</div>
</div>
</div>
</div>
{{/ brand}}
{{# description}}
<div class="info-block">
<div class="block-title">
<label class="title-wrapper">
<div class="en">{{titleEn}}</div>
<div class="cn">{{titleCn}}</div>
</label>
</div>
<div class="des-wrapper">
<ul class="des-basic clearfix">
{{# basic}}
<li>
<label class="title">{{key}}<span></span></label>
:<span class="info">{{value}}</span>
</li>
{{/ basic}}
</ul>
{{#if comfort}}
<ul class="des-comfort clearfix">
{{# comfort}}
<li>
<label class="title">{{name}}<span></span></label>
:<span class="min-des info">{{minDes}}</span>
{{# blocks}}
<span class="comfort-block{{#if cur}} cur{{/if}}"></span>
{{/ blocks}}
<span class="max-des">{{maxDes}}</span>
</li>
{{/ comfort}}
</ul>
{{/if}}
</div>
</div>
{{/ description}}
{{# material}}
<div class="info-block">
<div class="block-title">
<label class="title-wrapper">
<div class="en">{{titleEn}}</div>
<div class="cn">{{titleCn}}</div>
</label>
</div>
{{#if detail}}
<ul class="material-detail clearfix">
{{# detail}}
<li class="clearfix">
<p><img src="{{image img 120 60}}"></p>
<p>
<label class="name">
{{name}}<br>
{{nameEn}}
</label>
</p>
<p class="text">{{text}}</p>
</li>
{{/ detail}}
</ul>
{{/if}}
{{#if wash}}
<ul class="material-wash clearfix">
{{# wash}}
<li>
<img class="wash-icon" src="{{image img 50 50}}">
<p class="wash-name">{{name}}</p>
</li>
{{/ wash}}
</ul>
{{/if}}
</div>
{{/ material}}
{{# sizeInfo}}
<div class="info-block">
<div class="block-title">
<label class="title-wrapper">
<div class="en">{{titleEn}}</div>
<div class="cn">{{titleCn}}</div>
</label>
</div>
<div class="size-info" data-img="{{sizeImage}}">
{{# param}}
{{> item/size-table}}
{{/ param}}
<p>
※ 以上尺寸为实物人工测量,因测量方式不同会有1-2CM误差,相关数据仅作参考,以收到实物为准。 单位:CM<br>
※ 参考尺码因衣服版型、剪裁不同会有误差,仅供参考
</p>
{{!-- 解决首次弹出示意图弹窗因图片高度获取不到定位异常问题 --}}
<img src="{{sizeImage}}" style="display: none;">
{{# taste}}
{{> item/size-table}}
{{/ taste}}
</div>
</div>
{{/ sizeInfo}}
{{# details}}
<div class="info-block">
<div class="block-title">
<label class="title-wrapper">
<div class="en">{{titleEn}}</div>
<div class="cn">{{titleCn}}</div>
</label>
</div>
<div class="detail-content">{{{content}}}</div>
</div>
{{/ details}}
<div class="info-block">
<div class="block-title">
<label class="title-wrapper">
<div class="en">GUARANTEE</div>
<div class="cn">售后保障</div>
</label>
</div>
<div id="saleReturn" class="support-returned-service"></div>
</div>
</div>
<div class="recommend-product"></div>
</div>
{{/ content}}
</div>