From b244fb3fe032390e96cdf237e3938190fc7166f5 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Sat, 8 Jun 2024 16:11:25 +0800 Subject: [PATCH] add --- pages/index/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 61fbff2..4af56aa 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -191,6 +191,9 @@ }) } + // 用户选择的门店信息 + const storeInfo = JSON.parse(uni.getStorageSync('STORE_INFO')) + /*商品列表滚动隐藏头部导航 */ const instance = getCurrentInstance(); // 获取组件实例 const targetHeight = ref(0) @@ -266,8 +269,10 @@ page_size: 25, name: '', order: '', - store_id: '2' + store_id: storeInfo.id }) + + // console.log(JSON.parse(uni.getStorageSync('STORE_INFO'))) const loading = ref(true); const goodList = ref([]); const getGoodList = (loadmore = false) => {