diff --git a/pages/index/index.vue b/pages/index/index.vue index b6398e5..ff0b328 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) => {