Ver Fonte

DOTA2面板修改

PC-20180523CIYM\Administrator há 5 anos atrás
pai
commit
34c65ada82

+ 1 - 1
2019专题/1908DOTA2/src/_panel.html

@@ -15,7 +15,7 @@
 </head>
 
 <body>
-    <div class="page-stake-main">
+    <div class="page-stake-main" data-current="20">
         <div class="page-stake">
             <div class="match-content">
                 <div class="match-slider-wrap">

+ 1 - 1
2019专题/1908DOTA2/src/modules/page/panel.js

@@ -36,7 +36,7 @@ var V = {
         var winWidth = $(window).width(),
             btnLen = $('.week-btn-wrap').find('.btn').length,
             _index = $('.week-btn-wrap .btn.active').index(),
-            initIndex = Number($('.week-btn-wrap .btn.active').attr('data-week')) || 0;
+            initIndex = Number($('[data-current]').attr('data-current')) || 0;
         if(winWidth > 750) {
             this.initSwiper(_index, 4, initIndex, 16);
             if (btnLen > 9) {