|
|
@ -5,7 +5,7 @@ |
|
|
<div class="hot-search"> |
|
|
<div class="hot-search"> |
|
|
<h1 class="title">{{ $t('hotSearch') }}</h1> |
|
|
<h1 class="title">{{ $t('hotSearch') }}</h1> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="item" v-for="(item, i) of hotRecommend" :key="item.shopId" @click="handleHot(item)"> |
|
|
|
|
|
|
|
|
<div class="item" v-for="(item, i) of hotRecommend" :key="item.shopCode" @click="handleHot(item)"> |
|
|
<img class="medal" v-if="i === 0" src="./fir.svg" /> |
|
|
<img class="medal" v-if="i === 0" src="./fir.svg" /> |
|
|
<img class="medal" v-if="i === 1" src="./sec.svg" /> |
|
|
<img class="medal" v-if="i === 1" src="./sec.svg" /> |
|
|
<img class="medal" v-if="i === 2" src="./thi.svg" /> |
|
|
<img class="medal" v-if="i === 2" src="./thi.svg" /> |
|
|
@ -65,7 +65,7 @@ |
|
|
> |
|
|
> |
|
|
<SwiperSlide class="brandSlide" v-for="(list, i) of foodList" :key="i"> |
|
|
<SwiperSlide class="brandSlide" v-for="(list, i) of foodList" :key="i"> |
|
|
<div class="grid"> |
|
|
<div class="grid"> |
|
|
<img class="item" v-for="shop of list" :key="shop.shopId" :src="config.sourceUrl + shop.logoUrl" alt="" @click="handleFood(shop.shopId)" /> |
|
|
|
|
|
|
|
|
<img class="item" v-for="shop of list" :key="shop.shopCode" :src="config.sourceUrl + shop.logoUrl" alt="" @click="handleFood(shop.shopCode)" /> |
|
|
</div> |
|
|
</div> |
|
|
</SwiperSlide> |
|
|
</SwiperSlide> |
|
|
</Swiper> |
|
|
</Swiper> |
|
|
@ -102,7 +102,7 @@ |
|
|
> |
|
|
> |
|
|
<SwiperSlide class="brandSlide" v-for="(list, i) of recommendShops" :key="i"> |
|
|
<SwiperSlide class="brandSlide" v-for="(list, i) of recommendShops" :key="i"> |
|
|
<div class="grid"> |
|
|
<div class="grid"> |
|
|
<img class="item" v-for="shop of list" :key="shop.shopId" :src="config.sourceUrl + shop.logoUrl" alt="" @click="handleRecBrand(shop.shopId)" /> |
|
|
|
|
|
|
|
|
<img class="item" v-for="shop of list" :key="shop.shopCode" :src="config.sourceUrl + shop.logoUrl" alt="" @click="handleRecBrand(shop.shopCode)" /> |
|
|
</div> |
|
|
</div> |
|
|
</SwiperSlide> |
|
|
</SwiperSlide> |
|
|
</Swiper> |
|
|
</Swiper> |
|
|
@ -194,12 +194,12 @@ const goPage = item => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const setShopById = id => { |
|
|
const setShopById = id => { |
|
|
const shop = shopList.value.find(_shop => _shop.shopId === id) |
|
|
|
|
|
|
|
|
const shop = shopList.value.find(_shop => _shop.shopCode === id) |
|
|
store.SET_SHOP(shop) |
|
|
store.SET_SHOP(shop) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function handleHot(item) { |
|
|
function handleHot(item) { |
|
|
const shop = shopList.value.find(_shop => _shop.shopId === item.shopId) |
|
|
|
|
|
|
|
|
const shop = shopList.value.find(_shop => _shop.shopCode === item.shopCode) |
|
|
store.SET_SHOP(shop) |
|
|
store.SET_SHOP(shop) |
|
|
goPage({ title: 'Guide', path: '/guide' }) |
|
|
goPage({ title: 'Guide', path: '/guide' }) |
|
|
} |
|
|
} |
|
|
|