index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <div class="wrapper">
  3. <div class="bgimg">
  4. <div class="title">主办单位:中共珠海市委党史学习教育领导小组办公室</div>
  5. <div class="title">中共珠海市委宣传部</div>
  6. <div class="con">
  7. <div class="btn" @click="enter">
  8. <span class="btn-txt">点击进入</span>
  9. </div>
  10. </div>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. import browser from "@/utils/browser.js";
  16. export default {
  17. components: {
  18. /* bg */
  19. },
  20. data() {
  21. return {
  22. isMobile: browser.mobile,
  23. state: false,
  24. cdn_url: "https://4dscene.4dage.com/ShaoShan/audios/",
  25. };
  26. },
  27. computed: {},
  28. watch: {},
  29. created() {
  30. },
  31. mounted() {},
  32. methods: {
  33. enter() {
  34. this.$router.push("/ruins");
  35. },
  36. },
  37. };
  38. </script>
  39. <style lang="less" scoped>
  40. .wrapper {
  41. width: 100%;
  42. height: 100%;
  43. .bgimg {
  44. position: absolute;
  45. z-index: 99;
  46. width: 100%;
  47. left: 0;
  48. height: 100%;
  49. background: url("../../assets/images/index-bg.png") no-repeat center center;
  50. background-size: 100% 100%;
  51. .title {
  52. position: relative;
  53. top:42%;
  54. width: 30vw;
  55. margin:0 auto;
  56. font-size: 24px;
  57. font-family: Source Han Sans CN;
  58. font-weight: bold;
  59. line-height: 41px;
  60. color: #FCD67B;
  61. opacity: 1;
  62. text-align: center;
  63. }
  64. .con {
  65. left: 50%;
  66. top: 45%;
  67. width: 20%;
  68. height: 10%;
  69. margin-left: -10%;
  70. position: relative;
  71. .btn {
  72. margin: 0 auto;
  73. margin-top: 0vw;
  74. width: 100%;
  75. height: 74px;
  76. line-height: 74px;
  77. text-align: center;
  78. background: url(../../assets/images/index-btn-bg.png) no-repeat;
  79. background-size: 100% 100%;
  80. cursor: pointer;
  81. .btn-txt {
  82. font-size: 32px;
  83. font-family: Source Han Sans CN;
  84. font-weight: bold;
  85. line-height: 54px;
  86. color: #9c0012;
  87. opacity: 1;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. @media screen and (max-width: 1024px) {
  94. .wrapper {
  95. .bgimg {
  96. background: url("../../assets/images/mobile-index-bg.png") no-repeat center center;
  97. background-size: 100% 100%;
  98. .title {
  99. position: relative;
  100. top:40%;
  101. width: 75vw;
  102. margin:0 auto;
  103. font-size: 14px;
  104. font-family: Source Han Sans CN;
  105. font-weight: bold;
  106. line-height: 20px;
  107. color: #FCD67B;
  108. opacity: 1;
  109. text-align: center;
  110. }
  111. .con {
  112. width: 80%;
  113. left: 50%;
  114. top:0;
  115. margin-left: -40%;
  116. margin-top:100%;
  117. .btn {
  118. background: url(../../assets/images/mobile-btn-bg.png) no-repeat center center;
  119. background-size: 100% 100%;
  120. margin-left: 0px;
  121. height: 17vw;
  122. line-height: 17vw;
  123. .btn-txt {
  124. font-size: 5vw;
  125. font-family: Source Han Sans CN;
  126. font-weight: bold;
  127. color: #6a2121;
  128. opacity: 1;
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }
  135. </style>