From 8812ffd7b9559addc0f03e472d04e0df5471d906 Mon Sep 17 00:00:00 2001 From: Blizzard Date: Tue, 4 Aug 2026 08:31:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(fe):=20=E6=9A=82=E6=97=B6=E4=B8=8B?= =?UTF-8?q?=E7=BA=BF=E7=A4=BE=E5=8C=BA=E8=AF=84=E8=AE=BA=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=88commentsEnabled=3Dfalse=EF=BC=89=EF=BC=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8E=E4=BB=A3=E7=A0=81=E4=BF=9D=E7=95=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 社区卡片评论按钮用 commentsEnabled 开关隐藏;comments 独立页、openComments、 后端评论接口全部保留,改回 true 即可恢复。 Co-Authored-By: Claude Opus 5 --- pets-fe/pages/community/community.js | 3 +++ pets-fe/pages/community/community.wxml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 || '评论'}}