|
|
@ -1,6 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<View long> |
|
|
<View long> |
|
|
<CarouselWithIntro :data="mall" /> |
|
|
|
|
|
|
|
|
<CarouselWithIntro :data="cinema" /> |
|
|
</View> |
|
|
</View> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -10,10 +10,9 @@ import { getCinemaInfo } from '@/http/api' |
|
|
import View from '@/layouts/View.vue' |
|
|
import View from '@/layouts/View.vue' |
|
|
import CarouselWithIntro from '@/components/CarouselWithIntro/CarouselWithIntro.vue' |
|
|
import CarouselWithIntro from '@/components/CarouselWithIntro/CarouselWithIntro.vue' |
|
|
|
|
|
|
|
|
const mall = ref({}) |
|
|
|
|
|
|
|
|
const cinema = ref({}) |
|
|
getCinemaInfo().then(({ data }) => { |
|
|
getCinemaInfo().then(({ data }) => { |
|
|
console.log(data) |
|
|
|
|
|
mall.value = data |
|
|
|
|
|
|
|
|
cinema.value = { title: data.cinemaName, content: data.cinemaIntro } |
|
|
}) |
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|