Authored by xuqi

info prise & collect

... ... @@ -242,8 +242,13 @@
text: '',
publishTime: '',
pageView: '',
//APP打开显示收藏,WAP打开显示点赞
like: {
isLiked: true
isLiked: true,
count: 1
},
collect: {
isCollected: true
},
share: false,
isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic
... ...
... ... @@ -18,7 +18,7 @@
float: left;
}
.like-btn, .share-btn {
.iconfont {
position: relative;
height: 60rem / $pxConvertRem;
line-height: 60rem / $pxConvertRem;
... ... @@ -40,5 +40,12 @@
.like-btn.like {
color: #444;
}
.collect-btn {
margin-left: 20rem / $pxConvertRem;
&.collected {
color: #444;
}
}
}
}
\ No newline at end of file
... ...
... ... @@ -5,8 +5,12 @@
<span class="page-view">{{pageView}}</span>
<div class="like-share-container">
{{# like}}
<a href="javascript:;" class="iconfont like-btn{{#isLiked}} like{{/isLiked}}">&#xe605;</a>
<i class="iconfont like-btn{{#isLiked}} like{{/isLiked}}">&#xe601;</i>
<span class="like-count">{{count}}</span>
{{/ like}}
{{# collect}}
<i class="iconfont collect-btn{{#isCollected}} collected{{/isCollected}}">&#xe605;</i>
{{/ collect}}
{{# share}}
<a href="{{.}}" class="iconfont share-btn">&#xe600;</a>
{{/ share}}
... ...
... ... @@ -84,9 +84,8 @@ class ListController extends AbstractAction
'showTags' => true,
'publishTime' => '2月13日 12:34',
'pageView' => 3445,
'like' => array(
'count' => 459,
'isLiked' => true
'collect' => array(
'isCollected' => true
),
'share' => true,
'url' => '',
... ...