feat(fe): 暂时下线社区评论入口(commentsEnabled=false),页面与代码保留

社区卡片评论按钮用 commentsEnabled 开关隐藏;comments 独立页、openComments、
后端评论接口全部保留,改回 true 即可恢复。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-08-04 08:31:57 +08:00
parent d1f4755dc6
commit 8812ffd7b9
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -35,7 +35,9 @@ module.exports.isUrl = function (s) { return s && s.indexOf('http') === 0; }
<pt-icon name="{{item.liked ? 'like-on' : 'like'}}" size="{{32}}"></pt-icon>
<text class="pa-n">{{item.like_count || '点赞'}}</text>
</view>
<view class="pa-btn" data-id="{{item.id}}" bindtap="openComments">
<!-- 评论功能暂时关闭(commentsEnabled=false),入口隐藏;页面和代码都保留,
后面把 commentsEnabled 改回 true 即可恢复 -->
<view wx:if="{{commentsEnabled}}" class="pa-btn" data-id="{{item.id}}" bindtap="openComments">
<pt-icon name="comment" size="{{32}}"></pt-icon>
<text class="pa-n">{{item.comment_count || '评论'}}</text>
</view>