统一社会信用代码: '+list[i].REGCODE+'
注册地: '+list[i].REGPLACE+'
经营范围: '+list[i].CONTENT+'更多
收起
'
}
$("#result").html(html)
window.scroll(0,1)
displaypagenomal()
for(var i=0;i<$(".qiyebaimingdan20444_inde01 .result ul li").length;i++){
if($(".qiyebaimingdan20444_inde01 .result ul li").eq(i).find(".intr .default span").height()<=72){
$(".qiyebaimingdan20444_inde01 .result ul li").eq(i).find(".intr i").hide()
}
}
$(".qiyebaimingdan20444_inde01 .result ul li .intr p.default i").click(function(){
$(this).parents(".intr").css({"-webkit-line-clamp":"inherit","height":"auto"});
$(this).parents(".intr").find(".retract").show();
})
$(".qiyebaimingdan20444_inde01 .result ul li .intr p.retract i").click(function(){
$(this).parents(".intr").css({"-webkit-line-clamp":"3","height":"72px"})
$(this).parents(".intr").find(".retract").hide();
})
}
function datalist(data){
total=data.total
var html=""
var list=data.list;
for(var i=0;i
统一社会信用代码: '+list[i].REGCODE+'
注册地: '+list[i].REGPLACE+'
经营范围: '+list[i].CONTENT+'更多
收起
'
}
$("#result").html(html)
window.scroll(0,1)
displaypage()
for(var i=0;i<$(".qiyebaimingdan20444_inde01 .result ul li").length;i++){
if($(".qiyebaimingdan20444_inde01 .result ul li").eq(i).find(".intr .default span").height()<=72){
$(".qiyebaimingdan20444_inde01 .result ul li").eq(i).find(".intr i").hide()
}
}
$(".qiyebaimingdan20444_inde01 .result ul li .intr p.default i").click(function(){
$(this).parents(".intr").css({"-webkit-line-clamp":"inherit","height":"auto"});
$(this).parents(".intr").find(".retract").show();
})
$(".qiyebaimingdan20444_inde01 .result ul li .intr p.retract i").click(function(){
$(this).parents(".intr").css({"-webkit-line-clamp":"3","height":"72px"})
$(this).parents(".intr").find(".retract").hide();
})
}
function clickSuggest(_csuggest) {
try {
event.cancelBubble = true;
event.returnValue = false;
event.stopPropagation();
event.preventDefault();
} catch (e) {}
if (_csuggest != "" && _csuggest != undefined) {
document.getElementById("search_qtext").value = _csuggest;
loadsearch(1)
}
}
function displaypagenomal(){
var curpage=page
var pagesize=15;
var NumRecords=total;//信息总条数,减一因为是从下标[1]开始存的信息。
//没有信息就返回
var totalpage = NumRecords % pagesize == 0 ? NumRecords / pagesize : parseInt(NumRecords/ pagesize) + 1;
if(totalpage>50){
totalpage=50
}
var beginpage = '';
var endpage = '';
if(totalpage<10){
beginpage = 1;
endpage = totalpage;
}
else if(totalpage >=10&&curpage < 6) {
beginpage = 1;
endpage = 10;
} else{
if(curpage > (totalpage - 5)) {
beginpage = totalpage - 9;
endpage = totalpage;
} else {
beginpage = curpage - 4;
endpage = curpage + 5;
}
}
var showtext=""
if(totalpage > 1) {
if(curpage != 1) {
showtext += '<<';
} else if(curpage == 1) {
showtext += '<<';
}
for(var j = beginpage; j <= endpage; j++) {
if(j==curpage){
showtext+=''+j+'';
}else{
showtext+=""+j+"";
}
}
if(curpage != totalpage&&totalpage>5) {
showtext += ">>";
} else if(curpage != totalpage&&totalpage>1&&totalpage<=5){
showtext += ">>";
}else if(curpage == totalpage) {
showtext += ">>";
}
}
$("#fenye").html(showtext);
}
function displaypage(){
var curpage=page
console.log(curpage)
var pagesize=15;
var NumRecords=total;//信息总条数,减一因为是从下标[1]开始存的信息。
//没有信息就返回
var totalpage = NumRecords % pagesize == 0 ? NumRecords / pagesize : parseInt(NumRecords/ pagesize) + 1;
if(totalpage>50){
totalpage=50
}
var beginpage = '';
var endpage = '';
if(totalpage<10){
beginpage = 1;
endpage = totalpage;
}
else if(totalpage >=10&&curpage < 6) {
beginpage = 1;
endpage = 10;
} else{
if(curpage > (totalpage - 5)) {
beginpage = totalpage - 9;
endpage = totalpage;
} else {
beginpage = curpage - 4;
endpage = curpage + 5;
}
}
var showtext=""
if(totalpage > 1) {
if(curpage != 1) {
showtext += '<<';
} else if(curpage == 1) {
showtext += '<<';
}
for(var j = beginpage; j <= endpage; j++) {
if(j==curpage){
showtext+=''+j+'';
}else{
showtext+=""+j+"";
}
}
if(curpage != totalpage&&totalpage>5) {
showtext += ">>";
} else if(curpage != totalpage&&totalpage>1&&totalpage<=5){
showtext += ">>";
}else if(curpage == totalpage) {
showtext += ">>";
}
}
$("#fenye").html(showtext);
}
loadnomal(1)