Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
501 additions
and
0 deletions
docs/data-structure.md
0 → 100644
1 | +# 页面数据结构说明 | ||
2 | + | ||
3 | +## 通用 | ||
4 | + | ||
5 | +### 商品信息 | ||
6 | + | ||
7 | + { | ||
8 | + id: 1, | ||
9 | + thumb: 'path/to/goods/img', | ||
10 | + url: '', | ||
11 | + name: '', | ||
12 | + salePrice: 500, | ||
13 | + price: 1000, | ||
14 | + tags: [ | ||
15 | + { | ||
16 | + isNew: true //NEW | ||
17 | + }, | ||
18 | + { | ||
19 | + isSale: true //SALE | ||
20 | + }, | ||
21 | + { | ||
22 | + isLimit: false //限量商品 | ||
23 | + }, | ||
24 | + { | ||
25 | + isNewFestival: false //新品节 | ||
26 | + }, | ||
27 | + { | ||
28 | + isReNew: true //再到着 | ||
29 | + }, | ||
30 | + { | ||
31 | + isYearEndPromotion: true //年终大促 | ||
32 | + }, | ||
33 | + { | ||
34 | + isYearMidPromotion: false //年中热促 | ||
35 | + } | ||
36 | + ], | ||
37 | + isFew: true, //即将售罄 | ||
38 | + isLike: false, //是否显示收藏 | ||
39 | + likeUrl: '' //收藏的URL | ||
40 | + } | ||
41 | + | ||
42 | +### 侧栏导航 | ||
43 | + | ||
44 | + { | ||
45 | + sideNav:[ | ||
46 | + { | ||
47 | + textCn: '', | ||
48 | + textEn: '', | ||
49 | + styleClass: 'boys', //boys,girls,kids,life,new,guang | ||
50 | + url: '', | ||
51 | + //子菜单 | ||
52 | + subNav: { | ||
53 | + list: [ | ||
54 | + { | ||
55 | + textCn: '', | ||
56 | + textEn: '', | ||
57 | + back: true/false, | ||
58 | + isSelect: true/false, | ||
59 | + url: '' | ||
60 | + }, | ||
61 | + ... | ||
62 | + ] | ||
63 | + } | ||
64 | + }, | ||
65 | + ... | ||
66 | + ] | ||
67 | + } | ||
68 | + | ||
69 | +### 站点头部和尾部 | ||
70 | + | ||
71 | + { | ||
72 | + headerDownload: { | ||
73 | + img: '', | ||
74 | + url: '' | ||
75 | + }, | ||
76 | + homeHeader: { | ||
77 | + bgColor: '', | ||
78 | + searchUrl: '' | ||
79 | + }, | ||
80 | + footer: { | ||
81 | + //--已登录-- | ||
82 | + user: { | ||
83 | + name: '', | ||
84 | + url: '', | ||
85 | + signoutUrl: '' | ||
86 | + } | ||
87 | + //--未登录-- | ||
88 | + // loginUrl: '', | ||
89 | + // signupUrl: '' | ||
90 | + } | ||
91 | + } | ||
92 | + | ||
93 | +## 首页 | ||
94 | + | ||
95 | + { | ||
96 | + content: [ | ||
97 | + //banner | ||
98 | + { | ||
99 | + banner: { | ||
100 | + list: [ | ||
101 | + { | ||
102 | + url: '', | ||
103 | + img: '' | ||
104 | + }, | ||
105 | + ... | ||
106 | + ] | ||
107 | + } | ||
108 | + }, | ||
109 | + //图标入口 | ||
110 | + { | ||
111 | + iconsEnter: { | ||
112 | + list: [ | ||
113 | + { | ||
114 | + url: '', | ||
115 | + img: '', | ||
116 | + text: '' | ||
117 | + }, | ||
118 | + ... | ||
119 | + ] | ||
120 | + } | ||
121 | + }, | ||
122 | + //热门分类 | ||
123 | + { | ||
124 | + hotCategory: { | ||
125 | + img: '', | ||
126 | + url: '', | ||
127 | + list: [ | ||
128 | + { | ||
129 | + img: '', | ||
130 | + url: '', | ||
131 | + textCn: '' | ||
132 | + }, | ||
133 | + ... | ||
134 | + ] | ||
135 | + } | ||
136 | + }, | ||
137 | + //热门品牌 | ||
138 | + { | ||
139 | + hotBrands: { | ||
140 | + img: '', | ||
141 | + url: '', | ||
142 | + list: [ | ||
143 | + { | ||
144 | + name: '', | ||
145 | + img: '', | ||
146 | + url: '' | ||
147 | + }, | ||
148 | + ... | ||
149 | + ] | ||
150 | + } | ||
151 | + }, | ||
152 | + //搭配 | ||
153 | + colloaction: { | ||
154 | + name: '潮人 ▪ 搭配', | ||
155 | + more: '', | ||
156 | + imgs: [ | ||
157 | + { | ||
158 | + img: '', | ||
159 | + url: '' | ||
160 | + }, | ||
161 | + ... | ||
162 | + ], | ||
163 | + recos: [ | ||
164 | + { | ||
165 | + img: '', | ||
166 | + url: '' | ||
167 | + }, | ||
168 | + ... | ||
169 | + ] | ||
170 | + }, | ||
171 | + //话题 | ||
172 | + topic: { | ||
173 | + name: '潮品 ▪ 话题', | ||
174 | + more: '', | ||
175 | + list: [ | ||
176 | + { | ||
177 | + url: '', | ||
178 | + img: '', | ||
179 | + title: '', | ||
180 | + time: '' | ||
181 | + }, | ||
182 | + ... | ||
183 | + ] | ||
184 | + }, | ||
185 | + //商品分类Block | ||
186 | + goodsCategory: { | ||
187 | + name: '经典裤装', | ||
188 | + more: '', | ||
189 | + banner: { | ||
190 | + list: [ | ||
191 | + { | ||
192 | + img: '', | ||
193 | + url: '' | ||
194 | + }, | ||
195 | + ... | ||
196 | + ] | ||
197 | + }, | ||
198 | + //TODO:与创意生活BLOCK的区别就是下面图片一个是5张一个是6张,是否可以合并成到此处 | ||
199 | + list: [ | ||
200 | + { | ||
201 | + img: '', | ||
202 | + url: '', | ||
203 | + textCn: '' | ||
204 | + }, | ||
205 | + ... | ||
206 | + ] | ||
207 | + }, | ||
208 | + //plus+Satr | ||
209 | + { | ||
210 | + plusStar: { | ||
211 | + name: '', | ||
212 | + url: '', | ||
213 | + img: '' | ||
214 | + } | ||
215 | + }, | ||
216 | + //你可能喜欢 | ||
217 | + { | ||
218 | + goods: [ | ||
219 | + {...}, //商品信息 | ||
220 | + ... | ||
221 | + ] | ||
222 | + } | ||
223 | + ] | ||
224 | + } | ||
225 | + | ||
226 | +## 逛 | ||
227 | +### 标签(公用) | ||
228 | + | ||
229 | + { | ||
230 | + id: 1, | ||
231 | + classification: '', | ||
232 | + img: '', | ||
233 | + url: '', | ||
234 | + title: '', | ||
235 | + text: '', | ||
236 | + publishTime: '', | ||
237 | + pageView: '', | ||
238 | + like: { | ||
239 | + isLiked: true | ||
240 | + }, | ||
241 | + share: false, | ||
242 | + isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic | ||
243 | + author: { | ||
244 | + id: '', | ||
245 | + avatar: '', | ||
246 | + name: '' | ||
247 | + } | ||
248 | + | ||
249 | + } | ||
250 | +### 逛首页 | ||
251 | + | ||
252 | + { | ||
253 | + title: '', | ||
254 | + banner: [ | ||
255 | + { | ||
256 | + url: '', | ||
257 | + img: '' | ||
258 | + }, | ||
259 | + ... | ||
260 | + ], | ||
261 | + navs: [ | ||
262 | + { | ||
263 | + typeId: 1, | ||
264 | + type: '最新', | ||
265 | + url: '' | ||
266 | + }, | ||
267 | + ... | ||
268 | + ], | ||
269 | + msgs: [ | ||
270 | + {...}, //标签 | ||
271 | + ... | ||
272 | + ] | ||
273 | + } | ||
274 | + | ||
275 | +### 逛列表页 | ||
276 | + | ||
277 | + { | ||
278 | + content: [ | ||
279 | + {...}, //标签 | ||
280 | + ... | ||
281 | + ] | ||
282 | + } | ||
283 | + | ||
284 | +### 编辑页 | ||
285 | + | ||
286 | + { | ||
287 | + author: { | ||
288 | + id: 1, | ||
289 | + avatar: '', | ||
290 | + name: '', | ||
291 | + info: '' | ||
292 | + }, | ||
293 | + content: [ | ||
294 | + {...}, //标签 | ||
295 | + ... | ||
296 | + ] | ||
297 | + } | ||
298 | + | ||
299 | +### 逛详情页 | ||
300 | + | ||
301 | + { | ||
302 | + id: '', | ||
303 | + author: { | ||
304 | + avatar: '', | ||
305 | + name: '', | ||
306 | + intro: '', | ||
307 | + url: '' | ||
308 | + }, | ||
309 | + article: { | ||
310 | + title: '', | ||
311 | + publishTime: '', | ||
312 | + pageView: 3445, | ||
313 | + content: [ | ||
314 | + { | ||
315 | + text: { | ||
316 | + deps: '' | ||
317 | + } | ||
318 | + }, | ||
319 | + { | ||
320 | + bigImage: { | ||
321 | + src: '' | ||
322 | + } | ||
323 | + }, | ||
324 | + { | ||
325 | + smallImage: { | ||
326 | + imgs: [ | ||
327 | + { | ||
328 | + src: '' | ||
329 | + }, | ||
330 | + { | ||
331 | + src: '' | ||
332 | + } | ||
333 | + ] | ||
334 | + } | ||
335 | + }, | ||
336 | + { | ||
337 | + recommendation: { | ||
338 | + list: [ | ||
339 | + {...}, //商品信息 | ||
340 | + ... | ||
341 | + ] | ||
342 | + } | ||
343 | + }, | ||
344 | + { | ||
345 | + collocation: { | ||
346 | + list: [ | ||
347 | + { | ||
348 | + thumb: '', | ||
349 | + type: 'pants', | ||
350 | + products: [ | ||
351 | + {...}, //商品信息 | ||
352 | + ... | ||
353 | + ] | ||
354 | + }, | ||
355 | + ... | ||
356 | + ] | ||
357 | + } | ||
358 | + } | ||
359 | + ] | ||
360 | + }, | ||
361 | + relatedBrands: { | ||
362 | + list: [ | ||
363 | + { | ||
364 | + thumb: '', | ||
365 | + name: '', | ||
366 | + url: '' | ||
367 | + }, | ||
368 | + ... | ||
369 | + ] | ||
370 | + }, | ||
371 | + tags: { | ||
372 | + list: [ | ||
373 | + { | ||
374 | + name: '', | ||
375 | + url: '' | ||
376 | + }, | ||
377 | + ... | ||
378 | + ] | ||
379 | + }, | ||
380 | + relatedArticles: [ | ||
381 | + { | ||
382 | + thumb: '', | ||
383 | + title: '', | ||
384 | + url: '', | ||
385 | + publishTime: '' | ||
386 | + }, | ||
387 | + ... | ||
388 | + ] | ||
389 | + } | ||
390 | + | ||
391 | +### PLUS+STAR | ||
392 | + | ||
393 | + { | ||
394 | + id: 1, | ||
395 | + banner: '', | ||
396 | + log: '', | ||
397 | + name: '', | ||
398 | + isLike: '', | ||
399 | + likeUrl: '', | ||
400 | + intro: '', | ||
401 | + newArrival: { | ||
402 | + moreUrl: '', | ||
403 | + naList: [ | ||
404 | + {...}, //商品信息 | ||
405 | + ... | ||
406 | + ] | ||
407 | + }, | ||
408 | + article: { | ||
409 | + info: [ | ||
410 | + {...}, //标签 | ||
411 | + ... | ||
412 | + ] | ||
413 | + } | ||
414 | + } | ||
415 | + | ||
416 | +### 模板页 | ||
417 | + | ||
418 | + { | ||
419 | + content: [ | ||
420 | + { | ||
421 | + img: { | ||
422 | + src: '', | ||
423 | + url: '' | ||
424 | + } | ||
425 | + }, | ||
426 | + { | ||
427 | + text: '' | ||
428 | + }, | ||
429 | + { | ||
430 | + recommendation: { | ||
431 | + recos: [ | ||
432 | + {...}, //商品信息 | ||
433 | + ... | ||
434 | + ] | ||
435 | + } | ||
436 | + }, | ||
437 | + { | ||
438 | + brands: { | ||
439 | + list: [ | ||
440 | + { | ||
441 | + thumb: '', | ||
442 | + name: '', | ||
443 | + url: '' | ||
444 | + }, | ||
445 | + ... | ||
446 | + ] | ||
447 | + } | ||
448 | + }, | ||
449 | + { | ||
450 | + goods: { | ||
451 | + classify: [ | ||
452 | + { | ||
453 | + type: 'brand', | ||
454 | + name: '品牌' | ||
455 | + }, | ||
456 | + ... | ||
457 | + ], | ||
458 | + newPatterns: [ | ||
459 | + {...}, //商品信息 | ||
460 | + ... | ||
461 | + ] | ||
462 | + } | ||
463 | + } | ||
464 | + ] | ||
465 | + } | ||
466 | + | ||
467 | +## SALE | ||
468 | + | ||
469 | + { | ||
470 | + headerBanner: { | ||
471 | + list: [ | ||
472 | + { | ||
473 | + url: '', | ||
474 | + img: '' | ||
475 | + }, | ||
476 | + ... | ||
477 | + ] | ||
478 | + }, | ||
479 | + saleSection: { | ||
480 | + list: [ | ||
481 | + { | ||
482 | + img: '', | ||
483 | + url: '' | ||
484 | + }, | ||
485 | + ... | ||
486 | + ] | ||
487 | + }, | ||
488 | + goodsContainer: { | ||
489 | + name: '最新降价', | ||
490 | + goodsNav: { | ||
491 | + newPatterns: true, | ||
492 | + price: true, | ||
493 | + salesVolume: true, | ||
494 | + screen: true | ||
495 | + }, | ||
496 | + goods: [ | ||
497 | + {...}, //商品信息 | ||
498 | + ... | ||
499 | + ] | ||
500 | + } | ||
501 | + } |
-
Please register or login to post a comment