点赞组件

点赞组件

<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

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

© ThinkCMF all right reserved,powered by Gitbook最后文件编辑时间: 2016-03-09 14:01:50

results matching ""

    No results matching ""