|
@@ -255,9 +255,35 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="lib/mod.js"></script>
|
|
<script src="lib/mod.js"></script>
|
|
- <!-- <script src="lib/qrcode.js"></script> -->
|
|
|
|
<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>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
|
|
|