|
@@ -28,7 +28,7 @@
|
|
<img src="/wxswordfish/images/guide-5.png">
|
|
<img src="/wxswordfish/images/guide-5.png">
|
|
</div>
|
|
</div>
|
|
<div class="swiper-slide">
|
|
<div class="swiper-slide">
|
|
- <img src="/wxswordfish/images/guide-6.png">
|
|
|
|
|
|
+ <img src="/wxswordfish/images/share-cj.jpg">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 如果需要分页器 -->
|
|
<!-- 如果需要分页器 -->
|
|
@@ -65,6 +65,9 @@ $(function(){
|
|
direction: 'vertical',
|
|
direction: 'vertical',
|
|
touchMoveStopPropagation: false,
|
|
touchMoveStopPropagation: false,
|
|
virtualTranslate: true,
|
|
virtualTranslate: true,
|
|
|
|
+ onInit: function(swiper){
|
|
|
|
+ $("[data-swiper-slide-index='5']>img").attr("src","/wxswordfish/images/guide-6.png");
|
|
|
|
+ },
|
|
onSlideChangeStart: function(swiper){
|
|
onSlideChangeStart: function(swiper){
|
|
if(flag){
|
|
if(flag){
|
|
flag = false;
|
|
flag = false;
|
|
@@ -73,26 +76,28 @@ $(function(){
|
|
var prevSlide = $(swiper.slides[swiper.previousIndex]);
|
|
var prevSlide = $(swiper.slides[swiper.previousIndex]);
|
|
prevSlide.addClass("slide-active");
|
|
prevSlide.addClass("slide-active");
|
|
var activeSlide = $(swiper.slides[swiper.activeIndex]);
|
|
var activeSlide = $(swiper.slides[swiper.activeIndex]);
|
|
- if(currentIndex > swiper.activeIndex){
|
|
|
|
|
|
+ if(currentIndex == 0 && swiper.activeIndex == 0){
|
|
activeSlide.addClass("slide-down");
|
|
activeSlide.addClass("slide-down");
|
|
- }else if(currentIndex < swiper.activeIndex){
|
|
|
|
- activeSlide.addClass("slide-up");
|
|
|
|
|
|
+ }else{
|
|
|
|
+ if(currentIndex > swiper.activeIndex){
|
|
|
|
+ activeSlide.addClass("slide-down");
|
|
|
|
+ }else if(currentIndex < swiper.activeIndex){
|
|
|
|
+ activeSlide.addClass("slide-up");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
currentIndex = swiper.activeIndex;
|
|
currentIndex = swiper.activeIndex;
|
|
- activeSlide.one("webkitAnimationEnd",function(){
|
|
|
|
- $(this).removeClass("slide-up").removeClass("slide-down");
|
|
|
|
- prevSlide.removeClass("slide-active");
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- onSliderMove: function(swiper, event){
|
|
|
|
- if(swiper.isBeginning){
|
|
|
|
|
|
+ if(currentIndex == 7){
|
|
|
|
+ currentIndex = 0;
|
|
|
|
+ }
|
|
|
|
+ if(swiper.isEnd || swiper.activeIndex == 1){
|
|
$("#QRcode").show();
|
|
$("#QRcode").show();
|
|
}else{
|
|
}else{
|
|
$("#QRcode").hide();
|
|
$("#QRcode").hide();
|
|
}
|
|
}
|
|
- if(swiper.isEnd) {
|
|
|
|
- currentIndex = 0;
|
|
|
|
- }
|
|
|
|
|
|
+ activeSlide.one("webkitAnimationEnd",function(){
|
|
|
|
+ $(this).removeClass("slide-up").removeClass("slide-down");
|
|
|
|
+ prevSlide.removeClass("slide-active");
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
/*
|
|
/*
|