Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 640 Bytes

like.md

File metadata and controls

22 lines (17 loc) · 640 Bytes

点赞组件

点赞组件

<a href="{:U('article/do_like',array('id'=>$object_id))}" class="js-count-btn"><i class="fa fa-thumbs-up"></i><span class="count">{$post_like}</span></a>

分解组件:

<!-- 点赞链接 须传入文章id -->
href="{:U('article/do_like',array('id'=>$vo['object_id']))}"

js类名:

js-count-btn

此组件可复用,只要链接是数量操作,开发者可以在自己的应用里添加相应操作