|
|
@ -26,7 +26,7 @@ |
|
|
<div class="meta2">{{ bf }}</div> |
|
|
<div class="meta2">{{ bf }}</div> |
|
|
<div class="bottom-right"></div> |
|
|
<div class="bottom-right"></div> |
|
|
</div> |
|
|
</div> |
|
|
<!-- <div class="food" @click="goPage({ title: '推荐美食', path: '/foods' })"> |
|
|
|
|
|
|
|
|
<div v-if="showFood" class="food" @click="goPage({ title: '推荐美食', path: '/foods' })"> |
|
|
<div class="title"> |
|
|
<div class="title"> |
|
|
<h1>推荐美食</h1> |
|
|
<h1>推荐美食</h1> |
|
|
<h2>此时此刻,美食正在等你</h2> |
|
|
<h2>此时此刻,美食正在等你</h2> |
|
|
@ -34,8 +34,8 @@ |
|
|
<div class="grid"> |
|
|
<div class="grid"> |
|
|
<img class="item" v-for="shop of foodList" :key="shop.id" :src="config.sourceUrl + shop.logoUrl" alt="" /> |
|
|
<img class="item" v-for="shop of foodList" :key="shop.id" :src="config.sourceUrl + shop.logoUrl" alt="" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> --> |
|
|
|
|
|
<div class="rec" @click="goPage({ title: '品牌列表', path: '/brand' })"> |
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<div v-else class="rec" @click="goPage({ title: '品牌列表', path: '/brand' })"> |
|
|
<div class="title"> |
|
|
<div class="title"> |
|
|
<h1>推荐品牌</h1> |
|
|
<h1>推荐品牌</h1> |
|
|
<h2>心动之选,拥抱美好生活</h2> |
|
|
<h2>心动之选,拥抱美好生活</h2> |
|
|
@ -77,16 +77,18 @@ import { getBrandList } from '@/http/brand/api' |
|
|
import { getActivityList } from '@/http/api' |
|
|
import { getActivityList } from '@/http/api' |
|
|
import View from '@/layouts/View.vue' |
|
|
import View from '@/layouts/View.vue' |
|
|
import EffectFade from '@/components/EffectFade/EffectFade.vue' |
|
|
import EffectFade from '@/components/EffectFade/EffectFade.vue' |
|
|
|
|
|
import { useTime } from '@/composables/useTime' |
|
|
|
|
|
|
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
|
const store = useStore() |
|
|
const store = useStore() |
|
|
const { indexList, currentFloor, buildingList, shopList, sidebarList, selectedModule, config } = storeToRefs(store) |
|
|
|
|
|
|
|
|
const { indexList, currentFloor, buildingList, shopList, sidebarList, config } = storeToRefs(store) |
|
|
const guideDesc = ref('') |
|
|
const guideDesc = ref('') |
|
|
const foodList = computed(() => shopList.value.filter(({ isSpecial }) => isSpecial).slice(0, 12) ?? []) |
|
|
const foodList = computed(() => shopList.value.filter(({ isSpecial }) => isSpecial).slice(0, 12) ?? []) |
|
|
const hotRecommend = computed(() => indexList.value.hotSearch.slice(0, 5) ?? []) |
|
|
const hotRecommend = computed(() => indexList.value.hotSearch.slice(0, 5) ?? []) |
|
|
const cardsList = computed(() => indexList.value.columnList ?? []) |
|
|
|
|
|
const bf = computed(() => (buildingList.length > 1 ? currentFloor.value.building + '-' : '') + currentFloor.value.floor) |
|
|
const bf = computed(() => (buildingList.length > 1 ? currentFloor.value.building + '-' : '') + currentFloor.value.floor) |
|
|
const activityList = ref([]) |
|
|
const activityList = ref([]) |
|
|
|
|
|
const { currentHour } = useTime() |
|
|
|
|
|
const showFood = computed(() => (currentHour.value >= 11 && currentHour.value < 13) || (currentHour.value >= 17 && currentHour.value < 20)) |
|
|
|
|
|
|
|
|
getBrandList().then(({ data: { allShopNum, industryFatherList } }) => { |
|
|
getBrandList().then(({ data: { allShopNum, industryFatherList } }) => { |
|
|
const spFormat = industryFatherList.find(({ isSpecial }) => isSpecial) |
|
|
const spFormat = industryFatherList.find(({ isSpecial }) => isSpecial) |
|
|
|