...
|
...
|
@@ -79,10 +79,6 @@ $(function() { |
|
|
$('.top-downloadbar').css({zIndex: 9});
|
|
|
}, 400);
|
|
|
|
|
|
|
|
|
audioAction();
|
|
|
listenVideo();
|
|
|
|
|
|
share({
|
|
|
imgUrl: 'https://feature.yoho.cn/300x300.png',
|
|
|
title: 'YOHO!BUY有货年度潮流账单——快来看看你的潮流形象!速戳>>',
|
...
|
...
|
@@ -90,103 +86,108 @@ $(function() { |
|
|
desc: 'YOHO!BUY有货2016潮流轨迹'
|
|
|
});
|
|
|
|
|
|
mySwiper = new Swiper('.swiper-container', {
|
|
|
direction: 'vertical',
|
|
|
onTransitionEnd: function(swiper) {
|
|
|
var aIndex = swiper.activeIndex;
|
|
|
var i = 1;
|
|
|
|
|
|
if (aIndex === 1) {
|
|
|
setTimeout(function() {
|
|
|
$nav2Img.addClass('n2-img-animation');
|
|
|
$purdah1.addClass('purdah1-animation');
|
|
|
}, 300);
|
|
|
}
|
|
|
if ($('.account-share-page').length === 0) {
|
|
|
audioAction();
|
|
|
listenVideo();
|
|
|
|
|
|
mySwiper = new Swiper('.swiper-container', {
|
|
|
direction: 'vertical',
|
|
|
onTransitionEnd: function(swiper) {
|
|
|
var aIndex = swiper.activeIndex;
|
|
|
var i = 1;
|
|
|
|
|
|
if (aIndex === 1) {
|
|
|
setTimeout(function() {
|
|
|
$nav2Img.addClass('n2-img-animation');
|
|
|
$purdah1.addClass('purdah1-animation');
|
|
|
}, 300);
|
|
|
}
|
|
|
|
|
|
if (aIndex === 2) {
|
|
|
$purdahLeft.addClass('purdah-l-animation');
|
|
|
$purdahRight.addClass('purdah-r-animation');
|
|
|
if ($monthList.find('li').length === 0) {
|
|
|
for (i; i <= 32; i++) {
|
|
|
if (i === 7) {
|
|
|
$monthList.find('ul').append('<li class="goods-' + i + '"><div class="goods-gif-' + i + '"></div></li>');
|
|
|
} else {
|
|
|
$monthList.find('ul').append('<li class="goods-' + i + '"></li>');
|
|
|
if (aIndex === 2) {
|
|
|
$purdahLeft.addClass('purdah-l-animation');
|
|
|
$purdahRight.addClass('purdah-r-animation');
|
|
|
if ($monthList.find('li').length === 0) {
|
|
|
for (i; i <= 32; i++) {
|
|
|
if (i === 7) {
|
|
|
$monthList.find('ul').append('<li class="goods-' + i + '"><div class="goods-gif-' + i + '"></div></li>');
|
|
|
} else {
|
|
|
$monthList.find('ul').append('<li class="goods-' + i + '"></li>');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
$monthList.fadeIn();
|
|
|
}
|
|
|
$monthList.fadeIn();
|
|
|
}
|
|
|
|
|
|
if (aIndex === 3) {
|
|
|
$runMen.fadeIn();
|
|
|
}
|
|
|
if (aIndex === 3) {
|
|
|
$runMen.fadeIn();
|
|
|
}
|
|
|
|
|
|
if (aIndex !== 4) {
|
|
|
$video[0].pause();
|
|
|
if (audioStatus) {
|
|
|
$audio[0].play();
|
|
|
if (aIndex !== 4) {
|
|
|
$video[0].pause();
|
|
|
if (audioStatus) {
|
|
|
$audio[0].play();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (aIndex === 4) {
|
|
|
$videoBox.addClass('video-animation');
|
|
|
setTimeout(function() {
|
|
|
$('#video').show();
|
|
|
}, 600);
|
|
|
}
|
|
|
if (aIndex === 4) {
|
|
|
$videoBox.addClass('video-animation');
|
|
|
setTimeout(function() {
|
|
|
$('#video').show();
|
|
|
}, 600);
|
|
|
}
|
|
|
|
|
|
if (aIndex === 5) {
|
|
|
$spokesman.addClass('spokesman-animation');
|
|
|
tbTime = setTimeout(function() {
|
|
|
$tB.addClass('txt-animation');
|
|
|
}, 500);
|
|
|
handTime = setTimeout(function() {
|
|
|
$hand.addClass('hand-animation');
|
|
|
}, 1000);
|
|
|
twTime = setTimeout(function() {
|
|
|
$tW.addClass('txt-animation');
|
|
|
}, 1500);
|
|
|
}
|
|
|
},
|
|
|
onSlideChangeStart: function(swiper) {
|
|
|
var aIndex = swiper.activeIndex;
|
|
|
|
|
|
if (aIndex === 1 || aIndex === 3) {
|
|
|
$purdahLeft.removeClass('purdah-l-animation');
|
|
|
$purdahRight.removeClass('purdah-r-animation');
|
|
|
$monthList.fadeOut();
|
|
|
$monthList.find('ul').scrollLeft(0);
|
|
|
}
|
|
|
if (aIndex === 5) {
|
|
|
$spokesman.addClass('spokesman-animation');
|
|
|
tbTime = setTimeout(function() {
|
|
|
$tB.addClass('txt-animation');
|
|
|
}, 500);
|
|
|
handTime = setTimeout(function() {
|
|
|
$hand.addClass('hand-animation');
|
|
|
}, 1000);
|
|
|
twTime = setTimeout(function() {
|
|
|
$tW.addClass('txt-animation');
|
|
|
}, 1500);
|
|
|
}
|
|
|
},
|
|
|
onSlideChangeStart: function(swiper) {
|
|
|
var aIndex = swiper.activeIndex;
|
|
|
|
|
|
if (aIndex === 1 || aIndex === 3) {
|
|
|
$purdahLeft.removeClass('purdah-l-animation');
|
|
|
$purdahRight.removeClass('purdah-r-animation');
|
|
|
$monthList.fadeOut();
|
|
|
$monthList.find('ul').scrollLeft(0);
|
|
|
}
|
|
|
|
|
|
if (aIndex === 0 || aIndex === 2) {
|
|
|
$nav2Img.removeClass('n2-img-animation');
|
|
|
$purdah1.removeClass('purdah1-animation');
|
|
|
}
|
|
|
if (aIndex === 0 || aIndex === 2) {
|
|
|
$nav2Img.removeClass('n2-img-animation');
|
|
|
$purdah1.removeClass('purdah1-animation');
|
|
|
}
|
|
|
|
|
|
if (aIndex === 2 || aIndex === 4) {
|
|
|
$runMen.hide();
|
|
|
}
|
|
|
if (aIndex === 2 || aIndex === 4) {
|
|
|
$runMen.hide();
|
|
|
}
|
|
|
|
|
|
if (aIndex === 3 || aIndex === 5) {
|
|
|
$videoBox.removeClass('video-animation');
|
|
|
$('#video').hide();
|
|
|
}
|
|
|
if (aIndex === 3 || aIndex === 5) {
|
|
|
$videoBox.removeClass('video-animation');
|
|
|
$('#video').hide();
|
|
|
}
|
|
|
|
|
|
if (aIndex === 4 || aIndex === 6) {
|
|
|
clearTimeout(tbTime);
|
|
|
clearTimeout(twTime);
|
|
|
clearTimeout(handTime);
|
|
|
$spokesman.removeClass('spokesman-animation');
|
|
|
$tB.removeClass('txt-animation');
|
|
|
$hand.removeClass('hand-animation');
|
|
|
$tW.removeClass('txt-animation');
|
|
|
if (aIndex === 4 || aIndex === 6) {
|
|
|
clearTimeout(tbTime);
|
|
|
clearTimeout(twTime);
|
|
|
clearTimeout(handTime);
|
|
|
$spokesman.removeClass('spokesman-animation');
|
|
|
$tB.removeClass('txt-animation');
|
|
|
$hand.removeClass('hand-animation');
|
|
|
$tW.removeClass('txt-animation');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
// 开启2016潮流轨迹按钮
|
|
|
$('.start-btn').on('click', function() {
|
|
|
mySwiper.slideTo(1, 1000, true);
|
|
|
});
|
|
|
// 开启2016潮流轨迹按钮
|
|
|
$('.start-btn').on('click', function() {
|
|
|
mySwiper.slideTo(1, 1000, true);
|
|
|
});
|
|
|
}
|
|
|
}); |
...
|
...
|
|