Showing
19 changed files
with
2268 additions
and
2 deletions
@@ -12,6 +12,7 @@ var app = express(); | @@ -12,6 +12,7 @@ var app = express(); | ||
12 | 12 | ||
13 | // set view engin | 13 | // set view engin |
14 | var doraemon = path.join(__dirname, '../../doraemon/views'); // parent view root | 14 | var doraemon = path.join(__dirname, '../../doraemon/views'); // parent view root |
15 | +var partials = path.join(__dirname, './views'); // parent view root | ||
15 | 16 | ||
16 | app.on('mount', function(parent) { | 17 | app.on('mount', function(parent) { |
17 | delete parent.locals.settings; // 不继承父 App 的设置 | 18 | delete parent.locals.settings; // 不继承父 App 的设置 |
@@ -23,7 +24,7 @@ app.engine('.hbs', hbs({ | @@ -23,7 +24,7 @@ app.engine('.hbs', hbs({ | ||
23 | extname: '.hbs', | 24 | extname: '.hbs', |
24 | defaultLayout: 'layout', | 25 | defaultLayout: 'layout', |
25 | layoutsDir: doraemon, | 26 | layoutsDir: doraemon, |
26 | - partialsDir: ['./views/partial', `${doraemon}/partial`], | 27 | + partialsDir: [`${partials}/partials`, `${doraemon}/partial`], |
27 | helpers: 'helpers' | 28 | helpers: 'helpers' |
28 | })); | 29 | })); |
29 | 30 |
apps/channel/views/partials/commodity.hbs
0 → 100644
apps/channel/views/partials/floor-header.hbs
0 → 100644
public/img/index/brands-layer.png
0 → 100644

2.43 KB
public/img/index/logo-brand-line.png
0 → 100644

2.27 KB
public/img/index/mars.png
0 → 100644

17.8 KB
public/img/index/play.png
0 → 100644

1.55 KB
public/img/index/qr-app.png
0 → 100644

30.2 KB
public/img/index/qr-weibo.png
0 → 100644

328 KB
public/img/index/qr-weixin.png
0 → 100644

201 KB
public/img/index/show.png
0 → 100644

26.6 KB
public/img/index/yoho.png
0 → 100644

11.4 KB
public/scss/index/_brand.css
0 → 100644
1 | +.brands { | ||
2 | + /* 路径导航样式重置 */ | ||
3 | + .path-nav { | ||
4 | + border-bottom: none; | ||
5 | + margin-bottom: 0; | ||
6 | + padding-top: 10px; | ||
7 | + padding-bottom: 20px; | ||
8 | + } | ||
9 | + | ||
10 | + .brands-tabs { | ||
11 | + position: relative; | ||
12 | + a { | ||
13 | + display: block; | ||
14 | + img { | ||
15 | + width: 100%; | ||
16 | + height: 100%; | ||
17 | + display: block; | ||
18 | + } | ||
19 | + } | ||
20 | + li { | ||
21 | + float: left; | ||
22 | + p { | ||
23 | + display: block; | ||
24 | + font-size: 30px; | ||
25 | + text-align: center; | ||
26 | + color: #dedede; | ||
27 | + position: absolute; | ||
28 | + top: 50%; | ||
29 | + width: 100%; | ||
30 | + margin-top: -15px; | ||
31 | + z-index: 3; | ||
32 | + } | ||
33 | + .g-mask { | ||
34 | + opacity: 0.4; | ||
35 | + } | ||
36 | + &:hover .g-mask, | ||
37 | + .g-mask-on { | ||
38 | + opacity: 0; | ||
39 | + } | ||
40 | + } | ||
41 | + .hover-contain { | ||
42 | + position: relative; | ||
43 | + border-bottom: 1px solid #dfdfdf; | ||
44 | + .hoverarr { | ||
45 | + background-color: #3d3d3d; | ||
46 | + position: absolute; | ||
47 | + bottom: 0; | ||
48 | + z-index: 10; | ||
49 | + i { | ||
50 | + width: 0; | ||
51 | + height: 0; | ||
52 | + position: absolute; | ||
53 | + left: 50%; | ||
54 | + border-left: 6px solid transparent; | ||
55 | + border-right: 6px solid transparent; | ||
56 | + border-bottom: 6px solid #3d3d3d; | ||
57 | + top: -6px; | ||
58 | + margin-left: -3px; | ||
59 | + } | ||
60 | + } | ||
61 | + } | ||
62 | + } | ||
63 | + .header-navs { | ||
64 | + margin-right: -15px; | ||
65 | + } | ||
66 | + .category-nav { | ||
67 | + border: 2px solid #222; | ||
68 | + padding-left: 16px; | ||
69 | + height: 44px; | ||
70 | + line-height: 44px; | ||
71 | + font-size: 12px; | ||
72 | + font-weight: bold; | ||
73 | + position: relative; | ||
74 | + z-index: 100; | ||
75 | + background-color: #fff; | ||
76 | + span { | ||
77 | + display: inline-block; | ||
78 | + margin-right: 15px; | ||
79 | + } | ||
80 | + a { | ||
81 | + display: inline-block; | ||
82 | + padding: 0 7px; | ||
83 | + text-align: center; | ||
84 | + color: #222; | ||
85 | + cursor: pointer; | ||
86 | + } | ||
87 | + } | ||
88 | + .category-fix { | ||
89 | + position: fixed; | ||
90 | + top: 0; | ||
91 | + z-index: 100; | ||
92 | + margin-top: 0 !important; | ||
93 | + } | ||
94 | + .brands-list { | ||
95 | + dl { | ||
96 | + position: relative; | ||
97 | + border-top: 1px dotted #999; | ||
98 | + padding: 20px 0; | ||
99 | + } | ||
100 | + dt { | ||
101 | + position: absolute; | ||
102 | + width: 130px; | ||
103 | + text-align: center; | ||
104 | + font-weight: bold; | ||
105 | + font-size: 16px; | ||
106 | + text-align: center; | ||
107 | + top: 50%; | ||
108 | + margin-top: -9px; | ||
109 | + } | ||
110 | + dd { | ||
111 | + margin-left: 130px; | ||
112 | + li { | ||
113 | + float: left; | ||
114 | + display: block; | ||
115 | + width: 170px; | ||
116 | + height: 18px; | ||
117 | + } | ||
118 | + a { | ||
119 | + color: #666; | ||
120 | + line-height: 18px; | ||
121 | + font-size: 12px; | ||
122 | + position: relative; | ||
123 | + } | ||
124 | + span { | ||
125 | + max-width: 150px; | ||
126 | + overflow: hidden; | ||
127 | + text-overflow: ellipsis; | ||
128 | + white-space: nowrap; | ||
129 | + display: inline-block; | ||
130 | + &:hover { | ||
131 | + text-decoration: underline; | ||
132 | + } | ||
133 | + } | ||
134 | + .brands-dialog { | ||
135 | + display: inline; | ||
136 | + position: relative; | ||
137 | + } | ||
138 | + .hot { | ||
139 | + font-weight: bold; | ||
140 | + color: #222; | ||
141 | + } | ||
142 | + i { | ||
143 | + position: relative; | ||
144 | + top: -4px; | ||
145 | + color: #e01; | ||
146 | + font-size: 14px; | ||
147 | + } | ||
148 | + } | ||
149 | + } | ||
150 | + | ||
151 | + .brands-category { | ||
152 | + width: 1150px; | ||
153 | + } | ||
154 | + | ||
155 | + .brands-tabs { | ||
156 | + width: 100%; | ||
157 | + li { | ||
158 | + margin-left: 10px; | ||
159 | + a { | ||
160 | + position: relative; | ||
161 | + width: 222px; | ||
162 | + height: 180px; | ||
163 | + } | ||
164 | + } | ||
165 | + li:first-child { | ||
166 | + margin-left: 0; | ||
167 | + } | ||
168 | + .hover-contain { | ||
169 | + height: 30px; | ||
170 | + | ||
171 | + .hoverarr { | ||
172 | + height: 5px; | ||
173 | + width: 222px; | ||
174 | + } | ||
175 | + } | ||
176 | + } | ||
177 | + | ||
178 | + .brands-ad, | ||
179 | + .brands-logo { | ||
180 | + margin: 20px 0; | ||
181 | + } | ||
182 | + | ||
183 | + .brands-ad li { | ||
184 | + float: left; | ||
185 | + margin-left: 10px; | ||
186 | + | ||
187 | + img { | ||
188 | + display: block; | ||
189 | + width: 280px; | ||
190 | + height: 280px; | ||
191 | + } | ||
192 | + | ||
193 | + &:first-child { | ||
194 | + margin-left: 0; | ||
195 | + | ||
196 | + img { | ||
197 | + width: 570px; | ||
198 | + } | ||
199 | + } | ||
200 | + } | ||
201 | + | ||
202 | + .brands-logo a { | ||
203 | + float: left; | ||
204 | + margin-left: 26px; | ||
205 | + | ||
206 | + &:first-child { | ||
207 | + margin-left: 0; | ||
208 | + } | ||
209 | + | ||
210 | + img { | ||
211 | + display: block; | ||
212 | + width: 91px; | ||
213 | + height: 38px; | ||
214 | + } | ||
215 | + } | ||
216 | + | ||
217 | + .list-floor { | ||
218 | + width: 1160px; | ||
219 | + } | ||
220 | + | ||
221 | + .brandfloor { | ||
222 | + .g-list { | ||
223 | + margin-top: -32px; | ||
224 | + } | ||
225 | + li { | ||
226 | + margin-right: 8px; | ||
227 | + margin-top: 32px; | ||
228 | + a { | ||
229 | + width: 378px; | ||
230 | + height: 250px; | ||
231 | + } | ||
232 | + } | ||
233 | + } | ||
234 | + .singlegoods { | ||
235 | + .g-list { | ||
236 | + margin-top: -10px; | ||
237 | + } | ||
238 | + li { | ||
239 | + margin-right: 10px; | ||
240 | + margin-top: 10px; | ||
241 | + a { | ||
242 | + width: 280px; | ||
243 | + height: 374px; | ||
244 | + } | ||
245 | + } | ||
246 | + .singlegoods-title { | ||
247 | + position: absolute; | ||
248 | + left: 0; | ||
249 | + bottom: 0; | ||
250 | + height: 50px; | ||
251 | + width: 100%; | ||
252 | + p { | ||
253 | + position: absolute; | ||
254 | + z-index: 2; | ||
255 | + top: 0; | ||
256 | + left: 0; | ||
257 | + display: block; | ||
258 | + width: 100%; | ||
259 | + height: 100%; | ||
260 | + line-height: 50px; | ||
261 | + font-size: 18px; | ||
262 | + text-align: center; | ||
263 | + color: #fff; | ||
264 | + } | ||
265 | + } | ||
266 | + } | ||
267 | + .video { | ||
268 | + .g-list { | ||
269 | + margin-top: -10px; | ||
270 | + } | ||
271 | + li { | ||
272 | + margin-right: 8px; | ||
273 | + margin-top: 10px; | ||
274 | + a { | ||
275 | + width: 378px; | ||
276 | + height: 242px; | ||
277 | + } | ||
278 | + } | ||
279 | + .video-play { | ||
280 | + display: block; | ||
281 | + position: absolute; | ||
282 | + left: 50%; | ||
283 | + top: 50%; | ||
284 | + margin-left: -30px; | ||
285 | + margin-top: -28px; | ||
286 | + width: 60px; | ||
287 | + height: 56px; | ||
288 | + background-image: resolve(img/index/play.png); | ||
289 | + } | ||
290 | + .video-title { | ||
291 | + position: absolute; | ||
292 | + left: 0; | ||
293 | + bottom: 0; | ||
294 | + height: 32px; | ||
295 | + width: 100%; | ||
296 | + p { | ||
297 | + position: absolute; | ||
298 | + z-index: 2; | ||
299 | + top: 0; | ||
300 | + left: 0; | ||
301 | + display: block; | ||
302 | + width: 100%; | ||
303 | + height: 100%; | ||
304 | + font-size: 14px; | ||
305 | + line-height: 32px; | ||
306 | + text-align: center; | ||
307 | + color: #fff; | ||
308 | + } | ||
309 | + } | ||
310 | + } | ||
311 | + .news { | ||
312 | + margin-bottom: 40px; | ||
313 | + .news-pic { | ||
314 | + position: relative; | ||
315 | + float: left; | ||
316 | + width: 764px; | ||
317 | + height: 436px; | ||
318 | + .slide-container { | ||
319 | + height: 100%; | ||
320 | + li a { | ||
321 | + height: 100%; | ||
322 | + width: 764px; | ||
323 | + } | ||
324 | + | ||
325 | + .slide-wrapper { | ||
326 | + height: 100%; | ||
327 | + } | ||
328 | + .slide-switch { | ||
329 | + display: none; | ||
330 | + } | ||
331 | + .prev { | ||
332 | + left: 0; | ||
333 | + margin-left: 0; | ||
334 | + } | ||
335 | + .next { | ||
336 | + right: 0; | ||
337 | + margin-right: 0; | ||
338 | + } | ||
339 | + .slide-switch.show { | ||
340 | + display: block; | ||
341 | + } | ||
342 | + } | ||
343 | + .slide-tips { | ||
344 | + position: absolute; | ||
345 | + left: 0; | ||
346 | + bottom: 0; | ||
347 | + height: 30px; | ||
348 | + width: 100%; | ||
349 | + background: #000; | ||
350 | + opacity: 0.8; | ||
351 | + | ||
352 | + p { | ||
353 | + position: absolute; | ||
354 | + left: 18px; | ||
355 | + z-index: 2; | ||
356 | + height: 30px; | ||
357 | + font-size: 14px; | ||
358 | + line-height: 30px; | ||
359 | + color: #fff; | ||
360 | + } | ||
361 | + } | ||
362 | + .slide-pagination { | ||
363 | + right: 0; | ||
364 | + left: auto; | ||
365 | + bottom: 0; | ||
366 | + .slide-shade { | ||
367 | + opacity: 0; | ||
368 | + background: none; | ||
369 | + } | ||
370 | + span { | ||
371 | + margin-top: 3px; | ||
372 | + } | ||
373 | + } | ||
374 | + } | ||
375 | + .news-txt { | ||
376 | + float: right; | ||
377 | + padding: 20px 16px; | ||
378 | + float: right; | ||
379 | + border: 1px solid #000; | ||
380 | + overflow: hidden; | ||
381 | + ul { | ||
382 | + height: 100%; | ||
383 | + } | ||
384 | + li { | ||
385 | + position: relative; | ||
386 | + display: block; | ||
387 | + margin-bottom: 10px; | ||
388 | + margin-left: 20px; | ||
389 | + } | ||
390 | + a { | ||
391 | + font-size: 14px; | ||
392 | + line-height: 27px; | ||
393 | + cursor: pointer; | ||
394 | + color: #010101; | ||
395 | + display: block; | ||
396 | + &:hover { | ||
397 | + color: #fff; | ||
398 | + background: #000; | ||
399 | + padding-left: 12px; | ||
400 | + transition: padding 0.4s; | ||
401 | + } | ||
402 | + } | ||
403 | + i { | ||
404 | + position: absolute; | ||
405 | + top: 0; | ||
406 | + left: -26px; | ||
407 | + font-size: 22px; | ||
408 | + } | ||
409 | + } | ||
410 | + .news-txt { | ||
411 | + width: 342px; | ||
412 | + height: 394px; | ||
413 | + } | ||
414 | + } | ||
415 | + | ||
416 | + .ads { | ||
417 | + margin: 40px 0; | ||
418 | + | ||
419 | + li { | ||
420 | + margin-right: 10px; | ||
421 | + margin-bottom: 10px; | ||
422 | + a { | ||
423 | + width: 280px; | ||
424 | + img { | ||
425 | + height: 160px; | ||
426 | + } | ||
427 | + } | ||
428 | + .name { | ||
429 | + font-size: 14px; | ||
430 | + } | ||
431 | + .des { | ||
432 | + font-size: 12px; | ||
433 | + } | ||
434 | + } | ||
435 | + } | ||
436 | + | ||
437 | + .brands-items { | ||
438 | + margin: 25px auto; | ||
439 | + .brands-item { | ||
440 | + float: left; | ||
441 | + padding: 15px 0; | ||
442 | + width: 50%; | ||
443 | + } | ||
444 | + a.brands-pic { | ||
445 | + float: left; | ||
446 | + width: 280px; | ||
447 | + height: 136px; | ||
448 | + display: block; | ||
449 | + img { | ||
450 | + width: 100%; | ||
451 | + height: 100%; | ||
452 | + } | ||
453 | + } | ||
454 | + .brand-info { | ||
455 | + float: right; | ||
456 | + padding: 0 20px; | ||
457 | + width: 255px; | ||
458 | + color: #000; | ||
459 | + h3 { | ||
460 | + width: 100%; | ||
461 | + font-size: 20px; | ||
462 | + line-height: 1; | ||
463 | + | ||
464 | + @mixin ellipsis; | ||
465 | + } | ||
466 | + .brand-desc { | ||
467 | + padding: 12px 0; | ||
468 | + height: 92px; | ||
469 | + font-size: 14px; | ||
470 | + line-height: 22px; | ||
471 | + overflow: hidden; | ||
472 | + } | ||
473 | + } | ||
474 | + } | ||
475 | + .pagination { | ||
476 | + margin: 40px 0 80px; | ||
477 | + text-align: center; | ||
478 | + a { | ||
479 | + height: 24px; | ||
480 | + padding: 0 9px; | ||
481 | + line-height: 24px; | ||
482 | + display: inline-block; | ||
483 | + text-align: center; | ||
484 | + margin-right: 8px; | ||
485 | + color: #222; | ||
486 | + font-size: 12px; | ||
487 | + i { | ||
488 | + position: relative; | ||
489 | + top: -1px; | ||
490 | + font-size: 10px; | ||
491 | + transform: scale(0.8); | ||
492 | + } | ||
493 | + } | ||
494 | + a.cur { | ||
495 | + background: #222; | ||
496 | + color: #fff; | ||
497 | + } | ||
498 | + } | ||
499 | +} | ||
500 | + | ||
501 | +.min-screen .brands { | ||
502 | + .header-navs { | ||
503 | + margin-right: -10px; | ||
504 | + } | ||
505 | + .sit-nav { | ||
506 | + padding-top: 10px; | ||
507 | + font-size: 12px; | ||
508 | + .sep { | ||
509 | + margin: 0 6px; | ||
510 | + } | ||
511 | + } | ||
512 | + .brands-category { | ||
513 | + width: 990px; | ||
514 | + } | ||
515 | + .brands-tabs { | ||
516 | + li { | ||
517 | + a { | ||
518 | + width: 190px; | ||
519 | + height: 154px; | ||
520 | + } | ||
521 | + } | ||
522 | + .hover-contain { | ||
523 | + height: 25px; | ||
524 | + .hoverarr { | ||
525 | + height: 4px; | ||
526 | + width: 190px; | ||
527 | + } | ||
528 | + } | ||
529 | + } | ||
530 | + | ||
531 | + .brands-ad li { | ||
532 | + img { | ||
533 | + width: 240px; | ||
534 | + height: 240px; | ||
535 | + } | ||
536 | + | ||
537 | + &:first-child img { | ||
538 | + width: 490px; | ||
539 | + } | ||
540 | + } | ||
541 | + | ||
542 | + .brands-logo a { | ||
543 | + margin-left: 10px; | ||
544 | + | ||
545 | + &:first-child { | ||
546 | + margin-left: 0; | ||
547 | + } | ||
548 | + | ||
549 | + img { | ||
550 | + width: 90px; | ||
551 | + height: 37px; | ||
552 | + } | ||
553 | + } | ||
554 | + | ||
555 | + .list-floor { | ||
556 | + width: 1000px; | ||
557 | + } | ||
558 | + | ||
559 | + .brandfloor { | ||
560 | + .g-list { | ||
561 | + margin-top: -26px; | ||
562 | + } | ||
563 | + li { | ||
564 | + margin-right: 9px; | ||
565 | + margin-top: 26px; | ||
566 | + a { | ||
567 | + width: 324px; | ||
568 | + height: 214px; | ||
569 | + } | ||
570 | + } | ||
571 | + } | ||
572 | + .singlegoods { | ||
573 | + .g-list { | ||
574 | + margin-top: -10px; | ||
575 | + } | ||
576 | + li { | ||
577 | + margin-right: 10px; | ||
578 | + margin-top: 10px; | ||
579 | + a { | ||
580 | + width: 240px; | ||
581 | + height: 324px; | ||
582 | + } | ||
583 | + } | ||
584 | + .singlegoods-title { | ||
585 | + position: absolute; | ||
586 | + left: 0; | ||
587 | + bottom: 0; | ||
588 | + height: 50px; | ||
589 | + width: 100%; | ||
590 | + p { | ||
591 | + position: absolute; | ||
592 | + z-index: 2; | ||
593 | + top: 0; | ||
594 | + left: 0; | ||
595 | + display: block; | ||
596 | + width: 100%; | ||
597 | + height: 100%; | ||
598 | + line-height: 50px; | ||
599 | + font-size: 18px; | ||
600 | + text-align: center; | ||
601 | + color: #fff; | ||
602 | + } | ||
603 | + } | ||
604 | + } | ||
605 | + .video { | ||
606 | + .g-list { | ||
607 | + margin-top: -10px; | ||
608 | + } | ||
609 | + li { | ||
610 | + margin-right: 9px; | ||
611 | + margin-top: 10px; | ||
612 | + a { | ||
613 | + width: 324px; | ||
614 | + height: 206px; | ||
615 | + } | ||
616 | + } | ||
617 | + .video-play { | ||
618 | + display: block; | ||
619 | + position: absolute; | ||
620 | + left: 50%; | ||
621 | + top: 50%; | ||
622 | + margin-left: -30px; | ||
623 | + margin-top: -28px; | ||
624 | + width: 60px; | ||
625 | + height: 56px; | ||
626 | + background-image: resolve(img/index/play.png); | ||
627 | + } | ||
628 | + .video-title { | ||
629 | + position: absolute; | ||
630 | + left: 0; | ||
631 | + bottom: 0; | ||
632 | + height: 30px; | ||
633 | + width: 100%; | ||
634 | + p { | ||
635 | + position: absolute; | ||
636 | + z-index: 2; | ||
637 | + top: 0; | ||
638 | + left: 0; | ||
639 | + display: block; | ||
640 | + width: 100%; | ||
641 | + height: 100%; | ||
642 | + font-size: 14px; | ||
643 | + line-height: 30px; | ||
644 | + text-align: center; | ||
645 | + color: #fff; | ||
646 | + } | ||
647 | + } | ||
648 | + } | ||
649 | + .news { | ||
650 | + .news-pic { | ||
651 | + width: 660px; | ||
652 | + height: 376px; | ||
653 | + .slide-container { | ||
654 | + height: 376px; | ||
655 | + img { | ||
656 | + height: 376px; | ||
657 | + } | ||
658 | + } | ||
659 | + } | ||
660 | + .news-txt { | ||
661 | + width: 284px; | ||
662 | + height: 334px; | ||
663 | + li { | ||
664 | + margin-bottom: 13px; | ||
665 | + } | ||
666 | + } | ||
667 | + } | ||
668 | + .ads { | ||
669 | + margin-bottom: 30px; | ||
670 | + | ||
671 | + li { | ||
672 | + margin-right: 10px; | ||
673 | + margin-bottom: 10px; | ||
674 | + a { | ||
675 | + width: 240px; | ||
676 | + img { | ||
677 | + height: 138px; | ||
678 | + } | ||
679 | + } | ||
680 | + .name { | ||
681 | + font-size: 14px; | ||
682 | + } | ||
683 | + .des { | ||
684 | + font-size: 12px; | ||
685 | + } | ||
686 | + } | ||
687 | + } | ||
688 | + .brands-items { | ||
689 | + a.brands-pic { | ||
690 | + width: 240px; | ||
691 | + height: 116px; | ||
692 | + } | ||
693 | + .brand-info { | ||
694 | + width: 212px; | ||
695 | + .brand-desc { | ||
696 | + height: 72px; | ||
697 | + } | ||
698 | + } | ||
699 | + } | ||
700 | +} | ||
701 | + | ||
702 | +.brands-layer { | ||
703 | + position: absolute; | ||
704 | + z-index: 100; | ||
705 | + top: -83px; | ||
706 | + left: 15px; | ||
707 | + width: 325px; | ||
708 | + height: 287px; | ||
709 | + background: resolve(img/index/brands-layer.png) no-repeat; | ||
710 | + font-weight: normal; | ||
711 | + | ||
712 | + .layer-content { | ||
713 | + padding: 20px 20px 20px 35px; | ||
714 | + .title { | ||
715 | + font-size: 24px; | ||
716 | + line-height: 24px; | ||
717 | + border-bottom: 1px solid #ccc; | ||
718 | + padding-bottom: 5px; | ||
719 | + overflow: hidden; | ||
720 | + text-overflow: ellipsis; | ||
721 | + white-space: nowrap; | ||
722 | + } | ||
723 | + .desc { | ||
724 | + margin: 5px 0; | ||
725 | + height: 72px; | ||
726 | + overflow: hidden; | ||
727 | + img { | ||
728 | + width: 80px; | ||
729 | + height: 50px; | ||
730 | + margin: 3px 5px 0 0; | ||
731 | + float: left; | ||
732 | + } | ||
733 | + .right { | ||
734 | + width: 180px; | ||
735 | + float: right; | ||
736 | + font-size: 12px; | ||
737 | + line-height: 150%; | ||
738 | + max-height: 80px; | ||
739 | + } | ||
740 | + } | ||
741 | + .featured { | ||
742 | + font-size: 16px; | ||
743 | + margin-right: -15px; | ||
744 | + img { | ||
745 | + height: 100px; | ||
746 | + width: 80px; | ||
747 | + float: left; | ||
748 | + margin: 15px 15px 0 0; | ||
749 | + } | ||
750 | + } | ||
751 | + } | ||
752 | +} | ||
753 | + | ||
754 | +.brands-layer-right { | ||
755 | + background: resolve(img/index/brands-layer.png) no-repeat 0 -287px; | ||
756 | + left: -325px; | ||
757 | + top: -83px; | ||
758 | + | ||
759 | + .layer-content { | ||
760 | + padding: 20px 35px 20px 20px; | ||
761 | + } | ||
762 | +} |
public/scss/index/_coupon.css
0 → 100644
1 | +.coupon-page { | ||
2 | + width: 1150px; | ||
3 | + margin: 10px auto 0; | ||
4 | + | ||
5 | + .slide-container { | ||
6 | + position: relative; | ||
7 | + } | ||
8 | + | ||
9 | + .slide-wrapper { | ||
10 | + position: relative; | ||
11 | + height: 450px; | ||
12 | + overflow: hidden; | ||
13 | + | ||
14 | + ul { | ||
15 | + position: relative; | ||
16 | + height: 100%; | ||
17 | + } | ||
18 | + | ||
19 | + &:hover .slide-switch.show { | ||
20 | + display: block; | ||
21 | + } | ||
22 | + | ||
23 | + li { | ||
24 | + display: none; | ||
25 | + position: absolute; | ||
26 | + top: 0; | ||
27 | + right: 0; | ||
28 | + width: 100%; | ||
29 | + height: 100%; | ||
30 | + | ||
31 | + a { | ||
32 | + display: block; | ||
33 | + height: 100%; | ||
34 | + width: 1150px; | ||
35 | + margin: 0 auto; | ||
36 | + } | ||
37 | + | ||
38 | + &:first-child { | ||
39 | + display: block; | ||
40 | + } | ||
41 | + | ||
42 | + img { | ||
43 | + width: 100%; | ||
44 | + height: 100%; | ||
45 | + } | ||
46 | + } | ||
47 | + } | ||
48 | + | ||
49 | + .slide-switch { | ||
50 | + display: block; | ||
51 | + a { | ||
52 | + position: absolute; | ||
53 | + top: 50%; | ||
54 | + margin: -30px 0 0; | ||
55 | + width: 60px; | ||
56 | + height: 60px; | ||
57 | + line-height: 56px; | ||
58 | + text-align: center; | ||
59 | + z-index: 2; | ||
60 | + background: #fff; | ||
61 | + opacity: 0.55; | ||
62 | + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"; | ||
63 | + | ||
64 | + &.prev { | ||
65 | + left: 50%; | ||
66 | + margin-left: -575px; | ||
67 | + } | ||
68 | + | ||
69 | + &.next { | ||
70 | + right: 50%; | ||
71 | + margin-right: -575px; | ||
72 | + } | ||
73 | + | ||
74 | + &:hover { | ||
75 | + opacity: 0.9; | ||
76 | + } | ||
77 | + | ||
78 | + .iconfont { | ||
79 | + font-size: 32px; | ||
80 | + color: #59585a; | ||
81 | + } | ||
82 | + } | ||
83 | + } | ||
84 | + | ||
85 | + .title { | ||
86 | + width: 300px; | ||
87 | + margin: 80px auto 40px; | ||
88 | + text-align: center; | ||
89 | + border: 1px solid #000; | ||
90 | + height: 31px; | ||
91 | + line-height: 31px; | ||
92 | + position: relative; | ||
93 | + | ||
94 | + span { | ||
95 | + margin: 5px; | ||
96 | + } | ||
97 | + } | ||
98 | + | ||
99 | + .coupon { | ||
100 | + display: inline-block; | ||
101 | + position: relative; | ||
102 | + width: 282px; | ||
103 | + height: 258px; | ||
104 | + margin-right: 2px; | ||
105 | + | ||
106 | + img { | ||
107 | + width: 100%; | ||
108 | + height: 100%; | ||
109 | + } | ||
110 | + | ||
111 | + .coupon-mask { | ||
112 | + width: 100%; | ||
113 | + height: 259px; | ||
114 | + background-color: rgba(0, 0, 0, 0.6); | ||
115 | + position: absolute; | ||
116 | + top: 0; | ||
117 | + left: 0; | ||
118 | + right: 0; | ||
119 | + z-index: 99; | ||
120 | + } | ||
121 | + | ||
122 | + .info { | ||
123 | + width: 78px; | ||
124 | + height: 78px; | ||
125 | + position: absolute; | ||
126 | + right: 2px; | ||
127 | + bottom: -1px; | ||
128 | + > div { | ||
129 | + width: 100%; | ||
130 | + height: 38px; | ||
131 | + font-size: 16px; | ||
132 | + color: #fff; | ||
133 | + text-align: center; | ||
134 | + position: absolute; | ||
135 | + top: 50%; | ||
136 | + margin-top: -19px; | ||
137 | + } | ||
138 | + | ||
139 | + p { | ||
140 | + margin-bottom: 5px; | ||
141 | + } | ||
142 | + | ||
143 | + .guang { | ||
144 | + width: 50px; | ||
145 | + height: 18px; | ||
146 | + line-height: 18px; | ||
147 | + font-size: 12px; | ||
148 | + background-color: #fff; | ||
149 | + color: #d0021b; | ||
150 | + margin: 0 auto; | ||
151 | + } | ||
152 | + } | ||
153 | + } | ||
154 | + | ||
155 | +} |
public/scss/index/_index-pliffy.css
0 → 100644
1 | +/* 公共样式 */ | ||
2 | +.g-list { | ||
3 | + li { | ||
4 | + float: left; | ||
5 | + a { | ||
6 | + position: relative; | ||
7 | + display: block; | ||
8 | + overflow: hidden; | ||
9 | + img { | ||
10 | + width: 100%; | ||
11 | + height: 100%; | ||
12 | + } | ||
13 | + } | ||
14 | + } | ||
15 | +} | ||
16 | + | ||
17 | +.g-mask { | ||
18 | + display: block; | ||
19 | + position: absolute; | ||
20 | + height: 100%; | ||
21 | + width: 100%; | ||
22 | + z-index: 1; | ||
23 | + background: #000; | ||
24 | + opacity: 0.5; | ||
25 | + overflow: hidden; | ||
26 | + transition: opacity 0.6s; | ||
27 | +} | ||
28 | + | ||
29 | +.g-title { | ||
30 | + display: block; | ||
31 | + text-align: center; | ||
32 | + font-weight: bold; | ||
33 | + line-height: 1.5; | ||
34 | + width: 100%; | ||
35 | + margin-top: 14px; | ||
36 | +} | ||
37 | + | ||
38 | +/* 热门推荐模板样式 */ | ||
39 | +.home-page { | ||
40 | + .tpl-recommend { | ||
41 | + width: 100%; | ||
42 | + position: relative; | ||
43 | + a { | ||
44 | + display: block; | ||
45 | + img { | ||
46 | + display: block; | ||
47 | + width: 100%; | ||
48 | + height: 100%; | ||
49 | + } | ||
50 | + } | ||
51 | + .tpl-body { | ||
52 | + margin-bottom: 8px; | ||
53 | + } | ||
54 | + .tpl-nav { | ||
55 | + float: left; | ||
56 | + overflow: hidden; | ||
57 | + .tpl-keywords { | ||
58 | + margin-bottom: 8px; | ||
59 | + } | ||
60 | + | ||
61 | + .tpl-category { | ||
62 | + padding: 10px 0; | ||
63 | + background-color: #f8f8f8; | ||
64 | + overflow: hidden; | ||
65 | + | ||
66 | + a { | ||
67 | + float: left; | ||
68 | + width: 50%; | ||
69 | + text-align: center; | ||
70 | + color: #000; | ||
71 | + overflow: hidden; | ||
72 | + } | ||
73 | + } | ||
74 | + } | ||
75 | + .tpl-brands { | ||
76 | + float: left; | ||
77 | + overflow: hidden; | ||
78 | + margin-left: 8px; | ||
79 | + li { | ||
80 | + margin-top: 8px; | ||
81 | + } | ||
82 | + } | ||
83 | + .tpl-types { | ||
84 | + float: left; | ||
85 | + overflow: hidden; | ||
86 | + margin-top: -8px; | ||
87 | + width: 579px; | ||
88 | + | ||
89 | + li { | ||
90 | + float: left; | ||
91 | + margin-left: 8px; | ||
92 | + margin-top: 8px; | ||
93 | + | ||
94 | + a { | ||
95 | + width: 185px; | ||
96 | + height: 248px; | ||
97 | + } | ||
98 | + } | ||
99 | + } | ||
100 | + .tpl-products { | ||
101 | + overflow: hidden; | ||
102 | + margin-left: -10px; | ||
103 | + li { | ||
104 | + float: left; | ||
105 | + margin-left: 10px; | ||
106 | + | ||
107 | + a { | ||
108 | + width: 222px; | ||
109 | + height: 298px; | ||
110 | + } | ||
111 | + } | ||
112 | + } | ||
113 | + | ||
114 | + .tpl-nav { | ||
115 | + width: 185px; | ||
116 | + | ||
117 | + .keywords0, | ||
118 | + .keywords1, | ||
119 | + .keywords2 { | ||
120 | + margin-bottom: 10px; | ||
121 | + height: 76px; | ||
122 | + } | ||
123 | + .keywords2 { | ||
124 | + margin-bottom: 0; | ||
125 | + } | ||
126 | + .tpl-category { | ||
127 | + height: 228px; | ||
128 | + | ||
129 | + a { | ||
130 | + height: 38px; | ||
131 | + line-height: 38px; | ||
132 | + font-size: 14px; | ||
133 | + } | ||
134 | + } | ||
135 | + } | ||
136 | + | ||
137 | + .tpl-brands { | ||
138 | + width: 378px; | ||
139 | + height: 512px; | ||
140 | + | ||
141 | + li a { | ||
142 | + height: 248px; | ||
143 | + } | ||
144 | + } | ||
145 | + } | ||
146 | +} | ||
147 | + | ||
148 | +.min-screen .home-page .tpl-recommend { | ||
149 | + .tpl-nav { | ||
150 | + width: 158px; | ||
151 | + | ||
152 | + .keywords0, | ||
153 | + .keywords1, | ||
154 | + .keywords2 { | ||
155 | + margin-bottom: 8px; | ||
156 | + height: 65px; | ||
157 | + } | ||
158 | + | ||
159 | + .keywords2 { | ||
160 | + margin-bottom: 0; | ||
161 | + } | ||
162 | + | ||
163 | + .tpl-category { | ||
164 | + height: 192px; | ||
165 | + | ||
166 | + a { | ||
167 | + height: 32px; | ||
168 | + line-height: 32px; | ||
169 | + font-size: 12px; | ||
170 | + | ||
171 | + &:hover { | ||
172 | + text-decoration: underline; | ||
173 | + } | ||
174 | + } | ||
175 | + } | ||
176 | + } | ||
177 | + .tpl-brands { | ||
178 | + width: 324px; | ||
179 | + height: 432px; | ||
180 | + li a { | ||
181 | + height: 212px; | ||
182 | + } | ||
183 | + } | ||
184 | + .tpl-types { | ||
185 | + width: 498px; | ||
186 | + li a { | ||
187 | + width: 158px; | ||
188 | + height: 212px; | ||
189 | + } | ||
190 | + } | ||
191 | + .tpl-products li a { | ||
192 | + width: 190px; | ||
193 | + height: 254px; | ||
194 | + } | ||
195 | +} | ||
196 | + | ||
197 | +/* 单品模板样式 */ | ||
198 | +.home-page { | ||
199 | + .singlehot { | ||
200 | + overflow: hidden; | ||
201 | + margin-left: -8px; | ||
202 | + | ||
203 | + li { | ||
204 | + margin-left: 8px; | ||
205 | + margin-bottom: 8px; | ||
206 | + | ||
207 | + a { | ||
208 | + width: 185px; | ||
209 | + height: 248px; | ||
210 | + } | ||
211 | + } | ||
212 | + | ||
213 | + .impo1, | ||
214 | + .impo9 { | ||
215 | + width: 378px; | ||
216 | + } | ||
217 | + } | ||
218 | + | ||
219 | + .floor-ad a { | ||
220 | + display: block; | ||
221 | + height: 129px; | ||
222 | + | ||
223 | + img { | ||
224 | + display: block; | ||
225 | + width: 100%; | ||
226 | + height: 100%; | ||
227 | + } | ||
228 | + } | ||
229 | + | ||
230 | + .goods-container { | ||
231 | + margin-right: -10px; | ||
232 | + width: inherit; | ||
233 | + padding-top: 0; | ||
234 | + | ||
235 | + .good-info { | ||
236 | + margin-bottom: 0; | ||
237 | + width: 280px; | ||
238 | + height: 485px; | ||
239 | + } | ||
240 | + | ||
241 | + .good-detail-img { | ||
242 | + height: 374px; | ||
243 | + } | ||
244 | + | ||
245 | + .good-detail-text { | ||
246 | + text-align: center; | ||
247 | + } | ||
248 | + } | ||
249 | + .adbanner { | ||
250 | + margin-top: 12px; | ||
251 | + a { | ||
252 | + height: 150px; | ||
253 | + } | ||
254 | + } | ||
255 | +} | ||
256 | + | ||
257 | +.min-screen, | ||
258 | +.home-page { | ||
259 | + .singlehot { | ||
260 | + li a { | ||
261 | + width: 158px; | ||
262 | + height: 212px; | ||
263 | + } | ||
264 | + .impo1, | ||
265 | + .impo9 { | ||
266 | + width: 323px; | ||
267 | + } | ||
268 | + } | ||
269 | + .goods-container { | ||
270 | + .good-info { | ||
271 | + width: 240px; | ||
272 | + height: 412px; | ||
273 | + | ||
274 | + .good-detail-img { | ||
275 | + height: 320px; | ||
276 | + } | ||
277 | + } | ||
278 | + } | ||
279 | +} | ||
280 | + | ||
281 | +/* 人气单品 */ | ||
282 | +.home-page .commodity { | ||
283 | + .commodity-list { | ||
284 | + margin-left: -10px; | ||
285 | + a { | ||
286 | + height: 465px; | ||
287 | + width: 280px; | ||
288 | + } | ||
289 | + li { | ||
290 | + margin-left: 10px; | ||
291 | + } | ||
292 | + i { | ||
293 | + position: absolute; | ||
294 | + bottom: 0; | ||
295 | + width: 100%; | ||
296 | + height: 20px; | ||
297 | + background: #ffac5b; | ||
298 | + color: #fff; | ||
299 | + line-height: 20px; | ||
300 | + text-align: center; | ||
301 | + font-size: 12px; | ||
302 | + } | ||
303 | + i.top { | ||
304 | + position: absolute; | ||
305 | + top: 10px; | ||
306 | + right: 10px; | ||
307 | + background-color: rgb(255, 87, 92); | ||
308 | + color: #fff; | ||
309 | + border-radius: 30px; | ||
310 | + z-index: 2; | ||
311 | + height: 60px; | ||
312 | + width: 60px; | ||
313 | + line-height: 60px; | ||
314 | + font-size: 20px; | ||
315 | + } | ||
316 | + .commodity-img { | ||
317 | + position: relative; | ||
318 | + height: 374px; | ||
319 | + } | ||
320 | + p.commodity-name { | ||
321 | + font-size: 12px; | ||
322 | + color: #000; | ||
323 | + text-align: center; | ||
324 | + margin-top: 14px; | ||
325 | + line-height: 18px; | ||
326 | + } | ||
327 | + p.commodity-price { | ||
328 | + position: relative; | ||
329 | + margin: 3px 0 0; | ||
330 | + text-align: center; | ||
331 | + line-height: 20px; | ||
332 | + color: #000; | ||
333 | + span { | ||
334 | + display: inline-block; | ||
335 | + font-size: 12px; | ||
336 | + } | ||
337 | + } | ||
338 | + } | ||
339 | + .commodity-brands { | ||
340 | + margin-left: -8px; | ||
341 | + a { | ||
342 | + float: left; | ||
343 | + margin-left: 8px; | ||
344 | + display: block; | ||
345 | + width: 185px; | ||
346 | + height: 86px; | ||
347 | + img { | ||
348 | + width: 100%; | ||
349 | + height: 100%; | ||
350 | + } | ||
351 | + } | ||
352 | + } | ||
353 | + .loading { | ||
354 | + position: relative; | ||
355 | + width: 100%; | ||
356 | + text-align: center; | ||
357 | + padding-top: 40px; | ||
358 | + a { | ||
359 | + display: block; | ||
360 | + height: 35px; | ||
361 | + width: 120px; | ||
362 | + margin: 0 auto 40px; | ||
363 | + background-color: #000; | ||
364 | + color: #fff; | ||
365 | + font-size: 14px; | ||
366 | + line-height: 35px; | ||
367 | + text-align: center; | ||
368 | + } | ||
369 | + } | ||
370 | +} | ||
371 | + | ||
372 | +.min-screen .home-page .commodity { | ||
373 | + .commodity-list { | ||
374 | + a { | ||
375 | + height: 400px; | ||
376 | + width: 240px; | ||
377 | + } | ||
378 | + .commodity-img { | ||
379 | + height: 320px; | ||
380 | + } | ||
381 | + i.top { | ||
382 | + height: 52px; | ||
383 | + width: 52px; | ||
384 | + line-height: 52px; | ||
385 | + font-size: 14px; | ||
386 | + } | ||
387 | + } | ||
388 | + .commodity-brands { | ||
389 | + a { | ||
390 | + width: 158px; | ||
391 | + height: 74px; | ||
392 | + } | ||
393 | + } | ||
394 | +} | ||
395 | + | ||
396 | +/* 手风琴 */ | ||
397 | +.home-page { | ||
398 | + .slide-accordion { | ||
399 | + overflow: hidden; | ||
400 | + position: relative; | ||
401 | + height: 400px; | ||
402 | + | ||
403 | + a { | ||
404 | + position: relative; | ||
405 | + display: block; | ||
406 | + img { | ||
407 | + display: block; | ||
408 | + width: 100%; | ||
409 | + height: 100%; | ||
410 | + } | ||
411 | + } | ||
412 | + ul { | ||
413 | + position: absolute; | ||
414 | + left: -5px; | ||
415 | + } | ||
416 | + li { | ||
417 | + position: absolute; | ||
418 | + border-left: 5px solid #fff; | ||
419 | + a { | ||
420 | + width: 650px; | ||
421 | + height: 400px; | ||
422 | + } | ||
423 | + } | ||
424 | + .g-mask { | ||
425 | + opacity: 0.2; | ||
426 | + &:hover { | ||
427 | + opacity: 0; | ||
428 | + } | ||
429 | + } | ||
430 | + } | ||
431 | +} | ||
432 | + | ||
433 | +.min-screen .home-page .slide-accordion { | ||
434 | + height: 342px; | ||
435 | + li a { | ||
436 | + width: 558px; | ||
437 | + height: 342px; | ||
438 | + } | ||
439 | +} | ||
440 | + | ||
441 | +.boys { | ||
442 | + .tpl-nav { | ||
443 | + .keywords0 { | ||
444 | + margin-bottom: 10px !important; | ||
445 | + height: 152px !important; | ||
446 | + } | ||
447 | + .keywords1 { | ||
448 | + height: 86px !important; | ||
449 | + } | ||
450 | + .tpl-category { | ||
451 | + a { | ||
452 | + height: 38px !important; | ||
453 | + line-height: 38px !important; | ||
454 | + font-size: 14px !important; | ||
455 | + } | ||
456 | + } | ||
457 | + } | ||
458 | + .tpl-brands { | ||
459 | + margin-top: -8px !important; | ||
460 | + } | ||
461 | +} | ||
462 | + | ||
463 | +.boys, | ||
464 | +.lifestyle { | ||
465 | + .goods-container { | ||
466 | + .good-info { | ||
467 | + width: 222px !important; | ||
468 | + height: 408px !important; | ||
469 | + .good-detail-img { | ||
470 | + height: 298px !important; | ||
471 | + } | ||
472 | + } | ||
473 | + } | ||
474 | +} | ||
475 | + | ||
476 | +.min-screen { | ||
477 | + .boys { | ||
478 | + .tpl-nav { | ||
479 | + .keywords0 { | ||
480 | + margin-bottom: 8px !important; | ||
481 | + height: 130px !important; | ||
482 | + } | ||
483 | + .keywords1 { | ||
484 | + margin-bottom: 0 !important; | ||
485 | + height: 74px !important; | ||
486 | + } | ||
487 | + } | ||
488 | + .tpl-brands { | ||
489 | + margin-top: -8px !important; | ||
490 | + } | ||
491 | + } | ||
492 | + | ||
493 | + .boys, | ||
494 | + .lifestyle { | ||
495 | + .goods-container { | ||
496 | + .good-info { | ||
497 | + width: 188px; | ||
498 | + height: 360px; | ||
499 | + .good-detail-img { | ||
500 | + height: 255px; | ||
501 | + } | ||
502 | + } | ||
503 | + } | ||
504 | + } | ||
505 | +} |
public/scss/index/_index.css
0 → 100644
1 | +.home-page { | ||
2 | + width: 1150px; | ||
3 | + margin: 10px auto 0; | ||
4 | + | ||
5 | + .slide-container { | ||
6 | + position: absolute; | ||
7 | + left: 0; | ||
8 | + right: 0; | ||
9 | + height: 450px; | ||
10 | + } | ||
11 | + | ||
12 | + .slide-thumb-container { | ||
13 | + height: 510px; | ||
14 | + } | ||
15 | + | ||
16 | + .slide-wrapper { | ||
17 | + position: relative; | ||
18 | + height: 450px; | ||
19 | + overflow: hidden; | ||
20 | + | ||
21 | + ul { | ||
22 | + position: relative; | ||
23 | + height: 100%; | ||
24 | + } | ||
25 | + | ||
26 | + &:hover .slide-switch.show { | ||
27 | + display: block; | ||
28 | + } | ||
29 | + | ||
30 | + li { | ||
31 | + display: none; | ||
32 | + position: absolute; | ||
33 | + top: 0; | ||
34 | + right: 0; | ||
35 | + width: 100%; | ||
36 | + height: 100%; | ||
37 | + | ||
38 | + a { | ||
39 | + display: block; | ||
40 | + height: 100%; | ||
41 | + width: 1150px; | ||
42 | + margin: 0 auto; | ||
43 | + } | ||
44 | + | ||
45 | + &:first-child { | ||
46 | + display: block; | ||
47 | + } | ||
48 | + | ||
49 | + img { | ||
50 | + width: 100%; | ||
51 | + height: 100%; | ||
52 | + } | ||
53 | + } | ||
54 | + } | ||
55 | + | ||
56 | + .slide-container-placeholder { | ||
57 | + height: 450px; | ||
58 | + width: 100%; | ||
59 | + | ||
60 | + } | ||
61 | + | ||
62 | + .slide-thumb-container-placeholder { | ||
63 | + height: 510px; | ||
64 | + } | ||
65 | + | ||
66 | + .slide-switch { | ||
67 | + display: block; | ||
68 | + | ||
69 | + a { | ||
70 | + position: absolute; | ||
71 | + top: 50%; | ||
72 | + margin: -30px 0 0; | ||
73 | + width: 60px; | ||
74 | + height: 60px; | ||
75 | + line-height: 56px; | ||
76 | + text-align: center; | ||
77 | + z-index: 2; | ||
78 | + background: #fff; | ||
79 | + opacity: 0.55; | ||
80 | + | ||
81 | + &.prev { | ||
82 | + left: 50%; | ||
83 | + margin-left: -575px; | ||
84 | + } | ||
85 | + | ||
86 | + &.next { | ||
87 | + right: 50%; | ||
88 | + margin-right: -575px; | ||
89 | + } | ||
90 | + | ||
91 | + &:hover { | ||
92 | + opacity: 0.9; | ||
93 | + } | ||
94 | + | ||
95 | + .iconfont { | ||
96 | + font-size: 32px; | ||
97 | + color: #59585a; | ||
98 | + } | ||
99 | + } | ||
100 | + } | ||
101 | + | ||
102 | + .thumb-pagination { | ||
103 | + width: 1148px; | ||
104 | + margin: 6px auto 0; | ||
105 | + padding-left: 2px; | ||
106 | + | ||
107 | + li { | ||
108 | + position: relative; | ||
109 | + float: left; | ||
110 | + margin-left: 6px; | ||
111 | + width: 138px; | ||
112 | + height: 54px; | ||
113 | + | ||
114 | + &:first-child { | ||
115 | + margin: 0; | ||
116 | + } | ||
117 | + | ||
118 | + &.focus a { | ||
119 | + opacity: 0; | ||
120 | + } | ||
121 | + | ||
122 | + a { | ||
123 | + position: absolute; | ||
124 | + left: 0; | ||
125 | + right: 0; | ||
126 | + bottom: 0; | ||
127 | + top: 0; | ||
128 | + background: #000; | ||
129 | + opacity: 0.3; | ||
130 | + } | ||
131 | + | ||
132 | + img { | ||
133 | + width: 100%; | ||
134 | + height: 100%; | ||
135 | + } | ||
136 | + } | ||
137 | + } | ||
138 | + | ||
139 | + /* 大banner圆点 */ | ||
140 | + .slide-pagination { | ||
141 | + font-size: 0; | ||
142 | + | ||
143 | + .slide-shade { | ||
144 | + position: absolute; | ||
145 | + left: 0; | ||
146 | + right: 0; | ||
147 | + top: 0; | ||
148 | + bottom: 0; | ||
149 | + background: #000; | ||
150 | + opacity: 0.3; | ||
151 | + border-radius: 13px; | ||
152 | + } | ||
153 | + | ||
154 | + span { | ||
155 | + position: relative; | ||
156 | + display: inline-block; | ||
157 | + margin: 0 7px; | ||
158 | + width: 12px; | ||
159 | + height: 12px; | ||
160 | + background: #fff; | ||
161 | + cursor: pointer; | ||
162 | + opacity: 0.6; | ||
163 | + border-radius: 6px; | ||
164 | + z-index: 2; | ||
165 | + | ||
166 | + &.focus { | ||
167 | + opacity: 1; | ||
168 | + } | ||
169 | + } | ||
170 | + } | ||
171 | + | ||
172 | + .debris-slider { | ||
173 | + height: 510px; | ||
174 | + width: 100%; | ||
175 | + | ||
176 | + .col { | ||
177 | + float: left; | ||
178 | + | ||
179 | + a { | ||
180 | + display: block; | ||
181 | + } | ||
182 | + } | ||
183 | + | ||
184 | + .left-col a, | ||
185 | + .right-col a { | ||
186 | + margin-bottom: 10px; | ||
187 | + | ||
188 | + &:last-child { | ||
189 | + margin-bottom: 0; | ||
190 | + } | ||
191 | + } | ||
192 | + | ||
193 | + .right-col img, | ||
194 | + .left-col img { | ||
195 | + height: 100%; | ||
196 | + width: 100%; | ||
197 | + } | ||
198 | + | ||
199 | + .left-col { | ||
200 | + margin-right: 10px; | ||
201 | + | ||
202 | + a { | ||
203 | + width: 280px; | ||
204 | + height: 120px; | ||
205 | + } | ||
206 | + | ||
207 | + a:first-child { | ||
208 | + height: 250px; | ||
209 | + } | ||
210 | + } | ||
211 | + | ||
212 | + .center-col { | ||
213 | + position: relative; | ||
214 | + width: 570px; | ||
215 | + height: 100%; | ||
216 | + margin-right: 10px; | ||
217 | + font-size: 0; | ||
218 | + | ||
219 | + &:hover { | ||
220 | + .slide-switch.show { | ||
221 | + display: block; | ||
222 | + } | ||
223 | + } | ||
224 | + | ||
225 | + .slide-wrapper { | ||
226 | + height: 100%; | ||
227 | + | ||
228 | + a { | ||
229 | + width: 100%; | ||
230 | + } | ||
231 | + } | ||
232 | + | ||
233 | + .slide-switch { | ||
234 | + a.prev { | ||
235 | + left: 0; | ||
236 | + margin-left: 0; | ||
237 | + } | ||
238 | + a.next { | ||
239 | + right: 0; | ||
240 | + margin-right: 0; | ||
241 | + } | ||
242 | + } | ||
243 | + | ||
244 | + img { | ||
245 | + max-width: 100%; | ||
246 | + max-height: 100%; | ||
247 | + } | ||
248 | + } | ||
249 | + | ||
250 | + .right-col a { | ||
251 | + width: 280px; | ||
252 | + height: 120px; | ||
253 | + } | ||
254 | + | ||
255 | + .right-col a:first-child { | ||
256 | + height: 380px; | ||
257 | + margin-bottom: 11px; | ||
258 | + } | ||
259 | + } | ||
260 | + | ||
261 | + .new-report { | ||
262 | + img { | ||
263 | + display: block; | ||
264 | + width: 100%; | ||
265 | + height: 100%; | ||
266 | + } | ||
267 | + | ||
268 | + .report-list { | ||
269 | + float: left; | ||
270 | + width: 868px; | ||
271 | + | ||
272 | + li { | ||
273 | + float: left; | ||
274 | + margin: 0 8px 8px 0; | ||
275 | + width: 185px; | ||
276 | + height: 248px; | ||
277 | + overflow: hidden; | ||
278 | + | ||
279 | + &:first-child { | ||
280 | + margin-right: 7px; | ||
281 | + width: 282px; | ||
282 | + height: 504px; | ||
283 | + } | ||
284 | + } | ||
285 | + } | ||
286 | + | ||
287 | + .last-item { | ||
288 | + float: left; | ||
289 | + width: 282px; | ||
290 | + height: 504px; | ||
291 | + overflow: hidden; | ||
292 | + } | ||
293 | + } | ||
294 | + | ||
295 | + /* 优选品牌 */ | ||
296 | + .preference-brand { | ||
297 | + overflow: hidden; | ||
298 | + } | ||
299 | + | ||
300 | + .preference-brand-list { | ||
301 | + margin-top: 8px; | ||
302 | + width: 1158px; | ||
303 | + } | ||
304 | + | ||
305 | + .preference-brand-item { | ||
306 | + float: left; | ||
307 | + margin-right: 8px; | ||
308 | + margin-bottom: 8px; | ||
309 | + | ||
310 | + a { | ||
311 | + display: table-cell; | ||
312 | + width: 185px; | ||
313 | + height: 86px; | ||
314 | + text-align: center; | ||
315 | + vertical-align: middle; | ||
316 | + } | ||
317 | + | ||
318 | + img { | ||
319 | + display: block; | ||
320 | + max-width: 100%; | ||
321 | + max-height: 100%; | ||
322 | + margin: 0 auto; | ||
323 | + } | ||
324 | + } | ||
325 | + | ||
326 | + .preference-more { | ||
327 | + float: left; | ||
328 | + width: 185px; | ||
329 | + height: 86px; | ||
330 | + line-height: 100px; | ||
331 | + text-align: center; | ||
332 | + color: black; | ||
333 | + font-size: 16px; | ||
334 | + } | ||
335 | + | ||
336 | + .img-slider-wrapper { | ||
337 | + position: relative; | ||
338 | + width: 100%; | ||
339 | + height: 558px; | ||
340 | + background: #8ae6e0; | ||
341 | + overflow: hidden; | ||
342 | + | ||
343 | + .img-brand-switch { | ||
344 | + display: block; | ||
345 | + a { | ||
346 | + position: absolute; | ||
347 | + top: 50%; | ||
348 | + font-size: 36px; | ||
349 | + color: #fff; | ||
350 | + | ||
351 | + &.next { | ||
352 | + right: 30px; | ||
353 | + } | ||
354 | + | ||
355 | + &.prev { | ||
356 | + left: 30px; | ||
357 | + } | ||
358 | + } | ||
359 | + } | ||
360 | + } | ||
361 | + | ||
362 | + .img-container-landscape { | ||
363 | + box-sizing: border-box; | ||
364 | + margin: 86px auto 0; | ||
365 | + width: 982px; | ||
366 | + height: 433px; | ||
367 | + overflow: hidden; | ||
368 | + | ||
369 | + .img-list { | ||
370 | + width: 1000px; | ||
371 | + height: 100%; | ||
372 | + } | ||
373 | + | ||
374 | + .img-item { | ||
375 | + float: left; | ||
376 | + box-sizing: border-box; | ||
377 | + width: 320px; | ||
378 | + height: 100%; | ||
379 | + margin-right: 10px; | ||
380 | + | ||
381 | + img { | ||
382 | + width: 100%; | ||
383 | + height: 100%; | ||
384 | + } | ||
385 | + } | ||
386 | + } | ||
387 | + | ||
388 | + .img-brand { | ||
389 | + position: relative; | ||
390 | + width: 100%; | ||
391 | + height: 175px; | ||
392 | + overflow: hidden; | ||
393 | + | ||
394 | + &:hover { | ||
395 | + .img-brand-switch { | ||
396 | + display: block; | ||
397 | + } | ||
398 | + } | ||
399 | + ul { | ||
400 | + width: 1158px; | ||
401 | + } | ||
402 | + li { | ||
403 | + float: left; | ||
404 | + margin: 0 8px 0 0; | ||
405 | + width: 378px; | ||
406 | + height: 175px; | ||
407 | + line-height: 175px; | ||
408 | + overflow: hidden; | ||
409 | + font-size: 0; | ||
410 | + text-align: center; | ||
411 | + | ||
412 | + img { | ||
413 | + max-width: 100%; | ||
414 | + max-height: 100%; | ||
415 | + vertical-align: middle; | ||
416 | + } | ||
417 | + } | ||
418 | + .img-brand-switch { | ||
419 | + display: none; | ||
420 | + a { | ||
421 | + position: absolute; | ||
422 | + top: 50%; | ||
423 | + margin: -20px 0 0; | ||
424 | + width: 40px; | ||
425 | + height: 40px; | ||
426 | + line-height: 40px; | ||
427 | + text-align: center; | ||
428 | + z-index: 2; | ||
429 | + background: #fff; | ||
430 | + opacity: 0.55; | ||
431 | + | ||
432 | + &.prev { | ||
433 | + left: 0; | ||
434 | + } | ||
435 | + &.next { | ||
436 | + right: 0; | ||
437 | + } | ||
438 | + &:hover { | ||
439 | + opacity: 0.9; | ||
440 | + | ||
441 | + } | ||
442 | + } | ||
443 | + } | ||
444 | + } | ||
445 | + | ||
446 | + .logo-brand { | ||
447 | + width: 100%; | ||
448 | + height: 282px; | ||
449 | + overflow: hidden; | ||
450 | + | ||
451 | + &.logos-10 { | ||
452 | + height: 188px; | ||
453 | + } | ||
454 | + | ||
455 | + ul { | ||
456 | + width: 1158px; | ||
457 | + } | ||
458 | + | ||
459 | + li { | ||
460 | + float: left; | ||
461 | + margin: 8px 8px 0 0; | ||
462 | + width: 185px; | ||
463 | + height: 86px; | ||
464 | + line-height: 86px; | ||
465 | + font-size: 0; | ||
466 | + text-align: center; | ||
467 | + img { | ||
468 | + max-width: 100%; | ||
469 | + max-height: 100%; | ||
470 | + vertical-align: middle; | ||
471 | + } | ||
472 | + } | ||
473 | + | ||
474 | + .logo-brand-switch { | ||
475 | + position: relative; | ||
476 | + background: resolve(img/index/logo-brand-line.png) no-repeat center center; | ||
477 | + line-height: normal; | ||
478 | + | ||
479 | + .iconfont { | ||
480 | + position: absolute; | ||
481 | + left: 50%; | ||
482 | + font-size: 32px; | ||
483 | + | ||
484 | + &.prev { | ||
485 | + top: 10px; | ||
486 | + | ||
487 | + margin-left: -48px; | ||
488 | + } | ||
489 | + &.next { | ||
490 | + bottom: 12px; | ||
491 | + margin-left: 20px; | ||
492 | + } | ||
493 | + } | ||
494 | + } | ||
495 | + | ||
496 | + .brand-more { | ||
497 | + font-size: 16px; | ||
498 | + | ||
499 | + &:hover { | ||
500 | + text-decoration: underline; | ||
501 | + } | ||
502 | + } | ||
503 | + } | ||
504 | + | ||
505 | + .categorys-list { | ||
506 | + ul { | ||
507 | + width: 1158px; | ||
508 | + } | ||
509 | + | ||
510 | + li { | ||
511 | + float: left; | ||
512 | + margin: 0 8px 8px 0; | ||
513 | + width: 185px; | ||
514 | + height: 248px; | ||
515 | + | ||
516 | + &.cate-item0 { | ||
517 | + width: 185px; | ||
518 | + height: 504px; | ||
519 | + } | ||
520 | + | ||
521 | + &.cate-item1 { | ||
522 | + width: 377px; | ||
523 | + height: 504px; | ||
524 | + } | ||
525 | + | ||
526 | + img { | ||
527 | + display: block; | ||
528 | + width: 100%; | ||
529 | + height: 100%; | ||
530 | + } | ||
531 | + } | ||
532 | + } | ||
533 | + | ||
534 | + .floor-header { | ||
535 | + position: relative; | ||
536 | + margin: 80px 0 40px; | ||
537 | + | ||
538 | + .floor-title { | ||
539 | + margin: 0 auto; | ||
540 | + width: 298px; | ||
541 | + height: 31px; | ||
542 | + line-height: 31px; | ||
543 | + border: 1px solid #000; | ||
544 | + font-size: 16px; | ||
545 | + text-align: center; | ||
546 | + } | ||
547 | + | ||
548 | + .header-navs { | ||
549 | + position: absolute; | ||
550 | + padding: 10px 0; | ||
551 | + top: 0; | ||
552 | + right: 0; | ||
553 | + font-size: 14px; | ||
554 | + | ||
555 | + li { | ||
556 | + float: left; | ||
557 | + padding: 1px 15px; | ||
558 | + border-left: 1px solid #ccc; | ||
559 | + | ||
560 | + &:first-child { | ||
561 | + border-left: none; | ||
562 | + } | ||
563 | + | ||
564 | + &:hover { | ||
565 | + text-decoration: underline; | ||
566 | + } | ||
567 | + | ||
568 | + a { | ||
569 | + color: #333; | ||
570 | + } | ||
571 | + } | ||
572 | + } | ||
573 | + } | ||
574 | +} | ||
575 | + | ||
576 | +@import "index-pliffy"; | ||
577 | +@import "min-index"; | ||
578 | +@import "brand"; | ||
579 | +@import "coupon"; |
public/scss/index/_min-index.css
0 → 100644
1 | +/* 首页990 */ | ||
2 | +.min-screen .home-page { | ||
3 | + width: 990px; | ||
4 | + | ||
5 | + /* 大banner */ | ||
6 | + .slide-container { | ||
7 | + height: 387px; | ||
8 | + | ||
9 | + img { | ||
10 | + display: block; | ||
11 | + } | ||
12 | + } | ||
13 | + | ||
14 | + .slide-thumb-container { | ||
15 | + height: 440px; | ||
16 | + } | ||
17 | + | ||
18 | + .slide-container-placeholder { | ||
19 | + height: 387px; | ||
20 | + } | ||
21 | + | ||
22 | + .slide-thumb-container-placeholder { | ||
23 | + height: 440px; | ||
24 | + } | ||
25 | + | ||
26 | + /* 大banner大图 */ | ||
27 | + .slide-wrapper { | ||
28 | + height: 387px; | ||
29 | + | ||
30 | + li { | ||
31 | + a { | ||
32 | + width: 990px; | ||
33 | + } | ||
34 | + } | ||
35 | + } | ||
36 | + | ||
37 | + /* 大图上的左右切换按钮 */ | ||
38 | + .slide-switch { | ||
39 | + display: block; | ||
40 | + | ||
41 | + a { | ||
42 | + &.prev { | ||
43 | + margin-left: -495px; | ||
44 | + } | ||
45 | + | ||
46 | + &.next { | ||
47 | + margin-right: -495px; | ||
48 | + } | ||
49 | + | ||
50 | + &:hover { | ||
51 | + opacity: 0.9; | ||
52 | + } | ||
53 | + } | ||
54 | + } | ||
55 | + | ||
56 | + /* 大banner缩略图 */ | ||
57 | + .thumb-pagination { | ||
58 | + width: 990px; | ||
59 | + margin: 7px auto 0; | ||
60 | + padding: 0; | ||
61 | + | ||
62 | + li { | ||
63 | + width: 118px; | ||
64 | + height: 46px; | ||
65 | + } | ||
66 | + } | ||
67 | + | ||
68 | + /* 女首碎片banner */ | ||
69 | + .debris-slider { | ||
70 | + height: 440px; | ||
71 | + | ||
72 | + .left-col { | ||
73 | + margin-right: 9px; | ||
74 | + | ||
75 | + a { | ||
76 | + width: 240px; | ||
77 | + height: 103px; | ||
78 | + } | ||
79 | + | ||
80 | + a:first-child { | ||
81 | + height: 214px; | ||
82 | + } | ||
83 | + } | ||
84 | + | ||
85 | + .center-col { | ||
86 | + width: 492px; | ||
87 | + margin-right: 9px; | ||
88 | + } | ||
89 | + | ||
90 | + .right-col a { | ||
91 | + width: 240px; | ||
92 | + height: 103px; | ||
93 | + } | ||
94 | + | ||
95 | + .right-col a:first-child { | ||
96 | + height: 326px; | ||
97 | + margin-bottom: 10px; | ||
98 | + } | ||
99 | + } | ||
100 | + | ||
101 | + /* 男首最新速报 */ | ||
102 | + .new-report { | ||
103 | + .report-list { | ||
104 | + width: 748px; | ||
105 | + | ||
106 | + li { | ||
107 | + width: 158px; | ||
108 | + height: 212px; | ||
109 | + | ||
110 | + &:first-child { | ||
111 | + width: 242px; | ||
112 | + height: 432px; | ||
113 | + } | ||
114 | + } | ||
115 | + } | ||
116 | + | ||
117 | + .last-item { | ||
118 | + width: 242px; | ||
119 | + height: 432px; | ||
120 | + } | ||
121 | + } | ||
122 | + | ||
123 | + /* 优选品牌 */ | ||
124 | + .preference-brand-list { | ||
125 | + width: 998px; | ||
126 | + } | ||
127 | + | ||
128 | + .preference-brand-item { | ||
129 | + margin-right: 7px; | ||
130 | + | ||
131 | + a { | ||
132 | + width: 159px; | ||
133 | + height: 74px; | ||
134 | + } | ||
135 | + } | ||
136 | + | ||
137 | + .preference-more { | ||
138 | + width: 159px; | ||
139 | + height: 74px; | ||
140 | + line-height: 90px; | ||
141 | + } | ||
142 | + | ||
143 | + .img-slider-wrapper { | ||
144 | + height: 480px; | ||
145 | + } | ||
146 | + | ||
147 | + .img-container-landscape { | ||
148 | + margin: 73px auto 0; | ||
149 | + width: 844px; | ||
150 | + height: 370px; | ||
151 | + | ||
152 | + .img-item { | ||
153 | + width: 275px; | ||
154 | + height: 100%; | ||
155 | + margin-right: 9px; | ||
156 | + } | ||
157 | + } | ||
158 | + | ||
159 | + /* 男首优选品牌 图片品牌 */ | ||
160 | + .img-brand { | ||
161 | + height: 150px; | ||
162 | + ul { | ||
163 | + width: 998px; | ||
164 | + } | ||
165 | + li { | ||
166 | + width: 325px; | ||
167 | + height: 150px; | ||
168 | + line-height: 150px; | ||
169 | + } | ||
170 | + } | ||
171 | + | ||
172 | + /* 男首优选品牌 logo品牌 */ | ||
173 | + .logo-brand { | ||
174 | + height: 246px; | ||
175 | + | ||
176 | + &.logos-10 { | ||
177 | + height: 164px; | ||
178 | + } | ||
179 | + | ||
180 | + ul { | ||
181 | + width: 998px; | ||
182 | + } | ||
183 | + | ||
184 | + li { | ||
185 | + margin: 8px 8px 0 0; | ||
186 | + width: 158px; | ||
187 | + height: 74px; | ||
188 | + line-height: 74px; | ||
189 | + } | ||
190 | + | ||
191 | + .logo-brand-switch { | ||
192 | + .iconfont { | ||
193 | + font-size: 24px; | ||
194 | + | ||
195 | + &.prev { | ||
196 | + top: -12px; | ||
197 | + } | ||
198 | + &.next { | ||
199 | + bottom: -12px; | ||
200 | + } | ||
201 | + } | ||
202 | + } | ||
203 | + } | ||
204 | + | ||
205 | + /* 创意生活商品分类 */ | ||
206 | + .categorys-list { | ||
207 | + ul { | ||
208 | + width: 1004px; | ||
209 | + } | ||
210 | + | ||
211 | + li { | ||
212 | + margin: 0 7px 7px 0; | ||
213 | + width: 161px; | ||
214 | + height: 214px; | ||
215 | + | ||
216 | + &.cate-item0 { | ||
217 | + width: 160px; | ||
218 | + height: 435px; | ||
219 | + } | ||
220 | + | ||
221 | + &.cate-item1 { | ||
222 | + width: 326px; | ||
223 | + height: 435px; | ||
224 | + } | ||
225 | + } | ||
226 | + } | ||
227 | + | ||
228 | + .floor-header { | ||
229 | + margin: 50px 0 30px; | ||
230 | + | ||
231 | + .header-navs { | ||
232 | + | ||
233 | + li { | ||
234 | + padding: 1px 10px; | ||
235 | + } | ||
236 | + } | ||
237 | + } | ||
238 | +} |
-
Please register or login to post a comment