Skip to content

Commit 6b4b2e2

Browse files
committed
update: modify collection button style in topic detail
1 parent 32862ac commit 6b4b2e2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/pages/topic/topic.wxml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
<text>{{oTopicDetail.visit_count}}次浏览</text>
1919
</view>
2020
</view>
21-
<button class="v" size="mini" style="right: 10rpx;" bindtap="fnTapSwitchTopicCollectStatus">{{oTopicDetail.is_collect ? '已收藏' : '收藏'}}</button>
21+
<i
22+
class="v icon icon-collect {{oTopicDetail.is_collect ? 'color-green' : 'color-grey'}}"
23+
style="right: 10rpx;font-size: 50rpx;"
24+
bindtap="fnTapSwitchTopicCollectStatus">
25+
</i>
2226
</view>
2327
<!-- 内容 -->
2428
<view class="topic-content">

src/style/base.wxss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@
7171
.color-white {
7272
color: #ffffff;
7373
}
74-
.color-green {
75-
color: #80bd01;
76-
}
7774
.color-grey {
7875
color: #7c7c7c;
7976
}
77+
.color-green {
78+
color: #80bd01;
79+
}
8080
/* 谈入谈出 */
8181
.fadein-init {
8282
opacity: 0;

0 commit comments

Comments
 (0)