Browse Source

取消底部导航栏自定义

yuxingxing 2 years ago
parent
commit
55c257a8b8

+ 11 - 11
pages/goods_cate/goods_cate1.vue

@@ -137,17 +137,17 @@
 		},
 		methods: {
 			getNav() {
-			uni.request({
-				url:'api/mock/navigation',
-				success:res=>{
-					this.newData = res.data
-					if (this.newData.status && this.newData.status.status) {
-						uni.hideTabBar()
-					} else {
-						uni.showTabBar()
-					}
-				}
-			})
+			// uni.request({
+			// 	url:'api/mock/navigation',
+			// 	success:res=>{
+			// 		this.newData = res.data
+			// 		if (this.newData.status && this.newData.status.status) {
+			// 			uni.hideTabBar()
+			// 		} else {
+			// 			uni.showTabBar()
+			// 		}
+			// 	}
+			// })
 			// getNavigation().then(res => {
 				// this.newData = res
 				// if (this.newData.status && this.newData.status.status) {

+ 3 - 2
pages/index/diy/index_mall.vue

@@ -665,13 +665,14 @@ export default {
 		}
 	},
 	mounted() {
+		uni.showTabBar()
 		this.getAdsList(),
-			this.getNoticeList()
+		this.getNoticeList()
 	},
 	onLoad() {
 	},
 	methods: {
-		noticeClose(){
+		noticeClose() {
 			this.noticeShow = false
 		},
 		goNoticeDetail(value) {

+ 28 - 28
pages/order_addcart/order_addcart.vue

@@ -255,34 +255,34 @@
 		},
 		computed: mapGetters(['isLogin']),
 		onLoad(options) {
-			if (this.is_diy) {
-				if (uni.getStorageSync('FOOTER_BAR')) {
-					uni.hideTabBar()
-				} else {
-					this.is_diy_set = true
-				}
-				uni.request({
-					url:'api/mock/navigation',
-					success:res=>{
-						this.newData = res.data
-						if (this.newData.status && this.newData.status.status) {
-							uni.hideTabBar()
-						} else {
-							uni.showTabBar()
-						}
-					}
-				})
-				// getNavigation().then(res => {
-				// 	this.newData = res.data
-				// 	if (this.newData.status && this.newData.status.status) {
-				// 		uni.hideTabBar()
-				// 	} else {
-				// 		uni.showTabBar()
-				// 	}
-				// })
-			} else {
-				uni.hideTabBar()
-			}
+			// if (this.is_diy) {
+			// 	if (uni.getStorageSync('FOOTER_BAR')) {
+			// 		uni.hideTabBar()
+			// 	} else {
+			// 		this.is_diy_set = true
+			// 	}
+			// 	uni.request({
+			// 		url:'api/mock/navigation',
+			// 		success:res=>{
+			// 			this.newData = res.data
+			// 			if (this.newData.status && this.newData.status.status) {
+			// 				uni.hideTabBar()
+			// 			} else {
+			// 				uni.showTabBar()
+			// 			}
+			// 		}
+			// 	})
+			// 	// getNavigation().then(res => {
+			// 	// 	this.newData = res.data
+			// 	// 	if (this.newData.status && this.newData.status.status) {
+			// 	// 		uni.hideTabBar()
+			// 	// 	} else {
+			// 	// 		uni.showTabBar()
+			// 	// 	}
+			// 	// })
+			// } else {
+			// 	uni.hideTabBar()
+			// }
 			let that = this;
 			if (that.isLogin == false) {
 				toLogin();

+ 16 - 16
pages/user/index.vue

@@ -414,22 +414,22 @@ export default {
 	onLoad(option) {
 		// uni.hideTabBar()
 		let that = this;
-		if (this.is_diy) {
-			if (uni.getStorageSync('FOOTER_BAR')) {
-				uni.hideTabBar()
-			}
-			uni.request({
-				url:'api/mock/navigation',
-				success:res=>{
-					this.newData = res.data
-					if (this.newData.status && this.newData.status.status) {
-						uni.hideTabBar()
-					} else {
-						uni.showTabBar()
-					}
-				}
-			})
-		}
+		// if (this.is_diy) {
+		// 	if (uni.getStorageSync('FOOTER_BAR')) {
+		// 		uni.hideTabBar()
+		// 	}
+		// 	uni.request({
+		// 		url:'api/mock/navigation',
+		// 		success:res=>{
+		// 			this.newData = res.data
+		// 			if (this.newData.status && this.newData.status.status) {
+		// 				uni.hideTabBar()
+		// 			} else {
+		// 				uni.showTabBar()
+		// 			}
+		// 		}
+		// 	})
+		// }
 		// #ifdef MP
 		// 小程序静默授权
 		if (!this.$store.getters.isLogin) {