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) => {