xiesj 6 роки тому
батько
коміт
13ebdf5559

+ 28 - 2
2018专题/德玛西亚杯/src/_demacia.html

@@ -255,9 +255,35 @@
         </div>
     </div>
     <script src="lib/mod.js"></script>
-    <!-- <script src="lib/qrcode.js"></script> -->
     <script>
-        require('modules/page/deMarcia.js');
+     var Swiper = require('src/modules/page/swiper.min');//轮播
+    if ($(".page-stake-main1").parent().hasClass("game_live")) {
+        $(".page-stake-main1 .guess-tag").hide()
+    }
+    function initSwiper(num) {
+        swiper = new Swiper('.top-swiper-container', {
+            slidesPerView: num,
+            centeredSlides: false,
+            spaceBetween: 16,
+            slideClass: 'top-swiper-slide',
+            initialSlide: 3,
+            navigation: {
+                nextEl: '.swiper-button-next',
+                prevEl: '.swiper-button-prev',
+            }
+        });
+    }
+    function screenInit() {
+        var winWidth = $(window).width();
+        if (winWidth > 750) {
+            this.initSwiper(4);
+        } else {
+            $(".page-stake-main1").css('width', winWidth)
+            this.initSwiper(2);
+
+        }
+    }
+    screenInit()
     </script>
 </body>
 

+ 2 - 1
2018专题/德玛西亚杯/src/modules/page/deMarcia.js

@@ -144,6 +144,7 @@ var V = {
             centeredSlides: false,
             spaceBetween: 16,
             slideClass : 'top-swiper-slide',
+            initialSlide:3,
             navigation: {
               nextEl: '.swiper-button-next',
               prevEl: '.swiper-button-prev',
@@ -450,4 +451,4 @@ var Day = {
 // C.init();
 V.init();
 
-// Day.getDayTime()
+

+ 8 - 0
2018专题/德玛西亚杯/src/sass/deMarcia.scss

@@ -569,7 +569,15 @@ body{
      }
  }
 
+
+.page-stake .team-btn-wrap {
+    display: flex;
+    justify-content: space-between;
+}
  @media screen and (max-width: 750px) {
+     .page-stake-main1 .page-stake {
+         padding: 0 38px !important;
+     }
      .page-stake .match-container {
          padding: 16px 7px 15px;
      }