From bfdfabc6d10ef254e906ba4b57e164700abf9d91 Mon Sep 17 00:00:00 2001
From: wuhui_zzw <1760308791@qq.com>
Date: Thu, 28 Mar 2024 16:50:11 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E9=99=84=E8=BF=91?=
=?UTF-8?q?=E5=95=86=E5=AE=B6=E6=98=BE=E7=A4=BA=E5=BA=95=E9=83=A8=E8=8F=9C?=
=?UTF-8?q?=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/store/shopStreet/index.vue | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/pages/store/shopStreet/index.vue b/pages/store/shopStreet/index.vue
index 4448597..29f6938 100644
--- a/pages/store/shopStreet/index.vue
+++ b/pages/store/shopStreet/index.vue
@@ -172,6 +172,9 @@
+
+
+
@@ -185,12 +188,16 @@
import { HTTP_REQUEST_URL } from '@/config/app'
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue';
import spread from "../../../libs/spread";
+ import customTab from '@/components/customTab';
+ import { getNavigation } from "@/api/public";
+
const app = getApp();
export default {
components: {
recommend,
rightSlider,
- easyLoadimage
+ easyLoadimage,
+ customTab
},
data() {
return {
@@ -260,8 +267,18 @@
count: 0,
storeTypeArr: [], //店铺类型
merList: [], //商户分类
+
+ newData: {},
+ activeRouter: '',
};
},
+ onShow: function() {
+ let that = this
+ let routes = getCurrentPages();
+ let curRoute = routes[routes.length - 1].route
+ this.activeRouter = '/' + curRoute
+ this.getNav();
+ },
onLoad(options) {
this.sotreParam.type_id = options.type_id && options.type_id.split(',').toString() || ''
this.sotreParam.category_id= options.cate_id && options.cate_id.split(',').toString() || ''
@@ -278,7 +295,6 @@
},500)
this.getClassfication();
this.getStoreType();
-
// 关系处理
if(options.spread) spread(options.spread, this.isLogin)
},
@@ -527,6 +543,16 @@
delta: 1
})
},
+ getNav() {
+ getNavigation().then(res => {
+ this.newData = res.data
+ if (this.newData.status && this.newData.status.status) {
+ uni.hideTabBar()
+ } else {
+ uni.showTabBar()
+ }
+ })
+ },
},
//刷新
onPullDownRefresh() {},