|
|
|
@ -7,7 +7,7 @@ |
|
|
|
<div class="title">{{ artInfo.content.name }}</div> |
|
|
|
<div class="titleEn">{{ artInfo.content.nameEn }}</div> |
|
|
|
</div> |
|
|
|
<img src="@/assets/images/art/go.svg" alt="" /> |
|
|
|
<img src="@/assets/images/art/go.svg" alt="" @click="go(artInfo)" /> |
|
|
|
</div> |
|
|
|
<ScrollView :list="switchLanguage(artInfo.content, 'content')" class="intro-scroll" scrollbar> |
|
|
|
<div class="intro">{{ switchLanguage(artInfo.content, 'content') }}</div> |
|
|
|
@ -17,13 +17,35 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import ScrollView from '@/base/ScrollView/ScrollView.vue' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
import { useSwitchLanguage } from '@/composables/useSwitchLanguage' |
|
|
|
import { useRootStore } from '@/store/root' |
|
|
|
import ScrollView from '@/base/ScrollView/ScrollView.vue' |
|
|
|
const { switchLanguage } = useSwitchLanguage() |
|
|
|
const store = useRootStore() |
|
|
|
const router = useRouter() |
|
|
|
type Prop = { |
|
|
|
artInfo: ArtPlace |
|
|
|
} |
|
|
|
defineProps<Prop>() |
|
|
|
|
|
|
|
// 跳转导航 |
|
|
|
function go(item: ArtPlace) { |
|
|
|
// 点位信息 |
|
|
|
const poi = item.content.point.split('_') |
|
|
|
const floors = store.currentBuildingFloorsList.filter(item => item.floorOrder === Number(poi[1])) |
|
|
|
const shop = { |
|
|
|
shopCode: '', |
|
|
|
shopName: item.content.name, |
|
|
|
shopNameEn: item.content.nameEn, |
|
|
|
floorOrder: floors[0].floorOrder, |
|
|
|
floor: floors[0].floor, |
|
|
|
logoUrl: item.content.icon[0], |
|
|
|
yaxis: Number(poi[2]) |
|
|
|
} |
|
|
|
store.SET_SHOP(shop) |
|
|
|
router.push('/nav') |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|