Authored by Lynnic

头部swiper navigation buttons不能滑动时变灰色

@@ -11,7 +11,7 @@ var goodsSwiper; @@ -11,7 +11,7 @@ var goodsSwiper;
11 11
12 require('./desc'); 12 require('./desc');
13 require('./comments-consults'); 13 require('./comments-consults');
14 -require('./like'); 14 +
15 15
16 lazyLoad($('img.lazy')); 16 lazyLoad($('img.lazy'));
17 17
@@ -48,4 +48,6 @@ $('.goodsDiscount .dropdown').on('click', function() { @@ -48,4 +48,6 @@ $('.goodsDiscount .dropdown').on('click', function() {
48 $('.goodsDiscount .first-item span').html(''); 48 $('.goodsDiscount .first-item span').html('');
49 $('.goodsDiscount .discount-folder').slideUp(); 49 $('.goodsDiscount .discount-folder').slideUp();
50 } 50 }
51 -});  
  51 +});
  52 +
  53 +require('./like');
@@ -69,16 +69,19 @@ $basicBtnC:#eb0313; @@ -69,16 +69,19 @@ $basicBtnC:#eb0313;
69 background-size: pxToRem(48px) pxToRem(48px); 69 background-size: pxToRem(48px) pxToRem(48px);
70 background-position: center; 70 background-position: center;
71 background-repeat: no-repeat; 71 background-repeat: no-repeat;
  72 + &.swiper-button-disabled{
  73 + opacity: .3;
  74 + }
72 } 75 }
73 76
74 .next-grey { 77 .next-grey {
75 - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23f0f0f0'%2F%3E%3C%2Fsvg%3E"); 78 + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23a0a0a0'%2F%3E%3C%2Fsvg%3E");
76 right: pxToRem(30px); 79 right: pxToRem(30px);
77 left: auto; 80 left: auto;
78 } 81 }
79 82
80 .prev-grey { 83 .prev-grey {
81 - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23f0f0f0'%2F%3E%3C%2Fsvg%3E"); 84 + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23a0a0a0'%2F%3E%3C%2Fsvg%3E");
82 left: pxToRem(30px); 85 left: pxToRem(30px);
83 right: auto; 86 right: auto;
84 } 87 }