From 29b5cfda6fe8c95c821215a85a2cca8e6ff3f4d9 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Fri, 23 Jan 2026 11:54:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E9=A1=B5=E9=9D=A2=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E7=BB=9F=E4=B8=80=E9=9A=90=E8=97=8F=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在多个页面的onLoad生命周期中添加this.$util.hideHomeButton()调用,确保页面加载时即隐藏首页按钮,避免显示不一致问题。同时调整category.vue中onShow的逻辑顺序。 --- pages_goods/category.vue | 5 ++--- pages_tool/contact/contact.vue | 1 + pages_tool/member/index.vue | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pages_goods/category.vue b/pages_goods/category.vue index a863f67..be21c82 100644 --- a/pages_goods/category.vue +++ b/pages_goods/category.vue @@ -30,15 +30,14 @@ export default { }; }, onLoad() { + this.$util.hideHomeButton(); //刷新多语言 this.$langConfig.refresh(); - - uni.hideTabBar(); this.getDiyInfo(); }, onShow() { - if (this.$refs.category) this.$refs.category[0].pageShow(); this.$util.hideHomeButton(); + if (this.$refs.category) this.$refs.category[0].pageShow(); }, onUnload() { if (!this.storeToken && this.$refs.login) this.$refs.login.cancelCompleteInfo(); diff --git a/pages_tool/contact/contact.vue b/pages_tool/contact/contact.vue index bda2223..9b97a97 100644 --- a/pages_tool/contact/contact.vue +++ b/pages_tool/contact/contact.vue @@ -252,6 +252,7 @@ export default { }; }, onLoad(option) { + this.$util.hideHomeButton(); this.$langConfig.refresh(); this.$api.sendRequest({ url: '/api/member/personnel', diff --git a/pages_tool/member/index.vue b/pages_tool/member/index.vue index 2259642..27081c1 100644 --- a/pages_tool/member/index.vue +++ b/pages_tool/member/index.vue @@ -86,6 +86,9 @@ export default { nsNewGift }, mixins: [diyJs, indexJs], + onLoad() { + this.$util.hideHomeButton(); + }, onShow() { this.$util.hideHomeButton(); },