|
@@ -28,6 +28,9 @@ var mySwiper; |
|
@@ -28,6 +28,9 @@ var mySwiper; |
28
|
|
28
|
|
29
|
var avatarKey, bannerLen, res, avatarSwiper, avatarSwiperClone, getIndexHtml, $avatarClone, $avatar, $starArticle;
|
29
|
var avatarKey, bannerLen, res, avatarSwiper, avatarSwiperClone, getIndexHtml, $avatarClone, $avatar, $starArticle;
|
30
|
|
30
|
|
|
|
31
|
+var swiperNum = ($('.swiper-num2').width() - $('.swiper-num1').width()) +
|
|
|
32
|
+ ($('.swiper-num3').width() - $('.swiper-num1').width()) / 2;
|
|
|
33
|
+
|
31
|
require('../common');
|
34
|
require('../common');
|
32
|
|
35
|
|
33
|
lazyLoad($('img.lazy'));
|
36
|
lazyLoad($('img.lazy'));
|
|
@@ -126,7 +129,7 @@ function setIndexAction() { |
|
@@ -126,7 +129,7 @@ function setIndexAction() { |
126
|
slidesPerView: 'auto',
|
129
|
slidesPerView: 'auto',
|
127
|
loopedSlides: bannerLen,
|
130
|
loopedSlides: bannerLen,
|
128
|
spaceBetween: 10,
|
131
|
spaceBetween: 10,
|
129
|
- slidesOffsetBefore: -($('.swiper-num').width()),
|
132
|
+ slidesOffsetBefore: -swiperNum,
|
130
|
watchSlidesProgress: true,
|
133
|
watchSlidesProgress: true,
|
131
|
watchSlidesVisibility: true,
|
134
|
watchSlidesVisibility: true,
|
132
|
onInit: function() {
|
135
|
onInit: function() {
|
|
@@ -163,7 +166,7 @@ function setIndexAction() { |
|
@@ -163,7 +166,7 @@ function setIndexAction() { |
163
|
slidesPerView: 'auto',
|
166
|
slidesPerView: 'auto',
|
164
|
loopedSlides: bannerLen,
|
167
|
loopedSlides: bannerLen,
|
165
|
spaceBetween: 10,
|
168
|
spaceBetween: 10,
|
166
|
- slidesOffsetBefore: -($('.swiper-num').width()),
|
169
|
+ slidesOffsetBefore: -swiperNum,
|
167
|
watchSlidesProgress: true,
|
170
|
watchSlidesProgress: true,
|
168
|
watchSlidesVisibility: true,
|
171
|
watchSlidesVisibility: true,
|
169
|
onInit: function() {
|
172
|
onInit: function() {
|