EpilogueView.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <div class="epilogue-view">
  3. <transition name="fade-out">
  4. <video
  5. v-show="isShowVideo"
  6. class="epilogue-video"
  7. src="@/assets/videos/epilogue.mp4"
  8. autoplay
  9. playsinline
  10. webkit-playsinline="true"
  11. x5-video-player-type="h5"
  12. @ended="isShowVideo = false"
  13. />
  14. </transition>
  15. <div class="mask" />
  16. <img
  17. class="handwritting"
  18. src="@/assets/images/handwriting.png"
  19. alt=""
  20. draggable="false"
  21. >
  22. <div class="bottom-wrap">
  23. <div class="text-wrap">
  24. <h3>明朱元璋行书手谕卷</h3>
  25. <div class="desc">
  26. 元末明初 纸本<br>
  27. 纵 35.9 厘米,横 58.7 厘米<br>
  28. 无锡博物院藏
  29. </div>
  30. </div>
  31. <div class="qr-code">
  32. <img
  33. class="qr-code"
  34. src="@/assets/images/qr-code.png"
  35. alt=""
  36. draggable="false"
  37. >
  38. <span>扫码体验小程序</span>
  39. </div>
  40. </div>
  41. </div>
  42. </template>
  43. <script setup>
  44. import { ref, computed, watch, onMounted } from "vue"
  45. import { useRoute, useRouter } from "vue-router"
  46. import { useStore } from "vuex"
  47. const route = useRoute()
  48. const router = useRouter()
  49. const store = useStore()
  50. const isShowVideo = ref(true)
  51. </script>
  52. <style lang="less" scoped>
  53. .epilogue-view{
  54. position: absolute;
  55. left: 0;
  56. top: 0;
  57. width: 100%;
  58. height: 100%;
  59. background-image: url(@/assets/images/epilogue-bg.jpg);
  60. background-size: cover;
  61. background-repeat: no-repeat;
  62. background-position: center center;
  63. display: flex;
  64. flex-direction: column;
  65. justify-content: center;
  66. align-items: center;
  67. >video.epilogue-video{
  68. position: absolute;
  69. left: 0;
  70. top: 0;
  71. width: 100%;
  72. height: 100%;
  73. background-color: black;
  74. z-index: 3;
  75. }
  76. >.mask{
  77. position: absolute;
  78. bottom: 0;
  79. width: 100%;
  80. top: 48%;
  81. background-color: rgba(0, 0, 0, 0.7);
  82. border-radius: 30px 30px 0 0;
  83. }
  84. >img.handwritting{
  85. width: 744px;
  86. height: 462px;
  87. margin-bottom: 22px;
  88. position: relative;
  89. z-index: 1;
  90. }
  91. >.bottom-wrap{
  92. width: 744px;
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. position: relative;
  97. z-index: 1;
  98. >.text-wrap{
  99. >h3{
  100. font-size: 30px;
  101. font-family: Source Han Serif CN, Source Han Serif CN;
  102. font-weight: 800;
  103. color: #AC9468;
  104. line-height: 35px;
  105. letter-spacing: 3px;
  106. margin-bottom: 17px;
  107. }
  108. >.desc{
  109. font-size: 20px;
  110. font-family: Source Han Sans CN, Source Han Sans CN;
  111. font-weight: 400;
  112. color: #FFFFFF;
  113. line-height: 23px;
  114. letter-spacing: 2px;
  115. }
  116. }
  117. >.qr-code{
  118. display: flex;
  119. flex-direction: column;
  120. align-items: center;
  121. >img.qr-code{
  122. width: 125px;
  123. height: 125px;
  124. margin-bottom: 10px;
  125. }
  126. >span{
  127. font-size: 14px;
  128. font-family: Source Han Sans CN, Source Han Sans CN;
  129. font-weight: 400;
  130. color: #FFFFFF;
  131. line-height: 16px;
  132. letter-spacing: 1px;
  133. }
  134. }
  135. }
  136. }
  137. </style>