index.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div class="welcome">
  3. <div class="mobileBg" v-if="isMobile"></div>
  4. <iframe
  5. v-else
  6. src="https://zzbbh.4dage.com/SWKK/show.html?id=WK1676144701759062016&vr=fd720_7kWYgznaO"
  7. frameborder="0"
  8. ></iframe>
  9. <div class="btn" @click.stop="$emit('close')">
  10. <img src="../../assets/img/home/homeBtn.png" alt="" />
  11. <p>360环顾</p>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {};
  19. },
  20. methods: {},
  21. mounted() {},
  22. };
  23. </script>
  24. <style lang="less">
  25. .welcome {
  26. position: fixed;
  27. top: 0;
  28. left: 0;
  29. width: 100%;
  30. height: 100%;
  31. z-index: 11001;
  32. font-size: 0;
  33. background-color: black;
  34. // background-image: url('../../assets/img/home/homeBac.jpg');
  35. // background-size: 100% 100%;
  36. iframe {
  37. width: 100%;
  38. height: 100%;
  39. }
  40. .btn {
  41. position: absolute;
  42. z-index: 10;
  43. bottom: 10%;
  44. left: 50%;
  45. transform: translateX(-50%);
  46. cursor: pointer;
  47. & > img {
  48. width: 246px;
  49. }
  50. & > p {
  51. color: #d6b970;
  52. font-size: 24px;
  53. font-weight: 700;
  54. position: absolute;
  55. width: 100%;
  56. height: 100%;
  57. top: 0;
  58. left: 0;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. }
  63. }
  64. .mobileBg {
  65. width: 100%;
  66. height: 100%;
  67. background-image: url('../../assets/img/mobileBg.jpg');
  68. background-size: 100% 100%;
  69. }
  70. // 移动端
  71. @media screen and (max-width: 1000px) {
  72. .btn {
  73. bottom: 6%;
  74. & > img {
  75. width: 140px;
  76. }
  77. & > p {
  78. font-size: 16px;
  79. }
  80. }
  81. }
  82. }
  83. </style>