...
|
...
|
@@ -41,7 +41,11 @@ |
|
|
.praise{
|
|
|
width:0.6rem;
|
|
|
height:0.6rem;
|
|
|
<eq name="like" value="1">
|
|
|
background: #CA277B;
|
|
|
<else />
|
|
|
background: #97A0A8;
|
|
|
</eq>
|
|
|
border-radius: 50%;
|
|
|
font-size: 0;
|
|
|
text-align: center;
|
...
|
...
|
@@ -382,7 +386,11 @@ |
|
|
<div class="content_name">{$list.name}</div>
|
|
|
<div class="discuss">
|
|
|
<p class="praise">
|
|
|
<img src="__TMPL__/public/assets/images/img/zan.png" alt="">
|
|
|
<eq name="like" value="1">
|
|
|
<img src="__TMPL__/public/assets/images/img/zan.png" alt="">
|
|
|
<else />
|
|
|
<img src="__TMPL__/public/assets/images/img/nozan.png" alt="">
|
|
|
</eq>
|
|
|
<p class="commentnum">{$list.dolike}</p>
|
|
|
</p>
|
|
|
<a href="{:url('portal/prize/comment',array('id'=>$list.id))}" style="text-decoration:none;">
|
...
|
...
|
@@ -502,18 +510,18 @@ |
|
|
},
|
|
|
success: function (data) {
|
|
|
if (data==1){
|
|
|
alert('点赞成功')
|
|
|
window.event.stopPropagation();
|
|
|
var num=$(".commentnum").html();
|
|
|
num++;
|
|
|
$(".commentnum").html(num)
|
|
|
window.location.reload();
|
|
|
}
|
|
|
else if (data==2){
|
|
|
alert('取消点赞成功')
|
|
|
window.event.stopPropagation();
|
|
|
var num=$(".commentnum").html();
|
|
|
num--;
|
|
|
$(".commentnum").html(num)
|
|
|
window.location.reload();
|
|
|
}
|
|
|
}
|
|
|
})
|
...
|
...
|
|