diff --git a/src/base/ShopItem/ShopItem.vue b/src/base/ShopItem/ShopItem.vue index 1ef424c..07453c6 100644 --- a/src/base/ShopItem/ShopItem.vue +++ b/src/base/ShopItem/ShopItem.vue @@ -18,20 +18,14 @@ diff --git a/src/views/Foods/Foods.vue b/src/views/Foods/Foods.vue index a9e55b4..07017e7 100644 --- a/src/views/Foods/Foods.vue +++ b/src/views/Foods/Foods.vue @@ -1,6 +1,6 @@ @@ -14,22 +14,20 @@ import BrandScroll from '@/components/BrandScroll/BrandScroll.vue' const store = useStore() const { config, shopList } = storeToRefs(store) - +const shop = ref(null) const selectedList = ref([]) Promise.all([getBrandListByFloor()]).then(([_brandList]) => { const list = _brandList.data.list.map(item => ({ name: item.name, - shopList: item.shopList.filter(shop => shop.isSpecial) + shopList: item.shopList.filter(_ => _.isSpecial) })) selectedList.value = list }) function handleShop(item) { - const shop = shopList.value.find(_shop => _shop.shopId === item.shopId) - store.SET_SHOP(shop) - store.SET_SHOW_DETAIL(true) + shop.value = shopList.value.find(_shop => _shop.shopId === item.shopId) } diff --git a/src/views/Guide/Guide.vue b/src/views/Guide/Guide.vue index e17757a..df2fb1d 100644 --- a/src/views/Guide/Guide.vue +++ b/src/views/Guide/Guide.vue @@ -5,7 +5,7 @@
全部楼层
- +
@@ -64,7 +64,7 @@