index.vue 1.8 KB

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