进店'+data.province+' '+data.city+' ';
var productList = '';
for(var j = 0; j < data.productList.length; j++){
var product = data.productList[j];
productList = productList + ''+product.name+' ';
}
productList = productList + " ";
listList = liList;
$("#dataList").append(liList);
$("#dataList").append(productList);
}
$("#loadMore").replaceWith('查看更多');
}else{
for(var i = 0; i < response.Data.length; i++){
var data = response.Data[i];
var liList = ''+data.name+''+data.province+' '+data.city+' '
$("#dataList").append(liList);
}
$("#loadMore").replaceWith('查看更多');
}
if(response.Data.length < 10){
$("#loadMore").parent().replaceWith('');
}
}
}
function GetUrlJson(UrlVals) {
var req;
if (window.XMLHttpRequest) {/* code for all new browsers*/
req = new XMLHttpRequest();
}else if (window.ActiveXObject) {/* code for IE5 and IE6*/
req = new ActiveXObject("Microsoft.XMLHTTP");
}
req.open("GET", UrlVals, false);
req.send(null);
var response = req.responseText.replace(/\*/g, "").replace(/\^/g, ":");
eval('var objs=' + response);
return objs;
}
//
$(".telHide").removeAttr("href");
function showFullText(){
$(".fullTextBtn").css({"display":"none"});
$(".cpxx3").css({"height":"100%"})
}
function checkForm(){
if($("input[name='vRecs']").val() == ""){
return false
}
$("input[name='act']").val($("#actType").val() + "KSearch");
return true;
}
if($(".cpxx3").height() > 430){
$(".cpxx3").height("430px")
$(".fullTextBtn").css({"display":"block"});
}
|