作者 anyv
1 个管道 的构建 通过 耗费 0 秒

产品

... ... @@ -102,14 +102,24 @@
<script type="text/javascript" src="__TMPL__/public/assets/js/jquery.js"></script>
<script>
function dianji(id){
$.post("{:url('Product/wenzhang')}", {id:id}, function(data) {
$shuju = JSON.parse(data);
for (var i = 0; i < $shuju.length; i++) {
$('.tj'+id).append("<div class='cel_3_Li'><h4>"+$shuju[i].post_title+"</h4><img src='__TMPL__/public/assets/images/aicon03.png' alt=''></div>");
}
});
cunza = $(div).hasClass('cel'+id);
if(cunza){
$('.cel'+id).remove();
}else{
$.post("{:url('Product/wenzhang')}", {id:id}, function(data) {
$shuju = JSON.parse(data);
for (var i = 0; i < $shuju.length; i++) {
$('.tj'+id).append("<div class='cel_3_Li cel"+id+"'><h4>"+$shuju[i].post_title+"</h4><img src='__TMPL__/public/assets/images/aicon03.png' alt=''></div>");
}
});
}
}
</script>
... ...