Authored by biao

update for the slider style

@@ -4,12 +4,28 @@ const getContent = () => { @@ -4,12 +4,28 @@ const getContent = () => {
4 { 4 {
5 slider: [ 5 slider: [
6 { 6 {
7 - img: '//img10.static.yhbimg.com/yhb-img01/2016/06/23/13/01ebff30179db84975c42a4f3c8b1f4d44.jpg?imageView2/1/w/1150/h/450', 7 + img: '//img10.static.yhbimg.com/yhb-img01/2016/06/28/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2/w/1150/h/450',
  8 + link: '/'
  9 + },
  10 + {
  11 + img: '//img10.static.yhbimg.com/yhb-img01/2016/06/28/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2/w/1150/h/450',
8 link: '/' 12 link: '/'
9 }, 13 },
10 { 14 {
11 img: '//img10.static.yhbimg.com/yhb-img01/2016/06/23/13/01ebff30179db84975c42a4f3c8b1f4d44.jpg?imageView2/1/w/1150/h/450', 15 img: '//img10.static.yhbimg.com/yhb-img01/2016/06/23/13/01ebff30179db84975c42a4f3c8b1f4d44.jpg?imageView2/1/w/1150/h/450',
12 link: '/' 16 link: '/'
  17 + },
  18 + {
  19 + img: '//img10.static.yhbimg.com/yhb-img01/2016/06/28/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2/w/1150/h/450',
  20 + link: '/'
  21 + },
  22 + {
  23 + img: '//img10.static.yhbimg.com/yhb-img01/2016/06/28/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2/w/1150/h/450',
  24 + link: '/'
  25 + },
  26 + {
  27 + img: '//img10.static.yhbimg.com/yhb-img01/2016/06/28/11/015a86ade17dc6213bab85b2162adebcd6.jpg?imageView2/2/w/1150/h/450',
  28 + link: '/'
13 } 29 }
14 ] 30 ]
15 }, 31 },
@@ -70,22 +70,22 @@ @@ -70,22 +70,22 @@
70 position: absolute; 70 position: absolute;
71 top: 50%; 71 top: 50%;
72 margin: -30px 0 0; 72 margin: -30px 0 0;
73 - width: 60px; 73 + width: 30px;
74 height: 60px; 74 height: 60px;
75 line-height: 56px; 75 line-height: 56px;
76 text-align: center; 76 text-align: center;
77 z-index: 2; 77 z-index: 2;
78 - background: #fff; 78 + background: #000;
79 opacity: 0.55; 79 opacity: 0.55;
80 80
81 &.prev { 81 &.prev {
82 left: 50%; 82 left: 50%;
83 - margin-left: -575px; 83 + margin-left: -545px;
84 } 84 }
85 85
86 &.next { 86 &.next {
87 right: 50%; 87 right: 50%;
88 - margin-right: -575px; 88 + margin-right: -545px;
89 } 89 }
90 90
91 &:hover { 91 &:hover {
@@ -146,25 +146,25 @@ @@ -146,25 +146,25 @@
146 right: 0; 146 right: 0;
147 top: 0; 147 top: 0;
148 bottom: 0; 148 bottom: 0;
149 - background: #000;  
150 - opacity: 0.3;  
151 - border-radius: 13px; 149 + /*background: #000;*/
152 } 150 }
153 151
154 span { 152 span {
155 position: relative; 153 position: relative;
156 display: inline-block; 154 display: inline-block;
157 - margin: 0 7px;  
158 - width: 12px;  
159 - height: 12px;  
160 - background: #fff; 155 + margin: 0 3px;
  156 + width: 7px;
  157 + height: 7px;
  158 + background: #ccc;
161 cursor: pointer; 159 cursor: pointer;
162 - opacity: 0.6;  
163 - border-radius: 6px;  
164 z-index: 2; 160 z-index: 2;
165 161
166 &.focus { 162 &.focus {
167 - opacity: 1; 163 + width: 12px;
  164 + height: 12px;
  165 + position: relative;
  166 + top: 2px;
  167 + background: #fff;
168 } 168 }
169 } 169 }
170 } 170 }
@@ -31,28 +31,23 @@ @@ -31,28 +31,23 @@
31 right: 0; 31 right: 0;
32 top: 0; 32 top: 0;
33 bottom: 0; 33 bottom: 0;
34 - background: #000;  
35 - opacity: 0.3;  
36 - border-radius: 13px;  
37 } 34 }
38 35
  36 +/*
39 .slide-pagination-last span { 37 .slide-pagination-last span {
40 display: block; 38 display: block;
41 float: left; 39 float: left;
42 position: relative; 40 position: relative;
43 - margin: 0 7px;  
44 - width: 12px;  
45 - height: 12px; 41 + margin: 0 3px;
  42 + width: 6px;
  43 + height: 6px;
46 background: #fff; 44 background: #fff;
47 cursor: pointer; 45 cursor: pointer;
48 opacity: 0.6; 46 opacity: 0.6;
49 - border-radius: 6px;  
50 z-index: 2; 47 z-index: 2;
51 48
52 - &.focus {  
53 - opacity: 1;  
54 - }  
55 } 49 }
  50 +*/
56 51
57 .slide-switch { 52 .slide-switch {
58 display: none; 53 display: none;
@@ -66,12 +61,12 @@ @@ -66,12 +61,12 @@
66 position: absolute; 61 position: absolute;
67 top: 50%; 62 top: 50%;
68 margin: -30px 0 0; 63 margin: -30px 0 0;
69 - width: 60px; 64 + width: 30px;
70 height: 60px; 65 height: 60px;
71 line-height: 56px; 66 line-height: 56px;
72 text-align: center; 67 text-align: center;
73 z-index: 2; 68 z-index: 2;
74 - background: #fff; 69 + background: #000;
75 opacity: 0.55; 70 opacity: 0.55;
76 71
77 &:hover { 72 &:hover {