|
|
@ -20,7 +20,7 @@ const selectedList = ref([]) |
|
|
Promise.all([getBrandListByFloor()]).then(([_brandList]) => { |
|
|
Promise.all([getBrandListByFloor()]).then(([_brandList]) => { |
|
|
const recMap = indexList.value.recommendList.reduce((acc, { shopId }) => ({ ...acc, [shopId]: true }), {}) |
|
|
const recMap = indexList.value.recommendList.reduce((acc, { shopId }) => ({ ...acc, [shopId]: true }), {}) |
|
|
const list = _brandList.data.list |
|
|
const list = _brandList.data.list |
|
|
selectedList.value = list.map(({ name, shopList }) => ({ name, shopList: shopList.filter(({ shopId }) => recMap[shopId]) })) |
|
|
|
|
|
|
|
|
selectedList.value = list.map(({ name, shopList: _shopList }) => ({ name, shopList: _shopList.filter(({ shopId }) => recMap[shopId]) })) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
function handleShop(item) { |
|
|
function handleShop(item) { |
|
|
|