fix: 在多个页面添加隐藏首页按钮功能

为统一处理首页按钮显示逻辑,在会员页、联系页和商品分类页的onShow生命周期中添加了hideHomeButton调用
This commit is contained in:
2026-01-23 11:36:15 +08:00
parent aa9d2e64d2
commit ceca4e5956
3 changed files with 7 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ export default {
}, },
onShow() { onShow() {
if (this.$refs.category) this.$refs.category[0].pageShow(); if (this.$refs.category) this.$refs.category[0].pageShow();
this.$util.hideHomeButton();
}, },
onUnload() { onUnload() {
if (!this.storeToken && this.$refs.login) this.$refs.login.cancelCompleteInfo(); if (!this.storeToken && this.$refs.login) this.$refs.login.cancelCompleteInfo();

View File

@@ -301,6 +301,9 @@ export default {
fail: res => { } fail: res => { }
}); });
}, },
onShow() {
this.$util.hideHomeButton();
},
methods: { methods: {
// 分享文件 // 分享文件
shareFile(file) { shareFile(file) {

View File

@@ -86,6 +86,9 @@ export default {
nsNewGift nsNewGift
}, },
mixins: [diyJs, indexJs], mixins: [diyJs, indexJs],
onShow() {
this.$util.hideHomeButton();
},
methods: { methods: {
tourl(url) { tourl(url) {