|
@@ -9,8 +9,8 @@
|
|
|
<div class="go-back">
|
|
|
<img :src="exBack" @click="$router.go(-1)" />
|
|
|
</div>
|
|
|
- <div class="vr-btn-container">
|
|
|
- <img :src="vrBtn" @click="handleVRButton" />
|
|
|
+ <div class="vr-btn-container" v-if="detail.link">
|
|
|
+ <img :src="vrBtn" @click="handleVRButton(detail.link)" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -22,7 +22,7 @@
|
|
|
<div class="label-list">
|
|
|
<span v-if="detail.address">{{ detail.address }}</span>
|
|
|
<span v-if="detail.type">{{ typeLabel(detail.type) }}</span>
|
|
|
- <span v-if="detail.publishDate" >{{ detail.publishDate }}</span>
|
|
|
+ <span v-if="detail.publishDate">{{ detail.publishDate }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -49,8 +49,10 @@ const router = useRouter();
|
|
|
const detail = computed(() => exhibitionStore.detail);
|
|
|
// const domain = ref(import.meta.env.VITE_DOMAIN_URL);
|
|
|
|
|
|
-const topBannerUrl = computed(
|
|
|
- () =>detail.value.thumb? `url(${import.meta.env.VITE_DOMAIN_URL + detail.value.thumb})`:''
|
|
|
+const topBannerUrl = computed(() =>
|
|
|
+ detail.value.thumb
|
|
|
+ ? `url(${import.meta.env.VITE_DOMAIN_URL + detail.value.thumb})`
|
|
|
+ : ""
|
|
|
);
|
|
|
|
|
|
const typeLabel = computed(() => (type) => {
|
|
@@ -66,7 +68,7 @@ const typeLabel = computed(() => (type) => {
|
|
|
|
|
|
const handleVRButton = (id) => {
|
|
|
// const url = `https://sit-qiushoubwg.4dage.com/scene/index.html#/?m=1196`;
|
|
|
- router.push(`/model-viewer/1196`);
|
|
|
+ const id = router.push(`/model-viewer/1196`);
|
|
|
};
|
|
|
const props = defineProps({
|
|
|
id: {
|