...
|
...
|
@@ -52,7 +52,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;
|
...
|
...
|
@@ -221,7 +225,11 @@ |
|
|
</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/active/comment',array('id'=>$list.id))}" style="text-decoration:none;">
|
...
|
...
|
@@ -317,6 +325,7 @@ |
|
|
var num=$(".commentnum").html();
|
|
|
num++;
|
|
|
$(".commentnum").html(num)
|
|
|
window.location.reload();
|
|
|
}
|
|
|
else if (data==2){
|
|
|
alert('取消点赞成功')
|
...
|
...
|
@@ -324,6 +333,7 @@ |
|
|
var num=$(".commentnum").html();
|
|
|
num--;
|
|
|
$(".commentnum").html(num)
|
|
|
window.location.reload();
|
|
|
}
|
|
|
}
|
|
|
})
|
...
|
...
|
|