...
|
...
|
@@ -101,7 +101,29 @@ |
|
|
.active .kind_name{
|
|
|
color:#CA277B;
|
|
|
}
|
|
|
/*暂无数据*/
|
|
|
.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>
|
...
|
...
|
@@ -177,20 +199,29 @@ |
|
|
status:status,
|
|
|
},
|
|
|
success: function (data) {
|
|
|
var html = "";
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
html +=' <a href="'+data[i].url+'" style="text-decoration:none;">\n' +
|
|
|
' <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' +
|
|
|
'\n' +
|
|
|
' <p class="item_date">'+data[i].active_time+'-'+data[i].end_time+'</p>\n' +
|
|
|
' </div>\n' +
|
|
|
' </div>\n' +
|
|
|
' </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;">\n' +
|
|
|
' <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' +
|
|
|
'\n' +
|
|
|
' <p class="item_date">' + data[i].active_time + '-' + data[i].end_time + '</p>\n' +
|
|
|
' </div>\n' +
|
|
|
' </div>\n' +
|
|
|
' </a>'
|
|
|
}
|
|
|
}
|
|
|
$(".list").html(html);
|
|
|
}
|
...
|
...
|
|