Authored by 梁志锋

update

... ... @@ -85,6 +85,7 @@ $('.sub-nav').on('mouseenter', 'li', function () {
if ($('.banner-swiper').find('li').size() > 1) {
bannerSwiper = new Swiper('.banner-swiper', {
lazyLoading: true,
lazyLoadingInPrevNext: true,
loop: true,
autoplay: 3000,
autoplayDisableOnInteraction: false,
... ...
... ... @@ -53,7 +53,7 @@ var $listNav = $('#list-nav'),
end: false
}
},
$pre, //纪录进入筛选前的active
$pre = $listNav.find('.active'), //纪录进入筛选前的active项,初始为选中
searching;
if ($('.swiper-container .swiper-slide').length > 1) {
... ...
... ... @@ -29,7 +29,7 @@
<div id="goods-container" class="goods-container">
{{# goodsContainer}}
<div class="new-goods container">
<div class="new-goods container clearfix">
{{#if goods}}
{{# goods}}
{{> good}}
... ...
... ... @@ -39,7 +39,7 @@
<div id="goods-container" class="goods-container">
{{# goodsContainer}}
<div class="new-goods container">
<div class="new-goods container clearfix">
{{#if goods}}
{{# goods}}
{{> good}}
... ... @@ -48,8 +48,8 @@
<p class="no-result">未找到相关搜索结果</p>
{{/if}}
</div>
<div class="price-goods container hide"></div>
<div class="discount-goods container hide"></div>
<div class="price-goods container hide clearfix"></div>
<div class="discount-goods container hide clearfix"></div>
{{/ goodsContainer}}
{{> filter}}
... ...
<div class="banner-top">
<div class="banner-swiper swiper-container">
<ul class="swiper-wrapper">
{{# list}}
<li class="swiper-slide">
<a href="{{url}}">
<img class="swiper-lazy" data-src="{{img}}">
</a>
<div class="swiper-lazy-preloader"></div>
</li>
{{/ list}}
{{#each list}}
{{#if @first}}
<li class="swiper-slide">
<a href="{{url}}">
<img src="{{img}}">
</a>
</li>
{{^}}
<li class="swiper-slide">
<a href="{{url}}">
<img class="swiper-lazy" data-src="{{img}}">
</a>
<div class="swiper-lazy-preloader"></div>
</li>
{{/if}}
{{/each}}
</ul>
</div>
<div class="swiper-pagination">
... ...
<div class="icons-wrapper">
<ul class="icons-list clearfix">
{{#list}}
<li class="icons-item"><a href="{{url}}" class="imagebar"><img class="lazy" data-original="{{img}}" alt=""></a><a href="{{url}}" class="linkbar">{{title}}</a></li>
<li class="icons-item"><a href="{{url}}" class="imagebar"><img src="{{img}}" alt=""></a><a href="{{url}}" class="linkbar">{{title}}</a></li>
{{/list}}
</ul>
</div>
\ No newline at end of file
</div>
... ...