Showing
5 changed files
with
47 additions
and
10 deletions
@@ -243,6 +243,26 @@ | @@ -243,6 +243,26 @@ | ||
243 | {...}, //商品信息 | 243 | {...}, //商品信息 |
244 | ... | 244 | ... |
245 | ] | 245 | ] |
246 | + }, | ||
247 | + //新人专享 | ||
248 | + freshOnly: { | ||
249 | + title: { | ||
250 | + title: '新人专享', | ||
251 | + 'more_url': '/boys/freshList' | ||
252 | + }, | ||
253 | + big_image: { | ||
254 | + url: '', | ||
255 | + img: '' | ||
256 | + }, | ||
257 | + list: [ | ||
258 | + { | ||
259 | + url: '', | ||
260 | + img: '', | ||
261 | + title: '' | ||
262 | + salePrice: '', | ||
263 | + price: '' | ||
264 | + } | ||
265 | + ] | ||
246 | } | 266 | } |
247 | ] | 267 | ] |
248 | } | 268 | } |
@@ -1473,3 +1493,11 @@ | @@ -1473,3 +1493,11 @@ | ||
1473 | 'yohoodHref' : '/yohood' | 1493 | 'yohoodHref' : '/yohood' |
1474 | } | 1494 | } |
1475 | 1495 | ||
1496 | +### 新人专享列表页 | ||
1497 | +{ | ||
1498 | + goods: [ | ||
1499 | + {...}, //商品信息 | ||
1500 | + ... | ||
1501 | + ] | ||
1502 | +} | ||
1503 | + |
@@ -153,7 +153,8 @@ if ($('.fresh-list-swiper').find('li').size() > 1) { | @@ -153,7 +153,8 @@ if ($('.fresh-list-swiper').find('li').size() > 1) { | ||
153 | lazyLoadingInPrevNext: true, | 153 | lazyLoadingInPrevNext: true, |
154 | grabCursor: true, | 154 | grabCursor: true, |
155 | slidesPerView: 'auto', | 155 | slidesPerView: 'auto', |
156 | - slideElement: 'li' | 156 | + slideElement: 'li', |
157 | + watchSlidesVisibility: true | ||
157 | }); | 158 | }); |
158 | } | 159 | } |
159 | 160 |
@@ -39,6 +39,8 @@ | @@ -39,6 +39,8 @@ | ||
39 | 39 | ||
40 | .fresh-list-swiper { | 40 | .fresh-list-swiper { |
41 | overflow: hidden; | 41 | overflow: hidden; |
42 | + padding-bottom: 15px; | ||
43 | + background-color: #fff; | ||
42 | 44 | ||
43 | ul { | 45 | ul { |
44 | box-sizing: border-box; | 46 | box-sizing: border-box; |
@@ -112,6 +114,5 @@ | @@ -112,6 +114,5 @@ | ||
112 | 114 | ||
113 | .fresh-list{ | 115 | .fresh-list{ |
114 | position: relative; | 116 | position: relative; |
115 | - min-height: 440px; | ||
116 | - padding-left: 14px; | 117 | + padding:15px 0 0 15px; |
117 | } | 118 | } |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | {{# big_image}} | 3 | {{# big_image}} |
4 | <div class="fresh-swiper"> | 4 | <div class="fresh-swiper"> |
5 | <a href="{{url}}"> | 5 | <a href="{{url}}"> |
6 | - <img class="lazy" data-original="{{img}}" alt="{{title}}"> | 6 | + <img class="lazy" data-original="{{img}}"> |
7 | </a> | 7 | </a> |
8 | </div> | 8 | </div> |
9 | {{/ big_image}} | 9 | {{/ big_image}} |
@@ -13,17 +13,17 @@ | @@ -13,17 +13,17 @@ | ||
13 | <li class="swiper-slide"> | 13 | <li class="swiper-slide"> |
14 | <div class="img-box"> | 14 | <div class="img-box"> |
15 | <a href="{{url}}"> | 15 | <a href="{{url}}"> |
16 | - <img class="" src="{{img}}" alt=""> | 16 | + <img class="swiper-lazy" data-src="{{img}}" alt=""> |
17 | </a> | 17 | </a> |
18 | - <!-- <div class="swiper-lazy-preloader"></div> --> | 18 | + <div class="swiper-lazy-preloader"></div> |
19 | </div> | 19 | </div> |
20 | <div class="fresh-info"> | 20 | <div class="fresh-info"> |
21 | <p class="fresh-name"><a href="{{url}}">{{title}}</a></p> | 21 | <p class="fresh-name"><a href="{{url}}">{{title}}</a></p> |
22 | <p class="price"> | 22 | <p class="price"> |
23 | - <span class="cur-price">¥{{curPrice}}</span> | ||
24 | - {{# oldPrice}} | ||
25 | - <span class="old-price">¥{{oldPrice}}<span> | ||
26 | - {{/oldPrice}} | 23 | + <span class="cur-price">¥{{salePrice}}</span> |
24 | + {{# price}} | ||
25 | + <span class="old-price">¥{{.}}<span> | ||
26 | + {{/price}} | ||
27 | </p> | 27 | </p> |
28 | <span class="fresh-icon">新人价</span> | 28 | <span class="fresh-icon">新人价</span> |
29 | </div> | 29 | </div> |
-
Please register or login to post a comment