...
|
...
|
@@ -245,9 +245,7 @@ function setIndexAction() { |
|
|
|
|
|
// 明星头像点击居中显示或跳转
|
|
|
$('.avatar-swiper li').on('click', function() {
|
|
|
if ($(this).hasClass('swiper-slide-active')) {
|
|
|
location.href = $(this).find('span').data('url');
|
|
|
} else {
|
|
|
if (!$(this).hasClass('swiper-slide-active')) {
|
|
|
avatarKey = $(this).index();
|
|
|
|
|
|
if (avatarKey >= (2 * bannerLen + 1)) {
|
...
|
...
|
@@ -260,6 +258,8 @@ function setIndexAction() { |
|
|
avatarSwiperClone && avatarSwiperClone.slideTo(avatarKey, 0);
|
|
|
avatarSwiper.slideTo(avatarKey, 0);
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|