';
}else{
_html += '
';
}
if(v.content){
_html += '
' + v.title +'
' + v.content + '
';
}else{
_html += '
' + v.title +'
';
}
_html += '
';
if(v.agencyName){
_html += '' + v.siteName + '' + v.agencyName + '';
}else{
_html += '' + v.siteName + '';
}
_html += '' + (v.author?v.author:'') + '|' + getMyDate(v.publishTime) + '';
_html += '
';
_html += '
';
_html += '';
})
}else{
_html="
暂无相关信息!";
}
$(".ResultList").html(_html);
if (param.isPage) {
laypage.render({
elem: 'ThePages' //注意,这里的 test1 是 ID,不用加 # 号
, curr: options.pageIndex
, count: data.data.count //数据总数,从服务端得到
, layout: ['count', 'prev', 'page', 'next', 'skip']
, limit: options.pageNums
, theme: "#288841"
, jump: function (obj, first) {
//首次不执行
if (!first) {
GetDates({ isPage: true, pageIndex: obj.curr, pageNums: obj.limit })
}
}
});
}
layer.close(theLoad);
},
error: function (error) {
console.log(error);
layer.close(theLoad);
}
});
}
});