diff --git a/pages/tabbar/about/about.vue b/pages/tabbar/about/about.vue index 34c8bc0..155abf4 100644 --- a/pages/tabbar/about/about.vue +++ b/pages/tabbar/about/about.vue @@ -190,7 +190,7 @@ path: '/pagesA/archives/archives', isAdmin: false, type: 'page', - show: true + show: !this.haloConfigs.basicConfig.auditModeEnabled }, { key: 'love', title: '恋爱日记', diff --git a/pages/tabbar/category/category.vue b/pages/tabbar/category/category.vue index 59169b1..1e09772 100644 --- a/pages/tabbar/category/category.vue +++ b/pages/tabbar/category/category.vue @@ -1,33 +1,42 @@ @@ -62,11 +71,11 @@ loadMoreText: '加载中...' }; }, - computed: { - haloConfigs() { - return this.$tm.vx.getters().getConfigs; - }, - }, + computed: { + haloConfigs() { + return this.$tm.vx.getters().getConfigs; + }, + }, onLoad() { this.fnGetData(); }, @@ -90,9 +99,12 @@ }, methods: { fnGetData() { - if (this.haloConfigs.basicConfig.auditModeEnabled) { - return; - } + if (this.haloConfigs.basicConfig.auditModeEnabled) { + uni.setNavigationBarTitle({ + title: "你好,很高兴认识你!" + }) + return; + } uni.showLoading({ mask: true, title: '加载中...' @@ -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; } diff --git a/pages/tabbar/home/home.vue b/pages/tabbar/home/home.vue index 1112acc..af5f954 100644 --- a/pages/tabbar/home/home.vue +++ b/pages/tabbar/home/home.vue @@ -170,7 +170,7 @@ }, fnGetCategoryList() { - if (this.haloConfigs.pageConfig.homeConfig.useCategory) { + if (!this.haloConfigs.pageConfig.homeConfig.useCategory) { return; } this.$httpApi.v2 diff --git a/pagesA/archives/archives.vue b/pagesA/archives/archives.vue index 209b9a2..0bdd80a 100644 --- a/pagesA/archives/archives.vue +++ b/pagesA/archives/archives.vue @@ -1,78 +1,86 @@ @@ -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; }