feat: 新增提审防审模式,隐藏发布及评论相关入口
本次新增由后台 virtualPayAudit 开关控制的审核模式,在该模式下: 1. 隐藏底部 Tab 栏的发布按钮 2. 隐藏空状态、分类页、个人页的发布入口 3. 隐藏帖子卡片、详情页、个人发布页的评论数及评价入口 4. 发布页在审核模式下直接拦截并跳转至首页 5. 详情页的用户评价及评价弹层在审核模式下隐藏,避免 UGC 判定
这个提交包含在:
@@ -3,7 +3,13 @@
|
||||
<!-- 统一顶部深绿质感导航栏 -->
|
||||
<fc-navbar title="发布信息" theme="gradient" :show-back="true" />
|
||||
|
||||
<!-- 1. 分类选择(一级大类与二级品类拆分为两行独立输入) -->
|
||||
<!-- 审核模式防御性占位(提审防审模式下彻底隐藏发帖表单与发布交互) -->
|
||||
<view v-if="isAudit" class="create__audit-block" style="padding-top: 160rpx;">
|
||||
<fc-empty icon="lock" text="功能升级维护中,暂未开放" btn-text="返回首页" @action="goHome" />
|
||||
</view>
|
||||
|
||||
<view v-else>
|
||||
<!-- 1. 分类选择(一级大类与二级品类拆分为两行独立输入) -->
|
||||
<view class="fc-card create__section">
|
||||
<view class="create__cell" @click="openCatStep(1)">
|
||||
<view class="create__cell-left">
|
||||
@@ -523,6 +529,7 @@
|
||||
<!-- 支付密码弹窗(余额支付验证) -->
|
||||
<fc-pay-password :show="pwdPopup.show" :title="pwdPopup.title" :tip="pwdPopup.tip"
|
||||
@close="pwdPopup.show = false" @confirm="onPwdConfirm" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -542,6 +549,8 @@
|
||||
import FcNavbar from '@/components/fc-navbar/fc-navbar.vue'
|
||||
import FcAreaPicker from '@/components/fc-area-picker/fc-area-picker.vue'
|
||||
import FcPayPassword from '@/components/fc-pay-password/fc-pay-password.vue'
|
||||
import FcEmpty from '@/components/fc-empty/fc-empty.vue'
|
||||
import { safeRedirectTo } from '@/common/utils/nav.js'
|
||||
import homeApi from '@/common/api/home.js'
|
||||
import postApi from '@/common/api/post.js'
|
||||
import memberApi from '@/common/api/member.js'
|
||||
@@ -552,7 +561,7 @@ import { assetUrl } from '@/common/utils/format.js'
|
||||
import config from '@/common/config/index.js'
|
||||
|
||||
export default {
|
||||
components: { FcNavbar, FcAreaPicker, FcPayPassword },
|
||||
components: { FcNavbar, FcAreaPicker, FcPayPassword, FcEmpty },
|
||||
data() {
|
||||
return {
|
||||
categories: [],
|
||||
@@ -907,6 +916,13 @@ export default {
|
||||
* 页面每次显示时触发:刷新发布额度并同步最新用户资料(如从会员中心开通返回后立即刷新额度)
|
||||
*/
|
||||
async onShow() {
|
||||
if (this.isAudit) {
|
||||
uni.showToast({ title: '功能维护中,暂未开放', icon: 'none' })
|
||||
setTimeout(() => {
|
||||
safeRedirectTo('/pages/index/index')
|
||||
}, 600)
|
||||
return
|
||||
}
|
||||
this.loadPublish()
|
||||
try {
|
||||
const userStore = useUserStore()
|
||||
@@ -918,6 +934,12 @@ export default {
|
||||
methods: {
|
||||
iconUrl,
|
||||
assetUrl,
|
||||
/**
|
||||
* 审核模式防御:一键返回首页
|
||||
*/
|
||||
goHome() {
|
||||
safeRedirectTo('/pages/index/index')
|
||||
},
|
||||
/**
|
||||
* 跳转会员中心开通或续费套餐(关闭收银台弹窗,开卡返回后自动刷新额度)
|
||||
*/
|
||||
|
||||
在新工单中引用
屏蔽一个用户