|
@@ -11,7 +11,7 @@
|
|
<div class="main">
|
|
<div class="main">
|
|
<tabs>
|
|
<tabs>
|
|
<tab name="简介">
|
|
<tab name="简介">
|
|
- <IntroText :data="roomInfo" />
|
|
|
|
|
|
+ <IntroText :data="roomInfo" :video="roomVideo" />
|
|
</tab>
|
|
</tab>
|
|
<tab name="相册">
|
|
<tab name="相册">
|
|
<ImageGrid :data="imageList" @click-image="handleViewer" />
|
|
<ImageGrid :data="imageList" @click-image="handleViewer" />
|
|
@@ -38,7 +38,7 @@
|
|
import ImageGrid from './image-grid.vue';
|
|
import ImageGrid from './image-grid.vue';
|
|
import IntroText from './intro-text.vue';
|
|
import IntroText from './intro-text.vue';
|
|
import ImageViewer from './image-view.vue';
|
|
import ImageViewer from './image-view.vue';
|
|
- import Map from './map.vue';
|
|
|
|
|
|
+ // import Map from './map.vue';
|
|
import { useSceneStore } from '/@/store/modules/scene';
|
|
import { useSceneStore } from '/@/store/modules/scene';
|
|
import { useRoom } from '/@/hooks/useRoom';
|
|
import { useRoom } from '/@/hooks/useRoom';
|
|
|
|
|
|
@@ -54,6 +54,7 @@
|
|
const currentImage = ref(0);
|
|
const currentImage = ref(0);
|
|
const imageList = ref<string[]>([]);
|
|
const imageList = ref<string[]>([]);
|
|
const roomInfo = ref('');
|
|
const roomInfo = ref('');
|
|
|
|
+ const roomVideo = ref('');
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
if (unref(showPanel)) {
|
|
if (unref(showPanel)) {
|
|
animateActive.value = true;
|
|
animateActive.value = true;
|
|
@@ -67,7 +68,10 @@
|
|
if (room.value?.roomInfo) {
|
|
if (room.value?.roomInfo) {
|
|
console.log('roomInfo', room.value.roomInfo);
|
|
console.log('roomInfo', room.value.roomInfo);
|
|
roomInfo.value = room.value.roomInfo;
|
|
roomInfo.value = room.value.roomInfo;
|
|
- // imageList.value = room.value.image;
|
|
|
|
|
|
+ }
|
|
|
|
+ if (room.value?.video?.length) {
|
|
|
|
+ console.log('video', room.value.video);
|
|
|
|
+ roomVideo.value = room.value.video[0];
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|