Showing
1 changed file
with
6 additions
and
7 deletions
@@ -37,13 +37,6 @@ hotBrandsSwiper = new Swiper('.brands-swiper', { | @@ -37,13 +37,6 @@ hotBrandsSwiper = new Swiper('.brands-swiper', { | ||
37 | slideElement: 'li' | 37 | slideElement: 'li' |
38 | }); | 38 | }); |
39 | 39 | ||
40 | -swiper = new Swiper('.swiper-container', { | ||
41 | - lazyLoading: true, | ||
42 | - loop: true, | ||
43 | - autoplay: 3000, | ||
44 | - pagination: '.swiper-pagination .pagination-inner' | ||
45 | -}); | ||
46 | - | ||
47 | lazyLoad($('img.lazy')); | 40 | lazyLoad($('img.lazy')); |
48 | $('.yoho-header').css({ | 41 | $('.yoho-header').css({ |
49 | 'z-index': 2, | 42 | 'z-index': 2, |
@@ -58,6 +51,12 @@ $('.yoho-header').css({ | @@ -58,6 +51,12 @@ $('.yoho-header').css({ | ||
58 | 51 | ||
59 | $('.hide-when-loading').show(); | 52 | $('.hide-when-loading').show(); |
60 | loading.hideLoadingMask(); | 53 | loading.hideLoadingMask(); |
54 | + swiper = new Swiper('.swiper-container', { | ||
55 | + lazyLoading: true, | ||
56 | + loop: true, | ||
57 | + autoplay: 3000, | ||
58 | + pagination: '.swiper-pagination .pagination-inner' | ||
59 | + }); | ||
61 | })(); | 60 | })(); |
62 | 61 | ||
63 | $fixTitleBar = $('<div class="title-bar fixed-title-bar"><h2></h2></div>'); | 62 | $fixTitleBar = $('<div class="title-bar fixed-title-bar"><h2></h2></div>'); |
-
Please register or login to post a comment