Authored by 毕凯

Merge branch 'feature/shopBanner' into 'release/6.2'

店铺轮播



See merge request !1000
@@ -50,6 +50,7 @@ if ($('.shop-swiper')) { @@ -50,6 +50,7 @@ if ($('.shop-swiper')) {
50 let num = $('.shop-swiper').length; 50 let num = $('.shop-swiper').length;
51 51
52 for (let i = 1; i <= num; i++) { 52 for (let i = 1; i <= num; i++) {
  53 + if ($('.shop-swiper-' + i).find('.swiper-slide').length > 1) {
53 new Swiper2('.shop-swiper-' + i, { 54 new Swiper2('.shop-swiper-' + i, {
54 lazyLoading: true, 55 lazyLoading: true,
55 lazyLoadingInPrevNext: true, 56 lazyLoadingInPrevNext: true,
@@ -60,6 +61,7 @@ if ($('.shop-swiper')) { @@ -60,6 +61,7 @@ if ($('.shop-swiper')) {
60 pagination: $(this).closest('.shop-swiper-' + i).find('.pagination-inner').get(0) 61 pagination: $(this).closest('.shop-swiper-' + i).find('.pagination-inner').get(0)
61 }); 62 });
62 } 63 }
  64 + }
63 } 65 }
64 66
65 /** 67 /**