fix: 在多个页面添加隐藏首页按钮功能
为统一处理首页按钮显示逻辑,在会员页、联系页和商品分类页的onShow生命周期中添加了hideHomeButton调用
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -301,6 +301,9 @@ export default {
|
|||||||
fail: res => { }
|
fail: res => { }
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
this.$util.hideHomeButton();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 分享文件
|
// 分享文件
|
||||||
shareFile(file) {
|
shareFile(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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user