$('.index_z_caid_shaixuan').click(function(){ $('.mark_wrap').show(); $('body').css('overflow','hidden'); $('body').css('position','fixed'); }); $('.sx_con_wrap_cos').click(function(){ $('.mark_wrap').hide(); $('body').css('overflow','auto'); $('body').css('position','static'); }); $(".za_n_ua_wrap_top li").click(function() { $(".za_n_ua_wrap_top li").eq($(this).index()).addClass("za_n_ua_wrap_top_cor").siblings().removeClass('za_n_ua_wrap_top_cor'); $(".za_n_ua_wrap_con li").hide().eq($(this).index()).show(); }); $(function() { var a = new Swiper('.banner', { spaceBetween: 30, centeredSlides: true, autoplay: { delay: 2500, disableOnInteraction: false, }, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); var b = new Swiper('.wuxingss', { freeMode: true, slidesPerView: 'auto', freeModeSticky: true, }) }); zhuangtai_sy(); $(document).ready(function() { setInterval(zhuangtai_sy, 60000) }); if ($(".zhibolist").length) { chariqi() }; $(".navtow").click(function() { $(".fastnav").show(); $(".bodybox").hide(); $("header").hide(); $("footer").hide() }); if ($(".fastnav").length > 0) { $('.left ul li').eq(0).addClass('leftactive'); $(".fastnav").on("click", "#left li", function() { var i = $(this).index('.left ul li'); $(this).addClass('active').siblings().removeClass('active'); $('body, html').animate({ scrollTop: $('.right ul li').eq(i).offset().top - 40 }, 500) }); $(".fanhuiindex").click(function() { $(".fastnav").hide(); $(".bodybox").show(); $("header").show(); $("footer").show() }) }; var domainwww = $("body").attr("data-domainwww"); var domainstatic = $("body").attr("data-domainstatic"); var zburl = domainwww + "get/"; var pagezb = 1; var morcan = {}; if ($(".zhibolist").length) { $(".ckmorezb").click(function() { if ($(".ckmorezb").html() != "没有更多数据了") { morcan = {}; if ($(".ckmorezb").attr("data-sort") == "all") { morcan.page = pagezb; morcan.act = 101 }; if ($(".ckmorezb").attr("data-sort") == "re") { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0 }; if ($(".ckmorezb").attr("data-sort") == 1) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 1 }; if ($(".ckmorezb").attr("data-sort") == 2) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 2 }; if ($(".ckmorezb").attr("data-sort") == 3) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 3 }; if ($(".ckmorezb").attr("data-sort") == 4) { morcan.page = pagezb; morcan.act = 101; morcan.competid = 0; morcan.cid = 4 }; zbqhajax(morcan); pagezb += 1 } }) }; $(".index_z_caid li").click(function() { pagezb = 1; $(this).addClass("flhover").siblings().removeClass("flhover"); $(".zhibolist").html(''); var a = $(this).attr("data-sort"); $(".ckmorezb").attr("data-sort", a); $(".ckmorezb").html("查看更多直播"); zbqhdata(); zbqhajax(qhcan) }); var qhcan = {}; function zbqhdata() { qhcan = {}; if ($(".ckmorezb").attr("data-sort") == "all") { qhcan.act = 101 }; if ($(".ckmorezb").attr("data-sort") == "re") { qhcan.act = 101; qhcan.competid = 1 }; if ($(".ckmorezb").attr("data-sort") == 1) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 1 }; if ($(".ckmorezb").attr("data-sort") == 2) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 2 }; if ($(".ckmorezb").attr("data-sort") == 3) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 3 }; if ($(".ckmorezb").attr("data-sort") == 4) { qhcan.act = 101; qhcan.competid = 0; qhcan.cid = 4 } }; function zbqhajax(f) { $.ajax({ url: zburl, cache: false, type: 'post', async: false, dataType: 'json', data: f, success: function(r) { var b = r.data.paperList; var c = r.competitionArr; var d = r.teamArr; if (b != undefined && b.length) { $.each(b, function(i, v) { var a = ''; a += "
" + v.matchtime.substring(11, 16) + "
" + v.name + "暂无相关直播