|
@@ -18,12 +18,33 @@
|
|
|
draggable="false"
|
|
|
>
|
|
|
<div class="btn-group">
|
|
|
- <button>全景浏览</button>
|
|
|
- <button>场景漫游</button>
|
|
|
+ <button
|
|
|
+ v-if="data.link.includes('4dkankan')"
|
|
|
+ @click="iframeUrl = props.data.link, isShowIframeWrap = true"
|
|
|
+ >
|
|
|
+ 场景漫游
|
|
|
+ </button>
|
|
|
+ <button
|
|
|
+ v-else
|
|
|
+ @click="router.push({
|
|
|
+ name: 'IframeWrap',
|
|
|
+ query: {
|
|
|
+ url: encodeURI(data.link)
|
|
|
+ }
|
|
|
+ })"
|
|
|
+ >
|
|
|
+ 全景浏览
|
|
|
+ </button>
|
|
|
</div>
|
|
|
<div class="desc">
|
|
|
{{ props.data.description }}
|
|
|
</div>
|
|
|
+
|
|
|
+ <IframeWrap
|
|
|
+ v-if="isShowIframeWrap"
|
|
|
+ :url="iframeUrl"
|
|
|
+ @back="isShowIframeWrap = false, iframeUrl = ''"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -32,6 +53,7 @@ import { ref, computed, watch, onMounted, inject } from "vue"
|
|
|
import { useRoute, useRouter } from "vue-router"
|
|
|
import { useStore } from "vuex"
|
|
|
import BtnClose from '@/components/BtnClose.vue'
|
|
|
+import IframeWrap from '@/components/IframeWrap.vue'
|
|
|
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
@@ -48,6 +70,8 @@ const props = defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const isShowIframeWrap = ref(false)
|
|
|
+const iframeUrl = ref('')
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|