$(function() { var blogUrl = ''; var dataUrl = ''; function AjaxFan(pagenum) { dataUrl = getServerHttp() + '/nx/o/list/org'; $.ajax({ url: dataUrl, type: 'post', cache: false, dataType: 'json', data: { p: pagenum }, success: function(data) { var data = ajaxDataParames(data); layui.laypage.render({ elem: 'paging', count: data.page.totalRow, limit: 10, first: '首页', last: '尾页', curr: pagenum, groups: 5, jump: function(obj, first) { var doms = ''; var list = data.data; for (var i = 0; i < list.length; i++) { if (window.location.protocol == 'http:' || window.location.protocol == 'https:') { blogUrl = '/blog/' + list[i].admin_id } else { blogUrl = 'http://192.168.1.50:8080/blog/' + list[i].admin_id + '.htm' } doms += '
  • ' + list[i].name + '
    营业执照:' + list[i].business_license_code + '
  • ' } $('.SettleIn-content-box ul').html(doms); if (!first) { AjaxFan(obj.curr); } } }); } }) } AjaxFan(1); })