Bladeren bron

【模版目录】更新移动端源码

吴昊天 3 jaren geleden
bovenliggende
commit
fec6722522

+ 2 - 10
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()

+ 1 - 5
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 => {