新版梦工厂手机端官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="company_container">
  3. <SubNavigation title="公司简介" />
  4. <AboutUs :theme="true" />
  5. <div class="video_wrap">
  6. <div class="video_container">
  7. <video
  8. @click="stopVideo"
  9. ref="video"
  10. :controls="!maskShow"
  11. style="width: 100%; height: 100%; object-fit: fill"
  12. controlslist="nodownload"
  13. :loop="true"
  14. >
  15. <source :src="Movie" />
  16. </video>
  17. <div class="mask" @click="playVideo" v-if="maskShow">
  18. <div class="btn"></div>
  19. </div>
  20. </div>
  21. </div>
  22. <DesignConcept :theme="true" />
  23. <Cooperation :theme="true" />
  24. <QRCode :theme="true" />
  25. </div>
  26. </template>
  27. <script setup>
  28. import { ref } from 'vue'
  29. import AboutUs from 'cpns/AboutUs'
  30. import Movie from '@/static/video/a.mp4'
  31. import DesignConcept from 'cpns/DesignConcept'
  32. import Cooperation from 'cpns/Cooperation'
  33. import QRCode from 'cpns/QRCode'
  34. import SubNavigation from 'cpns/SubNavigation'
  35. import A1 from '@/static/img/about/01.png'
  36. import A2 from '@/static/img/about/02.png'
  37. import A3 from '@/static/img/about/03.png'
  38. import A4 from '@/static/img/about/04.png'
  39. import Post from '@/static/img/about/video.png'
  40. import Play from '@/static/img/about/videos.png'
  41. const video = ref(null)
  42. const maskShow = ref(true)
  43. const playVideo = () => {
  44. video?.value.play()
  45. maskShow.value = false
  46. }
  47. const stopVideo = () => {
  48. video?.value.pause()
  49. maskShow.value = true
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .company_container {
  54. padding-top: $sub-header-height;
  55. background: #fff;
  56. .video_wrap {
  57. padding: 29px 7px 0 7px;
  58. .video_container {
  59. position: relative;
  60. border-radius: 3px;
  61. overflow: hidden;
  62. .mask {
  63. position: absolute;
  64. left: 0;
  65. top: 0;
  66. width: 100%;
  67. height: 100%;
  68. background: rgba(11, 17, 62, 0.39);
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. .btn {
  73. width: 31px;
  74. height: 31px;
  75. background: #fff;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. </style>