...
|
...
|
@@ -18,7 +18,9 @@ var $window = $(window), |
|
|
$headTab = $('.head-tab'),
|
|
|
headTabH = $headTab.height(),
|
|
|
scrollH = $(window).height() - headTabH,
|
|
|
$loadingTip = $('.loading-tip');
|
|
|
$loadingTip = $('.loading-tip'),
|
|
|
u = navigator.userAgent,
|
|
|
isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
|
|
|
|
/*
|
|
|
$swiperView = $('.swiper-view'),
|
...
|
...
|
@@ -33,8 +35,11 @@ var mySwiper; |
|
|
var avatarKey, bannerLen, res, avatarSwiper, avatarSwiperClone, getIndexHtml,
|
|
|
$avatarClone, $starArticle, $avatarWrap, starIScroll;
|
|
|
|
|
|
var swiperNum = ($('.swiper-num2').width() - $('.swiper-num1').width()) +
|
|
|
($('.swiper-num3').width() - $('.swiper-num1').width()) / 2;
|
|
|
var swiperNum = $('.avatar-wrap .swiper-slide').width() / 2;
|
|
|
|
|
|
if ($window.width() === 375 && isiOS) {
|
|
|
swiperNum = 32;
|
|
|
}
|
|
|
|
|
|
require('../common');
|
|
|
|
...
|
...
|
@@ -101,6 +106,7 @@ function setIndexAction() { |
|
|
if (bannerLen > 1) {
|
|
|
avatarSwiper = new Swiper('.avatar-1', {
|
|
|
loop: true,
|
|
|
initialSlide: 0,
|
|
|
centeredSlides: true,
|
|
|
slidesPerView: 'auto',
|
|
|
loopedSlides: bannerLen,
|
...
|
...
|
|