var domainwww = $("body").attr("data-domainwww"); var domainstatic = $("body").attr("data-domainstatic"); var puturl = domainwww + "put/"; var geturl = domainwww + "get/"; if ($(".zbtwonav").length > 0) { var navSwiper = new Swiper('.zbtwonav', { freeMode: true, slidesPerView: 'auto', freeModeSticky: true, }); var dhsyz = ''; var gdwz = 0; $(".swiper-wrapper a").each(function(i, o) { if ($(o).hasClass("zbtwohover")) { dhsyz = i; navSlideWidth = $(this).css('width') } }); if (dhsyz < 6) { navSwiper.setTranslate(0) } else { gdwz = (parseInt(navSlideWidth) / 2) * (dhsyz + 1); navSwiper.setTranslate(-gdwz) } }; if ($(".zhibolist").length) { chariqi() }; zhuangtai(); $(document).ready(function() { setInterval(zhuangtai, 60000) }); var myScroll, pullDownEl, pullDownOffset, pullUpEl, pullUpOffset, generatedCount = 0; var pagezb = 1; var lscid = $(".loadhistory span").attr("data-cid"); var lscompetid = $(".loadhistory span").attr("data-competid"); function pullDownAction() { if ($(".loadhistory").attr("data-zbend") == 0) { $.ajax({ url: geturl, cache: false, type: 'post', async: false, dataType: 'json', data: { cid: lscid, competid: lscompetid, page: pagezb, act: 100, }, success: function(r) { var c = r.data.paperList; var d = r.competitionArr; var e = r.teamArr; if (c != undefined) { var f = $(".zhibolist").find(".zbnodata").length; if (f > 0) { $(".zhibolist").find(".zbnodata").remove() }; $.each(c, function(i, v) { var a = ""; a += "
  • "; if (v.home_id == 0) { a += "
    "; a += ""; a += "

    "; a += ""; if (d[v.competition_id] != undefined) { a += "" + d[v.competition_id].name + "" } else { a += "-" }; a += "

    "; a += "

    " + v.matchtime.substring(11, 16) + "

    "; a += "

    " + v.title + "

    "; a += "

    "; a += ""; a += "赛事回顾"; a += "

    "; a += "
    "; a += "
    " } else { if (e[v.home_id] == undefined || e[v.guest_id] == undefined) { if (v.title == '') { a += "
    "; a += ""; a += "

    "; a += ""; if (d[v.competition_id] != undefined) { a += "" + d[v.competition_id].name + "" } else { a += "-" }; a += "

    "; a += "

    " + v.matchtime.substring(11, 16) + "

    "; a += "

    -

    "; a += "

    "; a += ""; a += "赛事回顾"; a += "

    "; a += "
    "; a += "
    " } else { a += "
    "; a += ""; a += "

    "; a += ""; if (d[v.competition_id] != undefined) { a += "" + d[v.competition_id].name + "" } else { a += "-" }; a += "

    "; a += "

    " + v.matchtime.substring(11, 16) + "

    "; a += "

    " + v.title + "

    "; a += "

    "; a += ""; a += "赛事回顾"; a += "

    "; a += "
    "; a += "
    " } } else { a += "
    "; var b = saishifl(v.tcid); a += ""; a += ""; a += ""; a += "

    " + e[v.home_id].shot_name + "

    "; a += "
    "; a += "
    "; a += "
    "; a += ""; a += "

    "; a += ""; if (d[v.competition_id] != undefined) { a += "" + d[v.competition_id].name + "" } else { a += "-" }; a += "

    "; a += "

    " + v.matchtime.substring(11, 16) + "

    "; a += "

    "; a += ""; a += "赛事回顾"; a += "

    "; a += "
    "; a += "
    "; a += "
    "; a += ""; a += ""; a += ""; a += ""; a += "

    " + e[v.guest_id].shot_name + "

    "; a += "
    " } }; a += "
  • "; $('#historylist').prepend(a) }); $(".contest_list").find(".jintiancrq").remove(); chariqi_yesd(); $(".zhibolist").find(".nodata2").remove(); myScroll.refresh() } else { $(".loadhistory").attr("data-zbend", "1") } }, error: function(e) {}, }) } else { $(".tskuan_black p").html("没有更多数据"); $(".tskuan_black").show(); setTimeout(function() { $(".tskuan_black").hide() }, 1000) } }; var page = 1; function pullUpAction() { if ($(".alldataxian").is(':hidden')) { $.ajax({ url: "", dataType: "json", async: true, data: { page: page, }, type: "POST", success: function(r) { var c = r.competitionArr; var d = r.data.paperList; var e = r.teamArr; if (d != undefined) { var f = $(".zhibolist").find(".zbnodata").length; if (f > 0) { $(".zhibolist").find(".zbnodata").remove() }; off_on = true; $.each(d, function(i, v) { var a = ""; a += "
  • "; if (v.home_id == 0) { a += "
    "; a += ""; a += "

    "; a += ""; if (c[v.competition_id] != undefined) { a += "" + c[v.competition_id].name + "" } else { a += "-" }; a += "

    "; a += "

    " + v.matchtime.substring(11, 16) + "

    "; a += "

    " + v.title + "

    "; a += "

    "; a += ""; a += "视频直播"; a += "

    "; a += "
    "; a += "
    " } else { if (e[v.home_id] == undefined || e[v.guest_id] == undefined) { if (v.title == '') { a += "
    "; a += ""; a += "

    "; a += ""; if (c[v.competition_id] != undefined) { a += "" + c[v.competition_id].name + "" } else { a += "-" }; a += "

    "; a += "

    " + v.matchtime.substring(11, 16) + "

    "; a += "

    -

    "; a += "

    "; a += ""; a += "视频直播"; a += "

    "; a += "
    "; a += "
    " } else { a += "
    "; a += ""; a += "

    "; a += ""; if (c[v.competition_id] != undefined) { a += "" + c[v.competition_id].name + "" } else { a += "-" }; a += "

    "; a += "

    " + v.matchtime.substring(11, 16) + "

    "; a += "

    " + v.title + "

    "; a += "

    "; a += ""; a += "视频直播"; a += "

    "; a += "
    "; a += "
    " } } else { a += "
    "; var b = saishifl(v.tcid); a += ""; a += ""; a += ""; a += "

    " + e[v.home_id].shot_name + "

    "; a += "
    "; a += "
    "; a += "
    "; a += ""; a += "

    "; a += ""; if (c[v.competition_id] != undefined) { a += "" + c[v.competition_id].name + "" } else { a += "-" }; a += "

    "; a += "

    " + v.matchtime.substring(11, 16) + "

    "; a += "

    "; a += ""; a += "视频直播"; a += "

    "; a += "
    "; a += "
    "; a += "
    "; a += ""; a += ""; a += ""; a += ""; a += "

    " + e[v.guest_id].shot_name + "

    "; a += "
    " } }; a += "
  • "; $(".zhibolist").append(a); myScroll.refresh() }) } else { $(".alldataxian").show() }; chariqi(); chariqi_yesd() }, complete: function() { setTimeout(function() { $(".jiazai_gif").hide() }, 500) }, error: function(e) {}, }) } else { $(".jiazai_gif").hide(); $(".tskuan_black p").html("没有更多数据"); $(".tskuan_black").show(); setTimeout(function() { $(".tskuan_black").hide() }, 1000) } };