Commit 9a009f99 authored by agping's avatar agping

bug

parent 573efc0b
......@@ -331,14 +331,17 @@
preloadImages: false,
lazyLoading: true,
lazyLoadingOnTransitionStart: true,
initialSlide:click_shop_img-1,
onTransitionEnd: function(swiper) {
$('.lp-index').text(swiper.activeIndex + 1);
},
onInit: function(swiper) {
//默认第一页 怎么显示
// if(click_shop_img*1 > 1){
// swiper.activeIndex = click_shop_img-1;
// }
if(click_shop_img*1 > 1){
// swiper.initialSlide = click_shop_img-1;
swiper.activeIndex = click_shop_img-1;
}
$('.lp-index').text(swiper.activeIndex + 1);
// $('.lp-sum').text(swiper.imagesToLoad.length || swiper.imagesLoaded || $('img', '.lp-bunner').size());
$('.lp-sum').text($('.swiper-slide').size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment