From fec67225220a662934b813f7344d0b21ef1cc357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Thu, 24 Nov 2022 21:48:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A8=A1=E7=89=88=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=BA=90?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/components/pageFooter/index.vue | 12 ++---------- template/uni-app/pages/goods_cate/goods_cate.vue | 6 +----- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/template/uni-app/components/pageFooter/index.vue b/template/uni-app/components/pageFooter/index.vue index 0a26622b6..dd82cd7de 100644 --- a/template/uni-app/components/pageFooter/index.vue +++ b/template/uni-app/components/pageFooter/index.vue @@ -92,25 +92,17 @@ this.activeRouter = '/' + curRoute }, onShow() { + uni.hideTabBar() getNavigation().then(res => { uni.setStorageSync('pageFoot', res.data) this.$store.commit('FOOT_UPLOAD', res.data) this.newData = res.data - if (this.newData.status && this.newData.status.status) { - // uni.hideTabBar() - } else { - uni.showTabBar() - } }) }, mounted() { let that = this + uni.hideTabBar() this.newData = this.$store.state.app.pageFooter - if (this.newData.status && this.newData.status.status) { - uni.hideTabBar() - } else { - uni.showTabBar() - } console.log(this.newData) if (this.isLogin) { this.getCartNum() diff --git a/template/uni-app/pages/goods_cate/goods_cate.vue b/template/uni-app/pages/goods_cate/goods_cate.vue index 28668d6e6..418351b0e 100644 --- a/template/uni-app/pages/goods_cate/goods_cate.vue +++ b/template/uni-app/pages/goods_cate/goods_cate.vue @@ -53,11 +53,7 @@ }, methods: { jumpIndex() { - if (this.is_diy) { - if (!uni.getStorageSync('FOOTER_BAR')) { - uni.showTabBar() - } - } + if (this.is_diy) {} }, classStyle() { colorChange('category').then(res => {