diff --git a/pets-fe/pages/community/community.js b/pets-fe/pages/community/community.js index 08c755a..9b8dbb8 100644 --- a/pets-fe/pages/community/community.js +++ b/pets-fe/pages/community/community.js @@ -45,6 +45,9 @@ function mapPost(p) { Page({ data: { pet: {}, + // 评论功能暂时下线:入口隐藏,comments 页面与 openComments 等代码全部保留, + // 需要恢复时把这里改回 true 即可 + commentsEnabled: false, feedTabs: ['推荐', '关注', '新手求助', '晒宠', '经验'], feedIdx: 0, posts: [], diff --git a/pets-fe/pages/community/community.wxml b/pets-fe/pages/community/community.wxml index aaf8166..f5c6055 100644 --- a/pets-fe/pages/community/community.wxml +++ b/pets-fe/pages/community/community.wxml @@ -35,7 +35,9 @@ module.exports.isUrl = function (s) { return s && s.indexOf('http') === 0; } {{item.like_count || '点赞'}} - + + {{item.comment_count || '评论'}}