-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbusiness-detail-page.html
295 lines (283 loc) · 24.7 KB
/
business-detail-page.html
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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<title>商详页</title>
<link rel="stylesheet" href="./assets/business-detail-page/style.css">
<style>
body {
margin: 0;
padding: 0;
background: #EAEAEA;
}
</style>
</head>
<body>
<div class='galaxy-header'>
<div class="galaxy-trans-box">
<div class="galaxy-trans-list"></div>
</div>
</div>
<div class="galaxy-abstract">
<div class="galaxy-abstract-ps flex-row">
<div class="galaxy-abstract-price">¥<span>19.3</span><span>原价 ¥299</span></div>
<div class="galaxy-abstract-sales">已售<span>1.34万</span>件</div>
</div>
<div class="galaxy-abstract-order-back flex-row">
<div class="galaxy-abstract-cash flex-row">
<span class="flex-row"><img src="./assets/business-detail-page/crown@2x.png" alt="crown">下单返</span>
<span>¥1.62</span>
<span>最高可返</span>
<span>¥2.37</span>
</div>
<div class="galaxy-abstract-upgrade flex-row">
立即升级
<img src="./assets/business-detail-page/arrow@2x.png" alt="arrow">
</div>
</div>
<div class="galaxy-abstract-title">
<span class="galaxy-abstract-title-label">天猫</span>
江原道贵妇温泉矿物卸妆水江原道贵妇温泉矿物卸妆水保湿抗氧化50ml
</div>
<div class="galaxy-abstract-features">
<span class="galaxy-abstract-features-item galaxy-features-icon-clock">拍两件打5折</span>
<span class="galaxy-abstract-features-item galaxy-features-icon-gift">额外满减</span>
<span class="galaxy-abstract-features-item galaxy-features-icon-cart">前200位5折</span>
<span class="galaxy-abstract-features-item galaxy-features-icon-discount">赠送收纳神器一件</span>
</div>
<div class="galaxy-abstract-coupon flex-row">
<div class="galaxy-abstract-coupon-effective flex-row">
<div class="galaxy-abstract-coupon-amount flex-row">¥<span>20</span></div>
<div class="galaxy-abstract-coupon-deadline flex-column">
<span>优惠券使用期限</span>
<span>2018.5.30-2018.6.30</span>
</div>
</div>
<a class="galaxy-abstract-coupon-receive" href="#">立即领券</a>
</div>
</div>
<div class="galaxy-talent">
<div class="galaxy-talent-header">
<div class="galaxy-talent-title flex-row">
<div class="galaxy-talent-avatar flex-row"><img src="./assets/business-detail-page/avatar@2x.png"
alt="达人推荐" />达人推荐</div>
<div class="galaxy-talent-shares">103次分享</div>
</div>
<div class="galaxy-talent-content">好莱坞明星同款!免洗卸妆水!含矿物质温泉水,温和无添加,敏感肌可用!眼唇亦可轻松卸净,按压一次,即可卸全脸彩妆,既卸妆又养肤【赠运费险】</div>
</div>
</div>
<div class="galaxy-store flex-row">
<img src="https://img.alicdn.com/imgextra//17/2d/TB1kVI5cxPI8KJjSspoSut6MFXa.jpg" alt="店标">
<div class="galaxy-store-info flex-column">
<div class="galaxy-store-info-header flex-row">
<div class="galaxy-store-info-title">维娜纳旗舰店</div>
<div class="galaxy-store-info-into">
<a href="">进店逛逛</a>
<a href="">全部商品</a>
</div>
</div>
<div class="galaxy-store-info-score flex-row">
<span class="high-score">描述:4.3<i>高</i></span>
<span>卖家:4.9<i>平</i></span>
<span>物流:4.6<i>低</i></span>
</div>
</div>
</div>
<div class="galaxy-assess">
<div class="galaxy-assess-header flex-row">
<div class="galaxy-assess-title flex-row">
<i class="galaxy-headline"></i>
<span>评价<u>1200+</u></span>
</div>
<span class="galaxy-assess-view-all">查看全部</span>
</div>
<div class="galaxy-assess-statistics">
<span>保湿滋润(136)</span>
<span>质量不错(79)</span>
<span>包装挺好(77)</span>
</div>
<div class="galaxy-assess-content">
<div class="galaxy-assess-content-nickname">黄**雪</div>
<div class="galaxy-assess-content-detail">收到每日坚果,我家小宝贝打开吃挺喜欢 ,说妈妈我下次还要买,脆脆的果然香,有葡萄干,扁桃仁,核挑仁等…</div>
</div>
</div>
<div class="galaxy-product-details">
<div class="galaxy-product-header flex-row">
<div class="galaxy-product-title flex-row">
<i class="galaxy-headline"></i>
<span>商品详情</span>
</div>
<div class="galaxy-product-unfold flex-row"><span>展开</span><i></i></div>
</div>
<div class="galaxy-product-content">
<img src="https://img.alicdn.com/imgextra/i1/1077716829/O1CN01yjvlwW20JjK9I1vRZ_!!1077716829.jpg" alt="">
</div>
</div>
<div class="galaxy-recommend">
<div class="galaxy-recommend-header flex-row"><img src="./assets/business-detail-page/heart@2x.png"
alt="为你推荐" />为你推荐</div>
<div class="galaxy-recommend-list flex-row">
<div class="galaxy-recommend-item">
<div class="galaxy-recommend-card flex-column">
<img class="galaxy-recommend-card-img"
src="https://img.alicdn.com/bao/uploaded/TB1rTmyorH1gK0jSZFwXXc7aXXa.png_310x310.jpg_.webp" alt="商品图片">
<div class="galaxy-recommend-card-info">
<div class="galaxy-recommend-card-title text-ellipsis">
<span class="galaxy-abstract-title-label">天猫</span>
嫩红素去黑变粉去黑色素
</div>
<div class="galaxy-recommend-card-coupon flex-row">
<div class="galaxy-recommend-card-real-price flex-row"><span>券后</span><u>¥</u><i>12.9</i></div>
<div class="galaxy-recommend-card-cash-back">返2.98元</div>
<img class="galaxy-recommend-card-layer" src="./assets/business-detail-page/cash-back@2x.png" alt="">
</div>
<div class="galaxy-recommend-card-label">
<span>历史低价</span>
</div>
<div class="galaxy-recommend-card-sales flex-row">
<span>已售3.4万</span>
<div class="galaxy-divider"></div>
<span>评论1.8万</span>
</div>
<a class="galaxy-recommend-card-store flex-row" href="#">
<span>佰草世家旗舰店</span>
<span>进店</span>
</a>
</div>
</div>
</div>
<div class="galaxy-recommend-item">
<div class="galaxy-recommend-card flex-column">
<img class="galaxy-recommend-card-img"
src="https://img.alicdn.com/bao/uploaded/TB1rTmyorH1gK0jSZFwXXc7aXXa.png_310x310.jpg_.webp" alt="商品图片">
<div class="galaxy-recommend-card-info">
<div class="galaxy-recommend-card-title text-ellipsis">
<span class="galaxy-abstract-title-label">天猫</span>
嫩红素去黑变粉去黑色素
</div>
<div class="galaxy-recommend-card-coupon flex-row">
<div class="galaxy-recommend-card-real-price flex-row"><span>券后</span><u>¥</u><i>12.9</i></div>
<div class="galaxy-recommend-card-cash-back">返2.98元</div>
<img class="galaxy-recommend-card-layer" src="./assets/business-detail-page/cash-back@2x.png" alt="">
</div>
<div class="galaxy-recommend-card-label">
<span>历史低价</span>
</div>
<div class="galaxy-recommend-card-sales flex-row">
<span>已售3.4万</span>
<div class="galaxy-divider"></div>
<span>评论1.8万</span>
</div>
<a class="galaxy-recommend-card-store flex-row" href="#">
<span>佰草世家旗舰店</span>
<span>进店</span>
</a>
</div>
</div>
</div>
<div class="galaxy-recommend-item">
<div class="galaxy-recommend-card flex-column">
<img class="galaxy-recommend-card-img"
src="https://img.alicdn.com/bao/uploaded/TB1rTmyorH1gK0jSZFwXXc7aXXa.png_310x310.jpg_.webp" alt="商品图片">
<div class="galaxy-recommend-card-info">
<div class="galaxy-recommend-card-title text-ellipsis">
<span class="galaxy-abstract-title-label">天猫</span>
嫩红素去黑变粉去黑色素
</div>
<div class="galaxy-recommend-card-coupon flex-row">
<div class="galaxy-recommend-card-real-price flex-row"><span>券后</span><u>¥</u><i>12.9</i></div>
<div class="galaxy-recommend-card-cash-back">返2.98元</div>
<img class="galaxy-recommend-card-layer" src="./assets/business-detail-page/cash-back@2x.png" alt="">
</div>
<div class="galaxy-recommend-card-label">
<span>历史低价</span>
</div>
<div class="galaxy-recommend-card-sales flex-row">
<span>已售3.4万</span>
<div class="galaxy-divider"></div>
<span>评论1.8万</span>
</div>
<a class="galaxy-recommend-card-store flex-row" href="#">
<span>佰草世家旗舰店</span>
<span>进店</span>
</a>
</div>
</div>
</div>
<div class="galaxy-recommend-item">
<div class="galaxy-recommend-card flex-column">
<img class="galaxy-recommend-card-img"
src="https://img.alicdn.com/bao/uploaded/TB1rTmyorH1gK0jSZFwXXc7aXXa.png_310x310.jpg_.webp" alt="商品图片">
<div class="galaxy-recommend-card-info">
<div class="galaxy-recommend-card-title text-ellipsis">
<span class="galaxy-abstract-title-label">天猫</span>
嫩红素去黑变粉去黑色素
</div>
<div class="galaxy-recommend-card-coupon flex-row">
<div class="galaxy-recommend-card-real-price flex-row"><span>券后</span><u>¥</u><i>12.9</i></div>
<div class="galaxy-recommend-card-cash-back">返2.98元</div>
<img class="galaxy-recommend-card-layer" src="./assets/business-detail-page/cash-back@2x.png" alt="">
</div>
<div class="galaxy-recommend-card-label">
<span>历史低价</span>
</div>
<div class="galaxy-recommend-card-sales flex-row">
<span>已售3.4万</span>
<div class="galaxy-divider"></div>
<span>评论1.8万</span>
</div>
<a class="galaxy-recommend-card-store flex-row" href="#">
<span>佰草世家旗舰店</span>
<span>进店</span>
</a>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="./assets/business-detail-page/jquery.js"></script>
<script>
var goodsBuyHistoryData = [{ "id": "454959", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=_VtZemsGruqedfYg*qD2-gTT&type=taobao", "taobao_user_id": "3547969161", "taobao_user_nick": "\u4eba\u591a\u4e0d\u6d6a\u8d39" }, { "id": "72292", "taobao_user_head": "", "taobao_user_id": "2693652429", "taobao_user_nick": "y\u7275\u6302y" }, { "id": "447999", "taobao_user_head": "", "taobao_user_id": "3587002570", "taobao_user_nick": "tb519188183" }, { "id": "455440", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=2ievNr*-PXfbY6o9kzABsNTT&type=taobao", "taobao_user_id": "2627350946", "taobao_user_nick": "\u65e0\u6240\u8c13\u65e0\u804a\u554a" }, { "id": "397669", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=-ag2EtWZRDixnMzbSe6I7WTT&type=taobao", "taobao_user_id": "2207733012303", "taobao_user_nick": "tb946123086" }, { "id": "444596", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=Bq3mdCNqWl4FgVi2-qLcEgTT&type=taobao", "taobao_user_id": "1699703345", "taobao_user_nick": "h090301" }, { "id": "458547", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=N0atOGWO8kVLxyo0R_iINQTT&type=taobao", "taobao_user_id": "1634839221", "taobao_user_nick": "tb59431991" }, { "id": "454313", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=J35zXB__YFQYM6UX9xj22NTT&type=taobao", "taobao_user_id": "3997048884", "taobao_user_nick": "tb496627432" }, { "id": "458606", "taobao_user_head": "", "taobao_user_id": "3621151251", "taobao_user_nick": "\u94c1\u86cb\u7684\u5c0f\u4e3b\u4e36" }, { "id": "440836", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=HnKSekIpAHhxhD6wGVrGMWTT&type=taobao", "taobao_user_id": "2383652814", "taobao_user_nick": "\u5434\u4fca\u4f1f5329" }, { "id": "439562", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=S_NnH0xmSrspaldEqiqPzNTT&type=taobao", "taobao_user_id": "150994066", "taobao_user_nick": "\u590f\u51ac\u513f2009" }, { "id": "399590", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=-98nVvsuDe1C69PbuH5F7NTT&type=taobao", "taobao_user_id": "2972374313", "taobao_user_nick": "fenglianfeng127" }, { "id": "435728", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=yra3mW81-etONExphvWihNTT&type=taobao", "taobao_user_id": "131028190", "taobao_user_nick": "y2006y2006" }, { "id": "82974", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=0_qHUbLPwhVHHjbSSU7NWgTT&type=taobao", "taobao_user_id": "1702269712", "taobao_user_nick": "\u7c73\u5170\u53c8\u5f00\u4e86" }, { "id": "401805", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=8E2fpmJ91c3fRhAHocG2UQTT&type=taobao", "taobao_user_id": "3210322624", "taobao_user_nick": "xlx920425" }, { "id": "403037", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=lFWGrlErHnVIuxUnf7SpWgTT&type=taobao", "taobao_user_id": "828430710", "taobao_user_nick": "\u4e36\u4e00\u6587\u4e0d\u503c" }, { "id": "452013", "taoba o_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=jPjrjBVQybhYwXkql6JPFQTT&type=taobao", "taobao_user_id": "2780592575", "taobao_user_nick": "tb615483539" }, { "id": "430969", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=3oDYbMP83St1OMLQBxYVlWTT&type=taobao", "taobao_user_id": "4199993732", "taobao_user_nick": "tb012604295" }, { "id": "414412", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=lj_2kYN7z*VFEcFiHkXK5WTT&type=taobao", "taobao_user_id": "2140413425", "taobao_user_nick": "rodden41" }, { "id": "408704", "taobao_user_head": "", "taobao_user_id": "2207241805454", "taobao_user_nick": "tb497589049" }, { "id": "455733", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=w2MZlidQVWbRKspXyZOfZNTT&type=taobao", "taobao_user_id": "1883980323", "taobao_user_nick": "gulmek" }, { "id": "438832", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=8ofeExXX7taQ1rhIRJ6nBWTT&type=taobao", "taobao_user_id": "2940207243", "taobao_user_nick": "t_1478307567020_0" }, { "id": "457169", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=zEcqa-3GwH-bouVkLyKaSWTT&type=taobao", "taobao_user_id": "2207711618030", "taobao_user_nick": "tb120823626" }, { "id": "86291", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userId=2550835154&width=160&height=160&type=sns", "taobao_user_id": "2550835154", "taobao_user_nick": "vae\u8fdd\u7ae0\u52a8\u72691234" }, { "id": "450916", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=sr7CuCGI*Sn3do5nJio2gWTT&type=taobao", "taobao_user_id": "14177570", "taobao_user_nick": "jmlovejm" }, { "id": "456876", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=UyeS0B3r3MU29UfYy2Vc8gTT&type=taobao", "taobao_user_id": "3263806343", "taobao_user_nick": "\u00b7\u4e60\u60ef\u4e86\u4e00\u4e2a\u4eba\u00b7" }, { "id": "444386", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=-hjt0zq*XVejVQLkfdsN4gTT&type=taobao", "taobao_user_id": "856177763", "taobao_user_nick": "\u4e36\u7c89\u956f" }, { "id": "449045", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=Uh5g89d0PZAYcmASncgBPNTT&type=taobao", "taobao_user_id": "3354576875", "taobao_user_nick": "xu199626li" }, { "id": "426738", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userId=4134457099&width=160&height=160&type=sns", "taobao_user_id": "4134457099", "taobao_user_nick": "\u7a7a\u767d\u4e28zero" }, { "id": "444645", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=9L37-juercyoOHusuhtGFNTT&type=taobao", "taobao_user_id": "1812190170", "taobao_user_nick": "\u5185\u5185and\u88e4\u88e4" }, { "id": "16669", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=RBwH5rYIw1N1vj3oz8aeegTT&type=taobao", "taobao_user_id": "2858439832", "taobao_user_nick": "\u963f\u72f8\u662f\u6211\u6781\u4f73" }, { "id": "448114", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=Ko_pxUq6FYvggcS-zaPvNQTT&type=taobao", "taobao_user_id": "2773123470", "taobao_user_nick": "\u4e8c\u53c8\u56db\u5206\u4e4b\u4e09\u4e4b\u540e" }, { "id": "458315", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=GN0lUc*3beZhu7J2isdUSNTT&type=taobao", "taobao_user_id": "176806535", "taobao_user_nick": "mimi6533316" }, { "id": "399084", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=xcuPlKXF8_wMiYELg_lkqQTT&type=taobao", "taobao_user_id": "3403395340", "taobao_user_nick": "\u51ef\u6b4c\u4e36mr" }, { "id": "453392", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=rk30e_N4omyM*YmKQkJX8NTT&type=taobao", "taobao_user_id": "2538049206", "taobao_user_nick": "sjduvg" }, { "id": "365286", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=Ni8L5IqSJzxBgdykYUtR7QTT&type=taobao", "taobao_user_id": "4192836372", "taobao_user_nick": "tb616747197" }, { "id": "398947", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=ZcRp*2VwIgUeinIEaFLEgQTT&type=taobao", "taobao_user_id": "839920782", "taobao_user_nick": "tb6542575_2012" }, { "id": "421861", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userId=1651857025&width=160&height=160&type=sns", "taobao_user_id": "1651857025", "taobao_user_nick": "\u674e\u632f\u4e1c\u674e\u632f\u4e1c\u674e\u632f\u4e1c" }, { "id": "436258", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=ZXJJJIMiNmSE7k5YJCojzgTT&type=taobao", "taobao_user_id": "2200741351053", "taobao_user_nick": "tb009331328" }, { "id": "439150", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=0F13JzZ3rBPV2UDHucLjzQTT&type=taobao", "taobao_user_id": "2850086915", "taobao_user_nick": "\u751c\u59ae524" }, { "id": "409196", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=N8X8q8aKMqA0AMDOz0SfINTT&type=taobao", "taobao_user_id": "2745505115", "taobao_user_nick": "\u767d\u70e8\u767d" }, { "id": "412741", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=Qgu7sLXsA4O_hGt-WFEbzgTT&type=taobao", "taobao_user_id": "834275958", "taobao_user_nick": "tb5352145_2012" }, { "id": "424931", "taobao_user_head": "", "taobao_user_id": "4007901758", "taobao_user_nick": "tb635427425" }, { "id": "435050", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=UNxr3zmH6gW0R2bi29uNfgTT&type=taobao", "taobao_user_id": "2726364760", "taobao_user_nick": "\u5e05\u76c80719" }, { "id": "441126", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=CaJdXp4*Ysam9ZxSVGWjKNTT&type=taobao", "taobao_user_id": "2958566300", "taobao_user_nick": "\u8377\u82b1\u76f8\u5370" }, { "id": "445904", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=QK11jtfQsn0x*BSOt_V-3gTT&type=taobao", "taobao_user_id": "70942806", "taobao_user_nick": "\u9ed1\u51b0719" }, { "id": "441409", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=CINfdeu8i1ch6O_O4ziH3WTT&type=taobao", "taobao_user_id": "2201248880350", "taobao_user_nick": "tb359595855" }, { "id": "444279", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=8qIIdxh5w*DIqe3HCRpb7NTT&type=taobao", "taobao_user_id": "2320103652", "taobao_user_nick": "\u6211\u4eec\u9677\u5165\u4e86\u8fd9\u4efd\u7231" }, { "id": "410108", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=wcHM5CF0xlS7HM3_AjV_BgTT&type=taobao", "taobao_user_id": "1662031948", "taobao_user_nick": "\u739b\u4e3d\u4eba\u5996\u5927\u59d0" }, { "id": "453397", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=9Xsi8aSmUSyOORFQmwNaVNTT&type=taobao", "taobao_user_id": "3994956979", "taobao_user_nick": "tb094673957" }, { "id": "424210", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userId=1574826963&width=160&height=160&type=sns", "taobao_user_id": "1574826963", "taobao_user_nick": "\u6c83\u987e\u51cc\u6d9b\u83ab\u53ef\u80fd" }, { "id": "427847", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=kcqy6rDx07rIViSgWA2L8gTT&type=taobao", "taobao_user_id": "3997401521", "taobao_user_nick": "tb763550394" }, { "id": "421410", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userId=3407045065&width=160&height=160&type=sns", "taobao_user_id": "3407045065", "taobao_user_nick": "\u6e29\u67d4\u6167y" }, { "id": "420978", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userId=3840684921&width=160&height=160&type=sns", "taobao_user_id": "3840684921", "taobao_user_nick": "tb183392729" }, { "id": "424941", "taobao_user_head": "", "taobao_user_id": "3447721385", "taobao_user_nick": "tb492855670" }, { "id": "441690", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=l9NdPnd*jSuMaAspxpHNKgTT&type=taobao", "taobao_user_id": "3369245093", "taobao_user_nick": "v\u54c8\u54c8vgrg" }, { "id": "460043", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=acCb*hAe_DVS30pzsZUtRgTT&type=taobao", "taobao_user_id": "2761704725", "taobao_user_nick": "\u4e70\u4e70\u4e70\u5e78\u798f88664400" }, { "id": "435908", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=GI5gg3goB7QpROUpp3wp6WTT&type=taobao", "taobao_user_id": "2787963808", "taobao_user_nick": "t_1480478168036_0688" }, { "id": "452811", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=AX4zUb0OJAbv3RGh5hu5QQTT&type=taobao", "taobao_user_id": "685441794", "taobao_user_nick": "\u8087\u5e86jrxy" }, { "id": "449368", "taobao_user_head": "https:\/\/wwc.alicdn.com\/avatar\/getAvatar.do?userIdStrV2=rvvYwSGBdD1J2nEtIhumANTT&type=taobao", "taobao_user_id": "1078049038", "taobao_user_nick": "cathylu1213" }];
if (goodsBuyHistoryData && goodsBuyHistoryData.length && goodsBuyHistoryData.length > 0) {
var transBox = $('.galaxy-trans-box'),
transList = $('.galaxy-trans-list'),
transItems = '';
transBox.css({ width: '265px' });
goodsBuyHistoryData.forEach(function (item) {
var defaultAvatar = 'https://wwc.alicdn.com/avatar/getAvatar.do?userIdStrV2=_VtZemsGruqedfYg*qD2-gTT&type=taobao';
var avatar = item.taobao_user_head ? item.taobao_user_head : defaultAvatar;
transItems += '<div class="galaxy-trans-item flex-row">' +
' <img src="' + avatar + '" alt="avatar">' +
' <span class="text-ellipsis">' + item.taobao_user_nick.slice(0, 2) + '**' + item.taobao_user_nick.slice(-1) + ' 过去' + parseInt((Math.random(1, 30) * 31), 10) + '分钟刚领券购买了这个商品~</span>' +
'</div>'
});
transList.append(transItems);
var transLength = goodsBuyHistoryData.length;
var element = document.querySelector('.galaxy-trans-list');
var start = 0;
function trans() {
if (!transList) return;
transList.css({ transform: 'translate3d(0, -' + start * 30 + 'px, 0)' })
start++;
if (start === goodsBuyHistoryData.length) {
start = 0;
}
}
if (int) {
var int = window.clearInterval("int")
}
var int = window.setInterval("trans()", 1500)
}
$('.galaxy-product-unfold').click(function () {
$(this).toggleClass('galaxy-product-collapse');
if ($(this).hasClass('galaxy-product-collapse')) {
$(this).find('span').text('收起');
$('.galaxy-product-content').addClass('galaxy-product-content-collapse')
} else {
$(this).find('span').text('展开');
$('.galaxy-product-content').removeClass('galaxy-product-content-collapse')
}
})
</script>
</html>