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 += "
" + e[v.home_id].shot_name + "
"; a += ""; a += "" + e[v.home_id].shot_name + "
"; a += ""; a += "