diff --git a/index.html b/index.html index d8aa580..d2067c6 100644 --- a/index.html +++ b/index.html @@ -583,7 +583,6 @@ $(function(){ liveList(1,2) } else if(_self.attr("data-type")==3){ - $(".tag-big-box").hide() $(".mc-list-box").hide() $(".video-list-box").hide() diff --git a/room/liveRoom.html b/room/liveRoom.html index cdfbf76..84d65b9 100644 --- a/room/liveRoom.html +++ b/room/liveRoom.html @@ -822,20 +822,22 @@ $(function () { } html+='<div class="swiper-slide"><img data-type="https://www.footseen.xyz/mobile/download/downApp.html" class="act-btn" src="images/roomDown.png" alt=""></div>'; $(".swiper-wrapper").html(html); - - var swiper = new Swiper(".mySwiper", { - pagination: { - el: ".swiper-pagination", - clickable: true, - renderBullet: function (index, className) { - return '<span class="' + className + '">' + (index + 1) + "</span>"; - }, - }, - autoplay: { - delay: 8000, - }, - loop:true, - }); + if(data.dataList.activitys.length>0){ + var swiper = new Swiper(".mySwiper", { + pagination: { + el: ".swiper-pagination", + clickable: true, + renderBullet: function (index, className) { + return '<span class="' + className + '">' + (index + 1) + "</span>"; + }, + }, + autoplay: { + delay: 8000, + }, + loop:true, + }); + } + $(".act-btn").unbind("click").on("click",function(){ if(localStorage.token==undefined){ loginLayer()