$(function() { tpxwCarousel(); midCarousel(); load_zscd(7); initImgLinkSwiper(); }); //鏀垮0浼犻€ function load_zscd(nums){ $.ajax({ url : '/consultfront/common/getManuscriptList/?channel_id=691b76c9b7954eb79e94b1da7c752fb1&check=do&pagesize=10&currpage=1', dataType: "json", type: "POST", success : function(data) { var count=1; var dataStr=""; $.each(data.infolist,function(i,json){ if(count++<=nums){ var _url = json.url if (json.redirect_url != "") { _url = json.redirect_url } var _tit = json.title; // if(_tit.length > 20){ // _tit = json.title.substring(0,20) + "..."; // } // var time_tmp = json.ptime; // var split = time_tmp.split('-'); // var date = split[1] + "/" + split[2] + "/" + split[0]; var _s = "
  • "+ _tit +""+json.ptime+"

  • "; } }) $("#zscdBox").append(dataStr); }, error:function(XMLHttpRequest, textStatus, errorThrown){ //alert('textStatus:'+textStatus); } }); } function initImgLinkSwiper(){ var swiper = new Swiper(".imgLink", { slidesPerView: 'auto', loop: true, autoplay: { delay:5000, disableOnInteraction:false, //瑙e喅婊戝姩鍚庝笉鑳借疆鎾殑闂 }, }); }