update: 调整审核模式隐藏部分内容,修复分类显示控制不生效

This commit is contained in:
小莫唐尼 2024-10-22 18:19:23 +08:00
parent 341670adcf
commit 40dd4f4b7f
4 changed files with 145 additions and 101 deletions

View File

@ -190,7 +190,7 @@
path: '/pagesA/archives/archives',
isAdmin: false,
type: 'page',
show: true
show: !this.haloConfigs.basicConfig.auditModeEnabled
}, {
key: 'love',
title: '恋爱日记',

View File

@ -1,5 +1,12 @@
<template>
<view class="app-page">
<view class="auditModeEnabled" v-if="haloConfigs.basicConfig.auditModeEnabled">
<view>你好呀很开心认识你</view>
<view style="margin-top: 36rpx;">
{{haloConfigs.appConfig.appInfo.name}}
</view>
</view>
<block v-else>
<view v-if="loading != 'success'" class="loading-wrap">
<tm-skeleton model="listAvatr"></tm-skeleton>
<tm-skeleton model="listAvatr"></tm-skeleton>
@ -24,10 +31,12 @@
</view>
</view>
</tm-translate>
<tm-flotbutton @click="fnToTopPage" size="m" color="light-blue" icon="icon-angle-up"></tm-flotbutton>
<tm-flotbutton @click="fnToTopPage" size="m" color="light-blue"
icon="icon-angle-up"></tm-flotbutton>
<view class="load-text">{{ loadMoreText }}</view>
</block>
</view>
</block>
</view>
</template>
@ -91,6 +100,9 @@
methods: {
fnGetData() {
if (this.haloConfigs.basicConfig.auditModeEnabled) {
uni.setNavigationBarTitle({
title: "你好,很高兴认识你!"
})
return;
}
uni.showLoading({
@ -159,6 +171,15 @@
padding: 24rpx 0;
}
.auditModeEnabled {
width: 100%;
height: 80vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.loading-wrap {
padding: 24rpx;
}

View File

@ -170,7 +170,7 @@
},
fnGetCategoryList() {
if (this.haloConfigs.pageConfig.homeConfig.useCategory) {
if (!this.haloConfigs.pageConfig.homeConfig.useCategory) {
return;
}
this.$httpApi.v2

View File

@ -1,5 +1,12 @@
<template>
<view class="app-page">
<view class="auditModeEnabled" v-if="haloConfigs.basicConfig.auditModeEnabled">
<view>你好呀很开心认识你</view>
<view style="margin-top: 36rpx;">
{{haloConfigs.appConfig.appInfo.name}}
</view>
</view>
<block v-else>
<view class="e-fixed">
<tm-tabs color="light-blue" v-model="tab.activeIndex" :list="tab.list" align="center"
@change="fnOnTabChange"></tm-tabs>
@ -74,6 +81,7 @@
<tm-flotbutton @click="fnToTopPage" size="m" color="bg-gradient-light-blue-accent"
icon="icon-angle-up"></tm-flotbutton>
</block>
</block>
</view>
</template>
@ -117,6 +125,9 @@
},
color_tmeme: function() {
return this.$tm.vx.state().tmVuetify.color;
},
haloConfigs() {
return this.$tm.vx.getters().getConfigs;
}
},
created() {
@ -147,6 +158,9 @@
this.fnToTopPage();
},
fnGetData() {
if (this.haloConfigs.basicConfig.auditModeEnabled) {
return;
}
if (this.isLoadMore) {
uni.showLoading({
title: "加载中..."
@ -317,6 +331,15 @@
background-color: #fafafd;
}
.auditModeEnabled {
width: 100%;
height: 80vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.loading-wrap {
padding: 24rpx;
}