...
|
...
|
@@ -321,18 +321,20 @@ |
|
|
},
|
|
|
success: function (data) {
|
|
|
if (data==1){
|
|
|
alert('点赞成功')
|
|
|
window.event.stopPropagation();
|
|
|
var num=$(".commentnum").html();
|
|
|
num++;
|
|
|
$(".commentnum").html(num)
|
|
|
$('.praise').css('background','#CA277B')
|
|
|
window.location.reload();
|
|
|
}
|
|
|
else if (data==2){
|
|
|
alert('取消点赞成功')
|
|
|
window.event.stopPropagation();
|
|
|
var num=$(".commentnum").html();
|
|
|
num--;
|
|
|
$(".commentnum").html(num)
|
|
|
$('.praise').css('background','#97A0A8')
|
|
|
window.location.reload();
|
|
|
}
|
|
|
}
|
|
|
})
|
...
|
...
|
|