作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

1

... ... @@ -258,22 +258,24 @@
if (data==undefined){
$(".nodata").css('display','block');
}
var html = "";
for (var i = 0; i < data.length; i++) {
html +=' <a href="'+data[i].url+'" style="text-decoration:none;">\n' +
' <div class="presentlist_item">\n' +
' <p class="present_img">\n' +
' <img src="'+data[i].image+'" alt="">\n' +
' </p>\n' +
' <p class="present_name">'+data[i].name+'</p>\n' +
' <p class="integral">\n' +
' <span class="integral_num">'+data[i].score+'</span>\n' +
' <span class="integral_chinese">积分</span>\n' +
' </p>\n' +
' </div>\n' +
' </a>'
else {
var html = "";
for (var i = 0; i < data.length; i++) {
html += ' <a href="' + data[i].url + '" style="text-decoration:none;">\n' +
' <div class="presentlist_item">\n' +
' <p class="present_img">\n' +
' <img src="' + data[i].image + '" alt="">\n' +
' </p>\n' +
' <p class="present_name">' + data[i].name + '</p>\n' +
' <p class="integral">\n' +
' <span class="integral_num">' + data[i].score + '</span>\n' +
' <span class="integral_chinese">积分</span>\n' +
' </p>\n' +
' </div>\n' +
' </a>'
}
$(".presentlist").html(html);
}
$(".presentlist").html(html);
}
})
})
... ...