You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.3 KiB
26 lines
1.3 KiB
function jy() {
|
|
var searchword = $("#jylistsearchword").val();
|
|
|
|
$.getJSON(_CTX + "/hbcyjc/lydlxxxt/data.json", function (data) {
|
|
var result = data.ju_yuan.filter(function (obj) {
|
|
return searchword ? obj.cname.indexOf(searchword) != -1 : true;
|
|
});
|
|
var num = data.ju_yuan.length;
|
|
totalpage = Math.ceil(num / 10);
|
|
var data = result;
|
|
var toilet;
|
|
var html;
|
|
$("#jypagelist").html("");
|
|
$("#jypagenum").html(page + "/" + totalpage);
|
|
$("#jylistnum").html("总共有" + num + "条数据");
|
|
for (var i = 0; i < data.length; i++) {
|
|
toilet = data[i];
|
|
html = "<li> <a ><div class=\"dl_jq_pic\"><img src=\"" + toilet.logo_picture_path + "\" onerror='beiyongimg()' /></div>" +
|
|
"<div class=\"dl_jq_inf\"><h3>" + isDataEmpty(toilet.cname) + "</h3><p>剧院地址:" + isDataEmpty(toilet.addr) + "</p><p>剧院电话:" + (isDataEmpty(toilet.consulting_mobile) ? toilet.consulting_mobile :
|
|
"未知") +
|
|
"</p></div></a> </li>";
|
|
$("#jypagelist").append(html);
|
|
initpoint(toilet.id, 8, toilet.cname, toilet.addr, toilet.logo_picture_path, toilet.lnglat[0], toilet.lnglat[1], i);
|
|
}
|
|
});
|
|
} |