123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- $('.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 += " <li data-matchtime='" + v.matchtime + "' class='zb_time_new_span_wrap' data_timen='" + v.matchtime.substring(0, 10) + "' tcid='" + v.tcid + "' data-ls=''><div class='zhibo_con_zuo'><p>" + v.matchtime.substring(11, 16) + "</p><span>" + v.name + "</span></div>" + v.title + "";
- a += "<div class='zhibo_con_right'><a href='" + v.id + "'><img src='/staticm/img/gxz.png'><span>高清直播</span></a><p class='z_cc'></p></div></li>";
- $('.zhibolist').append(a)
- });
- chariqi();
- zhuangtai();
- if ($(".zhibolist").find("li").length >= 30) {
- $(".ckmorezb").show()
- } else {
- $(".ckmorezb").hide()
- }
- };
- if (b == undefined) {
- $(".ckmorezb").html("没有更多数据了");
- if ($('.zhibolist li').length == 0) {
- $(".zhibolist").html('<p class="nodata2" style="border-bottom: 1px solid #eee;padding-bottom:.4rem;"><span><img src="/staticm/img/nodata2.png"></span><cite>暂无相关直播</cite></p>');
- $(".ckmorezb").hide()
- }
- }
- },
- error: function(e) {},
- })
- };
|