12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- $(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 += '<li><a href="javascript:void(0)" target="_blank"><img src="./images/a' + (i + 1) + '.jpg" alt=""><span><h6>' + list[i].name + '</h6><i>营业执照:' + list[i].business_license_code + '</i></span></a></li>'
- }
- $('.SettleIn-content-box ul').html(doms);
- if (!first) {
- AjaxFan(obj.curr);
- }
- }
- });
- }
- })
- }
- AjaxFan(1);
- })
|