|
@@ -25,7 +25,7 @@
|
|
|
<a class="guess-tag zhuanti" href="http://lol.duowan.com/1810/m_403891999287.html">总决赛竞猜</a>
|
|
|
<div class="week-select clearfix">
|
|
|
<div class="week-btn-wrap clearfix">
|
|
|
- <div class="btn active" data-week="1">第1天</div>
|
|
|
+ <div class="btn" data-week="1">第1天</div>
|
|
|
|
|
|
<div class="btn " data-week="2">第2天</div>
|
|
|
|
|
@@ -37,7 +37,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="match-slider-wrap">
|
|
|
- <div class="top-swiper-container swiper-container-horizontal" data-initialslide="3">
|
|
|
+ <div class="top-swiper-container swiper-container-horizontal hide" data-initialslide="3">
|
|
|
<div class="swiper-wrapper">
|
|
|
<div class="top-swiper-slide swiper-slide-active">
|
|
|
<div class="match-container">
|
|
@@ -728,9 +728,13 @@
|
|
|
|
|
|
var elements = $('.top-swiper-container')
|
|
|
var currentIndex = 0
|
|
|
+
|
|
|
var swipers = Array($('.top-swiper-container').length)
|
|
|
var slidesPerView = $(window).width() > 750 ? 4 : 2
|
|
|
|
|
|
+ elements.eq(currentIndex).removeClass('hide')
|
|
|
+ $('.week-btn-wrap .btn').eq(currentIndex).addClass('active')
|
|
|
+
|
|
|
swipers[currentIndex] = new Swiper(elements[currentIndex], {
|
|
|
slidesPerView: slidesPerView,
|
|
|
centeredSlides: false,
|