feat(fe): 暂时下线社区评论入口(commentsEnabled=false),页面与代码保留
社区卡片评论按钮用 commentsEnabled 开关隐藏;comments 独立页、openComments、 后端评论接口全部保留,改回 true 即可恢复。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,9 @@ function mapPost(p) {
|
||||
Page({
|
||||
data: {
|
||||
pet: {},
|
||||
// 评论功能暂时下线:入口隐藏,comments 页面与 openComments 等代码全部保留,
|
||||
// 需要恢复时把这里改回 true 即可
|
||||
commentsEnabled: false,
|
||||
feedTabs: ['推荐', '关注', '新手求助', '晒宠', '经验'],
|
||||
feedIdx: 0,
|
||||
posts: [],
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user