...
|
...
|
@@ -28,6 +28,9 @@ var mySwiper; |
|
|
|
|
|
var avatarKey, bannerLen, res, avatarSwiper, avatarSwiperClone, getIndexHtml, $avatarClone, $avatar, $starArticle;
|
|
|
|
|
|
var swiperNum = ($('.swiper-num2').width() - $('.swiper-num1').width()) +
|
|
|
($('.swiper-num3').width() - $('.swiper-num1').width()) / 2;
|
|
|
|
|
|
require('../common');
|
|
|
|
|
|
lazyLoad($('img.lazy'));
|
...
|
...
|
@@ -126,7 +129,7 @@ function setIndexAction() { |
|
|
slidesPerView: 'auto',
|
|
|
loopedSlides: bannerLen,
|
|
|
spaceBetween: 10,
|
|
|
slidesOffsetBefore: -($('.swiper-num').width()),
|
|
|
slidesOffsetBefore: -swiperNum,
|
|
|
watchSlidesProgress: true,
|
|
|
watchSlidesVisibility: true,
|
|
|
onInit: function() {
|
...
|
...
|
@@ -163,7 +166,7 @@ function setIndexAction() { |
|
|
slidesPerView: 'auto',
|
|
|
loopedSlides: bannerLen,
|
|
|
spaceBetween: 10,
|
|
|
slidesOffsetBefore: -($('.swiper-num').width()),
|
|
|
slidesOffsetBefore: -swiperNum,
|
|
|
watchSlidesProgress: true,
|
|
|
watchSlidesVisibility: true,
|
|
|
onInit: function() {
|
...
|
...
|
|