Authored by 阿达

修改sale css

@@ -15,7 +15,7 @@ var homePage = $('.home-page').data('page'), @@ -15,7 +15,7 @@ var homePage = $('.home-page').data('page'),
15 require('../common'); 15 require('../common');
16 16
17 require('../plugins/slider'); 17 require('../plugins/slider');
18 -require('../plugins/logo-brand'); 18 +require('../product/index/logo-brand');
19 19
20 require('../plugins/accordion'); 20 require('../plugins/accordion');
21 21
@@ -27,7 +27,7 @@ $(document).on('mouseout', '.imgopacity a img', function() { @@ -27,7 +27,7 @@ $(document).on('mouseout', '.imgopacity a img', function() {
27 }); 27 });
28 28
29 if ($.inArray(homePage, ['boys', 'girls', 'kids', 'lifestyle']) > -1) { 29 if ($.inArray(homePage, ['boys', 'girls', 'kids', 'lifestyle']) > -1) {
30 - require('../plugins/new-arrivls')({ 30 + require('../product/index/new-arrivls')({
31 type: homePage, 31 type: homePage,
32 url: '/common/getNewArrival', 32 url: '/common/getNewArrival',
33 count: (homePage === 'boys') || (homePage === 'lifestyle') ? 5 : 4, 33 count: (homePage === 'boys') || (homePage === 'lifestyle') ? 5 : 4,
@@ -73,6 +73,7 @@ @@ -73,6 +73,7 @@
73 margin-left: 10px; 73 margin-left: 10px;
74 padding-right: 5px; 74 padding-right: 5px;
75 padding-left: 5px; 75 padding-left: 5px;
  76 + font-weight: bold;
76 } 77 }
77 78
78 .vip-tag { 79 .vip-tag {
@@ -417,66 +417,6 @@ @@ -417,66 +417,6 @@
417 color: #565656; 417 color: #565656;
418 font-size: 13px; 418 font-size: 13px;
419 } 419 }
420 - span.vip-tag {  
421 - background-image: resolve("sale/vip.png");  
422 - background-repeat: no-repeat;  
423 - background-size: 100% 90%;  
424 - width: 40px;  
425 - color: #fff;  
426 - font-style: italic;  
427 - margin-right: 5px;  
428 - margin-left: 5px;  
429 - width: 30px;  
430 - }  
431 -  
432 - span.vip-1 {  
433 - background-image: resolve("product/silver-small.png");  
434 - background-repeat: no-repeat;  
435 - width: 30px;  
436 - display: inline-block;  
437 - height: 12px;  
438 - color: #fff;  
439 - font-style: italic;  
440 - margin-right: 5px;  
441 - margin-left: 5px;  
442 - position: absolute;  
443 - }  
444 -  
445 - span.vip-2 {  
446 - background-image: resolve("product/golden-small.png");  
447 - background-repeat: no-repeat;  
448 - width: 30px;  
449 - display: inline-block;  
450 - height: 12px;  
451 - color: #fff;  
452 - font-style: italic;  
453 - margin-right: 5px;  
454 - margin-left: 5px;  
455 - position: absolute;  
456 - }  
457 -  
458 - span.vip-3 {  
459 - background-image: resolve("product/platinum-small.png");  
460 - background-repeat: no-repeat;  
461 - width: 30px;  
462 - display: inline-block;  
463 - height: 12px;  
464 - color: #fff;  
465 - font-style: italic;  
466 - margin-right: 5px;  
467 - margin-left: 5px;  
468 - position: absolute;  
469 - }  
470 -  
471 - .price-sale {  
472 - margin-left: 10px;  
473 - padding-left: 10px;  
474 - width: 36px;  
475 - height: 20px;  
476 - line-height: 20px;  
477 - background: url('../assets/images/furniture/sale-tag-bg.png?1450667948');  
478 - color: #fff;  
479 - }  
480 } 420 }
481 } 421 }
482 422
@@ -498,10 +438,36 @@ @@ -498,10 +438,36 @@
498 438
499 .good-info { 439 .good-info {
500 .good-detail-text { 440 .good-detail-text {
  441 +
  442 + > a {
  443 + margin-top: 16px;
  444 + line-height: 1.5;
  445 + display: block;
  446 + text-align: center;
  447 +
  448 + @mixin ellipsis;
  449 + }
  450 +
501 > .price { 451 > .price {
502 margin-top: 5px; 452 margin-top: 5px;
503 text-align: center; 453 text-align: center;
504 } 454 }
  455 + .brand {
  456 + display: none;
  457 + }
  458 +
  459 + .market-price {
  460 + text-decoration: line-through;
  461 + margin-right: 15px;
  462 + color: #444;
  463 + font-weight: bold;
  464 + }
  465 +
  466 + > .price {
  467 + margin-top: 5px;
  468 + font-weight: bold;
  469 + }
  470 +
505 } 471 }
506 } 472 }
507 } 473 }