index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <div class="welcome">
  3. <img class="bg" :src="require(`@/assets/images/project/${isMobile?'mobile.jpg':'pc.jpg'}`)" alt="">
  4. <span class="btn" >
  5. <img draggable="false" @click="$emit('close')" :src="require('@/assets/images/project/btn.png')" alt="">
  6. </span>
  7. <div class="logo">
  8. <img class="l" :src="require('@/assets/images/project/l_logo.png')" alt="">
  9. <img class="r" :src="require('@/assets/images/project/r_logo.png')" alt="">
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. data(){
  16. return {
  17. loading:true
  18. }
  19. },
  20. methods:{
  21. },
  22. mounted(){
  23. this.$nextTick(()=> {
  24. })
  25. }
  26. }
  27. </script>
  28. <style lang="less">
  29. .welcome{
  30. position: fixed;
  31. top: 0;
  32. left: 0;
  33. width: 100%;
  34. height: 100%;
  35. z-index: 999;
  36. font-size: 0;
  37. transition: all ease 0.3s;
  38. .bg{
  39. width: 100%;
  40. min-height: 100%;
  41. position: absolute;
  42. top: 50%;
  43. left: 50%;
  44. transform: translate(-50%,-50%);
  45. }
  46. .we_title{
  47. background: none;
  48. position: absolute;
  49. top: 35%;
  50. left: 50%;
  51. transform: translate(-50%,-50%);
  52. font-size: 48px;
  53. color: #FCD67B;
  54. letter-spacing: 6px;
  55. font-weight: bold;
  56. width: 100%;
  57. text-align: center;
  58. }
  59. >video{
  60. width: 100%;
  61. height: 100%;
  62. object-fit: fill;
  63. }
  64. .btn{
  65. position: absolute;
  66. bottom: 8%;
  67. left: 50%;
  68. transform: translateX(-50%);
  69. z-index: 9999;
  70. font-size: 0;
  71. color: #FCD67B;
  72. border-radius: 44px;
  73. display: inline-block;
  74. cursor: pointer;
  75. letter-spacing: 2px;
  76. max-width: 300px;
  77. >img{
  78. width: 100%;
  79. }
  80. }
  81. }
  82. .logo{
  83. .l{
  84. position: fixed;
  85. top: 40px;
  86. left: 40px;
  87. }
  88. .r{
  89. position: fixed;
  90. top: 38px;
  91. right: 40px;
  92. }
  93. }
  94. .loading{
  95. position: fixed;
  96. left: 0;
  97. top: 0;
  98. width: 100%;
  99. height: 100%;
  100. z-index: 10000;
  101. background: #000;
  102. >span{
  103. position: absolute;
  104. top: 50%;
  105. left: 50%;
  106. transform: translateX(-50%,-50%);
  107. color: #fff;
  108. font-size: 16px;
  109. display: inline-block;
  110. }
  111. }
  112. @media only screen and (max-width: 487px) {
  113. .welcome{
  114. .bg{
  115. }
  116. .btn{
  117. position: absolute;
  118. bottom: 70px;
  119. left: 50%;
  120. transform: translateX(-50%);
  121. z-index: 99;
  122. font-size: 0;
  123. color: #FCD67B;
  124. border-radius: 44px;
  125. display: inline-block;
  126. cursor: pointer;
  127. letter-spacing: 2px;
  128. max-width: 200px;
  129. width: 50%;
  130. >img{
  131. width: 100%;
  132. }
  133. }
  134. }
  135. .logo{
  136. .l{
  137. position: fixed;
  138. top: 10px;
  139. width: 60%;
  140. left: 50%;
  141. transform: translateX(-50%);
  142. display: none;
  143. }
  144. .r{
  145. position: fixed;
  146. top: unset;
  147. right: unset;
  148. bottom: 20px;
  149. width: 30%;
  150. left: 50%;
  151. transform: translateX(-50%);
  152. }
  153. }
  154. }
  155. </style>