From 40dd4f4b7f24d0ec8b4d322465321089dff8535c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= <1431128779@qq.com> Date: Tue, 22 Oct 2024 18:19:23 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=B0=83=E6=95=B4=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E9=9A=90=E8=97=8F=E9=83=A8=E5=88=86=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=88=86=E7=B1=BB=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=8E=A7=E5=88=B6=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabbar/about/about.vue | 2 +- pages/tabbar/category/category.vue | 87 ++++++++++------ pages/tabbar/home/home.vue | 2 +- pagesA/archives/archives.vue | 155 +++++++++++++++++------------ 4 files changed, 145 insertions(+), 101 deletions(-) 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; }