浏览代码

DOTA2面板修改

PC-20180523CIYM\Administrator 5 年之前
父节点
当前提交
34c65ada82
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      2019专题/1908DOTA2/src/_panel.html
  2. 1 1
      2019专题/1908DOTA2/src/modules/page/panel.js

+ 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) {