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 => {