|
|
@ -109,7 +109,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="menu"> |
|
|
<div class="menu"> |
|
|
<div class="item" v-for="tab of menuList" :key="tab.id" @click="goMenu(tab)"> |
|
|
|
|
|
|
|
|
<div class="item" v-for="tab of menuList" :key="tab.moduleCode" @click="goMenu(tab)"> |
|
|
<div class="icon"><img :src="theme.images[tab.routePath.slice(1)]" /></div> |
|
|
<div class="icon"><img :src="theme.images[tab.routePath.slice(1)]" /></div> |
|
|
<div class="title">{{ tab.moduleName }}</div> |
|
|
<div class="title">{{ tab.moduleName }}</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -192,8 +192,8 @@ const goPage = item => router.push(item.path) |
|
|
|
|
|
|
|
|
const goMenu = item => router.push(item.routePath) |
|
|
const goMenu = item => router.push(item.routePath) |
|
|
|
|
|
|
|
|
const setShopById = id => { |
|
|
|
|
|
const shop = shopList.value.find(_shop => _shop.shopCode === id) |
|
|
|
|
|
|
|
|
const setShopByCode = code => { |
|
|
|
|
|
const shop = shopList.value.find(_shop => _shop.shopCode === code) |
|
|
store.SET_SHOP(shop) |
|
|
store.SET_SHOP(shop) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -210,12 +210,12 @@ const clearShop = () => { |
|
|
store.SET_SHOP(null) |
|
|
store.SET_SHOP(null) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const handleRecBrand = id => { |
|
|
|
|
|
setShopById(id) |
|
|
|
|
|
|
|
|
const handleRecBrand = code => { |
|
|
|
|
|
setShopByCode(code) |
|
|
goPage({ title: '品牌列表', path: '/brand' }) |
|
|
goPage({ title: '品牌列表', path: '/brand' }) |
|
|
} |
|
|
} |
|
|
const handleFood = id => { |
|
|
|
|
|
setShopById(id) |
|
|
|
|
|
|
|
|
const handleFood = code => { |
|
|
|
|
|
setShopByCode(code) |
|
|
goPage({ title: '推荐美食', path: '/foods' }) |
|
|
goPage({ title: '推荐美食', path: '/foods' }) |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|