index.min.js 819 B

1
  1. $(function(){function r(a,t){t=t||1,$.ajax({url:getServerHttp("cp")+a,type:"post",cache:!1,dataType:"json",data:{p:t},success:function(t){for(var t=ajaxDataParames(t),e="",n=0;n<t.rows.length;n++)e+='<li><a href="'+("./component/news.html?kid="+t.rows[n].kid)+'" target="_blank" title="'+t.rows[n].title+'">'+t.rows[n].title+"<span>"+t.rows[n].date+"</span></a></li>";$(".lists ul").html(e),layui.laypage.render({elem:"paging",count:t.number,limit:20,first:"首页",last:"尾页",curr:t.p,groups:5,jump:function(t,e){e||(console.log("第"+t.curr+"页"),r(a,t.curr))}})}})}var e="/nx/article/enterprisedynamic",n=e;$(".option").on("click",function(t){"enterprisedynamic"===t.target.name?n=e:"industrynews"===t.target.name?n="/nx/article/industrynews":"policies"===t.target.name&&(n="/nx/article/policies"),r(n)}),r(n)});