Showing
4 changed files
with
21 additions
and
6 deletions
@@ -242,8 +242,13 @@ | @@ -242,8 +242,13 @@ | ||
242 | text: '', | 242 | text: '', |
243 | publishTime: '', | 243 | publishTime: '', |
244 | pageView: '', | 244 | pageView: '', |
245 | + //APP打开显示收藏,WAP打开显示点赞 | ||
245 | like: { | 246 | like: { |
246 | - isLiked: true | 247 | + isLiked: true, |
248 | + count: 1 | ||
249 | + }, | ||
250 | + collect: { | ||
251 | + isCollected: true | ||
247 | }, | 252 | }, |
248 | share: false, | 253 | share: false, |
249 | isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic | 254 | isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic |
@@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
18 | float: left; | 18 | float: left; |
19 | } | 19 | } |
20 | 20 | ||
21 | - .like-btn, .share-btn { | 21 | + .iconfont { |
22 | position: relative; | 22 | position: relative; |
23 | height: 60rem / $pxConvertRem; | 23 | height: 60rem / $pxConvertRem; |
24 | line-height: 60rem / $pxConvertRem; | 24 | line-height: 60rem / $pxConvertRem; |
@@ -40,5 +40,12 @@ | @@ -40,5 +40,12 @@ | ||
40 | .like-btn.like { | 40 | .like-btn.like { |
41 | color: #444; | 41 | color: #444; |
42 | } | 42 | } |
43 | + | ||
44 | + .collect-btn { | ||
45 | + margin-left: 20rem / $pxConvertRem; | ||
46 | + &.collected { | ||
47 | + color: #444; | ||
48 | + } | ||
49 | + } | ||
43 | } | 50 | } |
44 | } | 51 | } |
@@ -5,8 +5,12 @@ | @@ -5,8 +5,12 @@ | ||
5 | <span class="page-view">{{pageView}}</span> | 5 | <span class="page-view">{{pageView}}</span> |
6 | <div class="like-share-container"> | 6 | <div class="like-share-container"> |
7 | {{# like}} | 7 | {{# like}} |
8 | - <a href="javascript:;" class="iconfont like-btn{{#isLiked}} like{{/isLiked}}"></a> | 8 | + <i class="iconfont like-btn{{#isLiked}} like{{/isLiked}}"></i> |
9 | + <span class="like-count">{{count}}</span> | ||
9 | {{/ like}} | 10 | {{/ like}} |
11 | + {{# collect}} | ||
12 | + <i class="iconfont collect-btn{{#isCollected}} collected{{/isCollected}}"></i> | ||
13 | + {{/ collect}} | ||
10 | {{# share}} | 14 | {{# share}} |
11 | <a href="{{.}}" class="iconfont share-btn"></a> | 15 | <a href="{{.}}" class="iconfont share-btn"></a> |
12 | {{/ share}} | 16 | {{/ share}} |
@@ -84,9 +84,8 @@ class ListController extends AbstractAction | @@ -84,9 +84,8 @@ class ListController extends AbstractAction | ||
84 | 'showTags' => true, | 84 | 'showTags' => true, |
85 | 'publishTime' => '2月13日 12:34', | 85 | 'publishTime' => '2月13日 12:34', |
86 | 'pageView' => 3445, | 86 | 'pageView' => 3445, |
87 | - 'like' => array( | ||
88 | - 'count' => 459, | ||
89 | - 'isLiked' => true | 87 | + 'collect' => array( |
88 | + 'isCollected' => true | ||
90 | ), | 89 | ), |
91 | 'share' => true, | 90 | 'share' => true, |
92 | 'url' => '', | 91 | 'url' => '', |
-
Please register or login to post a comment