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

1

... ... @@ -343,7 +343,7 @@
})
//点赞
$(".discuss").click(function(){
alert("{$list.id}")
// alert("{$list.id}")
$.ajax({
url: "{:url('portal/brand/like')}",
type: "post",
... ... @@ -352,12 +352,14 @@
},
success: function (data) {
if (data==1){
alert('点赞成功')
window.event.stopPropagation();
var num=$(".commentnum").html();
num++;
$(".commentnum").html(num)
}
else if (data==2){
alert('取消点赞成功')
window.event.stopPropagation();
var num=$(".commentnum").html();
num--;
... ...