Authored by 王水玲

新人专享添加

... ... @@ -243,6 +243,26 @@
{...}, //商品信息
...
]
},
//新人专享
freshOnly: {
title: {
title: '新人专享',
'more_url': '/boys/freshList'
},
big_image: {
url: '',
img: ''
},
list: [
{
url: '',
img: '',
title: ''
salePrice: '',
price: ''
}
]
}
]
}
... ... @@ -1473,3 +1493,11 @@
'yohoodHref' : '/yohood'
}
### 新人专享列表页
{
goods: [
{...}, //商品信息
...
]
}
... ...
... ... @@ -153,7 +153,8 @@ if ($('.fresh-list-swiper').find('li').size() > 1) {
lazyLoadingInPrevNext: true,
grabCursor: true,
slidesPerView: 'auto',
slideElement: 'li'
slideElement: 'li',
watchSlidesVisibility: true
});
}
... ...
... ... @@ -39,6 +39,8 @@
.fresh-list-swiper {
overflow: hidden;
padding-bottom: 15px;
background-color: #fff;
ul {
box-sizing: border-box;
... ... @@ -112,6 +114,5 @@
.fresh-list{
position: relative;
min-height: 440px;
padding-left: 14px;
padding:15px 0 0 15px;
}
\ No newline at end of file
... ...
{{> layout/header}}
<div class="fresh-list">
{{# freshList}}
{{> good}}
{{/freshList}}
</ul>
{{> layout/footer}}
\ No newline at end of file
... ...
... ... @@ -3,7 +3,7 @@
{{# big_image}}
<div class="fresh-swiper">
<a href="{{url}}">
<img class="lazy" data-original="{{img}}" alt="{{title}}">
<img class="lazy" data-original="{{img}}">
</a>
</div>
{{/ big_image}}
... ... @@ -13,17 +13,17 @@
<li class="swiper-slide">
<div class="img-box">
<a href="{{url}}">
<img class="" src="{{img}}" alt="">
<img class="swiper-lazy" data-src="{{img}}" alt="">
</a>
<!-- <div class="swiper-lazy-preloader"></div> -->
<div class="swiper-lazy-preloader"></div>
</div>
<div class="fresh-info">
<p class="fresh-name"><a href="{{url}}">{{title}}</a></p>
<p class="price">
<span class="cur-price"{{curPrice}}</span>
{{# oldPrice}}
<span class="old-price"{{oldPrice}}<span>
{{/oldPrice}}
<span class="cur-price"{{salePrice}}</span>
{{# price}}
<span class="old-price"{{.}}<span>
{{/price}}
</p>
<span class="fresh-icon">新人价</span>
</div>
... ...