SceneView.vue 850 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <script setup>
  2. import { useRouter } from 'vue-router'
  3. const router = useRouter()
  4. const closeScene = () => {
  5. const musicDom = document.getElementById('bg-music')
  6. musicDom.play()
  7. router.replace('/more-content?anchorIdx=3')
  8. }
  9. </script>
  10. <template>
  11. <div class="scene-box">
  12. <BtnBack
  13. class="scene-back"
  14. @click="closeScene()"
  15. />
  16. <iframe
  17. src="https://www.4dkankan.com/spg.html?m=KJ-et2X3su4ofm"
  18. frameborder="0"
  19. />
  20. </div>
  21. </template>
  22. <style lang='less' scoped>
  23. .scene-box {
  24. width: 100%;
  25. height: 100%;
  26. position: fixed;
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. z-index: 100;
  31. >.scene-back {
  32. position: absolute;
  33. left: 8px;
  34. top: 45px;
  35. transform: scale(1);
  36. z-index: 2;
  37. }
  38. >iframe {
  39. width: 100%;
  40. height: 100%;
  41. position: absolute;
  42. top: 0;
  43. left: 0;
  44. }
  45. }
  46. </style>