Skip to content

Commit b2206bc

Browse files
committed
新增文章阅读量功能
1 parent 4a5656c commit b2206bc

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

src/components/MainPage/BlogIndex.vue

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
<div class="ArticleFooterItem" style="border: none" v-show="item.CommentNum">
3636
<i class="iconfont icon-pinglun iconBlogIndex"></i>{{ item.CommentNum }}
3737
</div>
38-
<!--<div class="ArticleFooterItem" style="border: none">
39-
<i class="iconfont icon-love iconBlogIndex"></i>{{ item.CommentNum }}
40-
</div>-->
38+
<div class="ArticleFooterItem" style="border: none">
39+
<i class="iconfont icon-yueduliang iconBlogIndex"></i>{{ item.articleReadNum ? item.articleReadNum : 0 }}
40+
</div>
4141
</div>
4242
</div>
4343
</div>
@@ -131,20 +131,13 @@
131131
},
132132
data: function () {
133133
return {
134-
// 标签量
135-
Tags: [],
136-
// 文章列表
137-
ArticleList: [],
138-
// 文章量
139-
ArticleNum: 0,
140-
// 留言量
141-
LeaveMessageNum: 0,
142-
// 博客评论量
143-
CommentNum: 0,
144-
// 热门文章列表
145-
HotArticleList: [],
146-
// 文章底线
147-
AticleBottom: false,
134+
Tags: [],// 标签量
135+
ArticleList: [],// 文章列表
136+
ArticleNum: 0,// 文章量
137+
LeaveMessageNum: 0,// 留言量
138+
CommentNum: 0,// 博客评论量
139+
HotArticleList: [],// 热门文章列表
140+
AticleBottom: false,// 文章底线
148141
149142
// 缺省图
150143
DefaultGraph: {

0 commit comments

Comments
 (0)