Showing
1 changed file
with
11 additions
and
7 deletions
@@ -29,13 +29,7 @@ var brandsData, | @@ -29,13 +29,7 @@ var brandsData, | ||
29 | 29 | ||
30 | loading.showLoadingMask(); | 30 | loading.showLoadingMask(); |
31 | 31 | ||
32 | -//热门品牌滑动 | ||
33 | -hotBrandsSwiper = new Swiper('.brands-swiper', { | ||
34 | - grabCursor: true, | ||
35 | - slidesPerView: 'auto', | ||
36 | - wrapperClass: 'brands-list', | ||
37 | - slideElement: 'li' | ||
38 | -}); | 32 | + |
39 | 33 | ||
40 | lazyLoad($('img.lazy')); | 34 | lazyLoad($('img.lazy')); |
41 | $('.yoho-header').css({ | 35 | $('.yoho-header').css({ |
@@ -51,12 +45,22 @@ $('.yoho-header').css({ | @@ -51,12 +45,22 @@ $('.yoho-header').css({ | ||
51 | 45 | ||
52 | $('.hide-when-loading').show(); | 46 | $('.hide-when-loading').show(); |
53 | loading.hideLoadingMask(); | 47 | loading.hideLoadingMask(); |
48 | + | ||
49 | + //banner滑动 | ||
54 | swiper = new Swiper('.swiper-container', { | 50 | swiper = new Swiper('.swiper-container', { |
55 | lazyLoading: true, | 51 | lazyLoading: true, |
56 | loop: true, | 52 | loop: true, |
57 | autoplay: 3000, | 53 | autoplay: 3000, |
58 | pagination: '.swiper-pagination .pagination-inner' | 54 | pagination: '.swiper-pagination .pagination-inner' |
59 | }); | 55 | }); |
56 | + | ||
57 | + //热门品牌滑动 | ||
58 | + hotBrandsSwiper = new Swiper('.brands-swiper', { | ||
59 | + grabCursor: true, | ||
60 | + slidesPerView: 'auto', | ||
61 | + wrapperClass: 'brands-list', | ||
62 | + slideElement: 'li' | ||
63 | +}); | ||
60 | })(); | 64 | })(); |
61 | 65 | ||
62 | $fixTitleBar = $('<div class="title-bar fixed-title-bar"><h2></h2></div>'); | 66 | $fixTitleBar = $('<div class="title-bar fixed-title-bar"><h2></h2></div>'); |
-
Please register or login to post a comment