...
|
...
|
@@ -225,7 +225,29 @@ |
|
|
border-right: 1px solid #f5f5f5;
|
|
|
|
|
|
}
|
|
|
/*暂无数据*/
|
|
|
.nodata{
|
|
|
width:6rem;
|
|
|
margin: 2.5rem auto;
|
|
|
|
|
|
}
|
|
|
.nodata_img{
|
|
|
width:3rem;
|
|
|
height:3.5rem;
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
.nodata_img img{
|
|
|
width:100%;
|
|
|
height:100%;
|
|
|
}
|
|
|
.nodata_name{
|
|
|
width:3rem;
|
|
|
text-align: center;
|
|
|
color:#999999;
|
|
|
font-size: 0.28rem;
|
|
|
margin: 0 auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
</head>
|
...
|
...
|
@@ -440,6 +462,7 @@ $(".map").click(function(){ |
|
|
});
|
|
|
//搜索接口
|
|
|
$(".search_img").click(function(){
|
|
|
var html=""
|
|
|
var content=$(".search_input").val()
|
|
|
$.ajax({
|
|
|
url: "{:url('portal/brand/brandAjax')}",
|
...
|
...
|
@@ -448,23 +471,31 @@ $(".search_img").click(function(){ |
|
|
search:content,
|
|
|
},
|
|
|
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">\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>'
|
|
|
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">\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);
|
|
|
$(".search_img").val(content);
|
|
|
$(".list").html(html);
|
|
|
$(".search_img").val(content);
|
|
|
}
|
|
|
})
|
|
|
});
|
...
|
...
|
|