feat: 新增提审防审模式,隐藏发布及评论相关入口
本次新增由后台 virtualPayAudit 开关控制的审核模式,在该模式下: 1. 隐藏底部 Tab 栏的发布按钮 2. 隐藏空状态、分类页、个人页的发布入口 3. 隐藏帖子卡片、详情页、个人发布页的评论数及评价入口 4. 发布页在审核模式下直接拦截并跳转至首页 5. 详情页的用户评价及评价弹层在审核模式下隐藏,避免 UGC 判定
这个提交包含在:
@@ -52,7 +52,7 @@
|
||||
<image class="fc-post-card__stat-icon" :src="iconUrl('eye')" mode="aspectFit" />
|
||||
<text class="fc-post-card__stat-num">{{ post.views || 0 }}</text>
|
||||
</view>
|
||||
<view class="fc-post-card__stat">
|
||||
<view v-if="!isAudit" class="fc-post-card__stat">
|
||||
<image class="fc-post-card__stat-icon" :src="iconUrl('comment-gray')" mode="aspectFit" />
|
||||
<text class="fc-post-card__stat-num">{{ post.commentCount || 0 }}</text>
|
||||
</view>
|
||||
@@ -63,7 +63,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { iconUrl, categoryIconUrl } from '@/common/store/ui.js'
|
||||
import { iconUrl, categoryIconUrl, uiState } from '@/common/store/ui.js'
|
||||
import { fromNow, formatKm, assetUrl } from '@/common/utils/format.js'
|
||||
|
||||
export default {
|
||||
@@ -75,6 +75,13 @@ export default {
|
||||
compact: { type: Boolean, default: false },
|
||||
},
|
||||
computed: {
|
||||
/**
|
||||
* 是否处于提审防审模式(由后台 virtualPayAudit 开关统一控制)
|
||||
* @returns {boolean} true=审核中(隐藏评论数统计)
|
||||
*/
|
||||
isAudit() {
|
||||
return uiState.virtualPayAudit !== false
|
||||
},
|
||||
/** 相对发布时间描述 */
|
||||
timeText() {
|
||||
return fromNow(this.post.createdAt)
|
||||
|
||||
在新工单中引用
屏蔽一个用户