...
|
...
|
@@ -550,20 +550,29 @@ function category(obj) { |
|
|
category:id,
|
|
|
},
|
|
|
success: function (data) {
|
|
|
var html = "";
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
html += '<a href="'+data[i].url+'" style="text-decoration:none;">'+
|
|
|
' <div class="list_item" href="'+data[i].url+'">\n' +
|
|
|
' <div class="item_img">\n' +
|
|
|
' <img src="'+data[i].image+'" alt="">\n' +
|
|
|
' </div>\n' +
|
|
|
' <div class="flooritem">\n' +
|
|
|
' <p class="item_name">'+data[i].name+'</p>\n' +
|
|
|
' <p class="list_name">'+data[i].cname+'</p>\n' +
|
|
|
' <p class="item_floor">'+data[i].fname+'</p>\n' +
|
|
|
' </div>\n' +
|
|
|
' </div>'+
|
|
|
' </a>'
|
|
|
var html=""
|
|
|
if (data == "") {
|
|
|
html = ' <div class="nodata">\n' +
|
|
|
' <div class="nodata_img">\n' +
|
|
|
' <img src="__TMPL__/public/assets/images/img/nodata.png" alt="">\n' +
|
|
|
' </div>\n' +
|
|
|
' <p class="nodata_name">暂无数据</p >\n' +
|
|
|
' </div>'
|
|
|
} else {
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
html += '<a href="' + data[i].url + '" style="text-decoration:none;">' +
|
|
|
' <div class="list_item" href="' + data[i].url + '">\n' +
|
|
|
' <div class="item_img">\n' +
|
|
|
' <img src="' + data[i].image + '" alt="">\n' +
|
|
|
' </div>\n' +
|
|
|
' <div class="flooritem">\n' +
|
|
|
' <p class="item_name">' + data[i].name + '</p>\n' +
|
|
|
' <p class="list_name">' + data[i].cname + '</p>\n' +
|
|
|
' <p class="item_floor">' + data[i].fname + '</p>\n' +
|
|
|
' </div>\n' +
|
|
|
' </div>' +
|
|
|
' </a>'
|
|
|
}
|
|
|
}
|
|
|
$(".list").html(html);
|
|
|
$("#category").html(content);
|
...
|
...
|
@@ -580,20 +589,29 @@ function floor(obj) { |
|
|
floor:id,
|
|
|
},
|
|
|
success: function (data) {
|
|
|
var html = "";
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
html += '<a href="'+data[i].url+'" style="text-decoration:none;">'+
|
|
|
' <div class="list_item" href="'+data[i].url+'">\n' +
|
|
|
' <div class="item_img">\n' +
|
|
|
' <img src="'+data[i].image+'" alt="">\n' +
|
|
|
' </div>\n' +
|
|
|
' <div class="flooritem">\n' +
|
|
|
' <p class="item_name">'+data[i].name+'</p>\n' +
|
|
|
' <p class="list_name">'+data[i].cname+'</p>\n' +
|
|
|
' <p class="item_floor">'+data[i].fname+'</p>\n' +
|
|
|
' </div>\n' +
|
|
|
' </div>'+
|
|
|
' </a>'
|
|
|
var html=""
|
|
|
if (data == "") {
|
|
|
html = ' <div class="nodata">\n' +
|
|
|
' <div class="nodata_img">\n' +
|
|
|
' <img src="__TMPL__/public/assets/images/img/nodata.png" alt="">\n' +
|
|
|
' </div>\n' +
|
|
|
' <p class="nodata_name">暂无数据</p >\n' +
|
|
|
' </div>'
|
|
|
} else {
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
html += '<a href="' + data[i].url + '" style="text-decoration:none;">' +
|
|
|
' <div class="list_item" href="' + data[i].url + '">\n' +
|
|
|
' <div class="item_img">\n' +
|
|
|
' <img src="' + data[i].image + '" alt="">\n' +
|
|
|
' </div>\n' +
|
|
|
' <div class="flooritem">\n' +
|
|
|
' <p class="item_name">' + data[i].name + '</p>\n' +
|
|
|
' <p class="list_name">' + data[i].cname + '</p>\n' +
|
|
|
' <p class="item_floor">' + data[i].fname + '</p>\n' +
|
|
|
' </div>\n' +
|
|
|
' </div>' +
|
|
|
' </a>'
|
|
|
}
|
|
|
}
|
|
|
$(".list").html(html);
|
|
|
$("#floor").html(content);
|
...
|
...
|
|