index.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <template>
  2. <div class="home-layout">
  3. <div class="banner">
  4. <h1 v-html="$t('conduct.coreTech.bannerTitle')"></h1>
  5. <h4 v-html="$t('conduct.coreTech.bannerSubTitle')"></h4>
  6. </div>
  7. <div class="plate1" id="plate1">
  8. <h1 class="common-title">{{ $t('conduct.coreTech.itemTitle1') }}</h1>
  9. <p class="desc">{{ $t('conduct.coreTech.itemText1') }}</p>
  10. <div class="video">
  11. <video autoplay controls :src="`${$cdn}video/location-video.mp4?t=2`" :poster="`${$cdn}video/location-video.mp4?x-oss-process=video/snapshot,t_21000,f_jpg,m_fast`"></video>
  12. </div>
  13. </div>
  14. <div class="plate2" id="plate2">
  15. <h1 class="common-title">{{ $t('conduct.coreTech.itemTitle2') }}</h1>
  16. <p class="desc">{{ $t('conduct.coreTech.itemText2') }}</p>
  17. <ul>
  18. <li v-for="(item, index) in plate2List" :key="item.name" :class="{'is-active': plate2ActiveIndex === index}" @click="plate2ActiveIndex=index">
  19. {{ item.name }}
  20. </li>
  21. </ul>
  22. <iframe allowfullscreen :src="plate2List[plate2ActiveIndex].iframeLink" />
  23. </div>
  24. <div class="plate3" id="plate3">
  25. <h1 class="common-title">{{ $t('conduct.coreTech.itemTitle3') }}</h1>
  26. <p class="desc">{{ $t('conduct.coreTech.itemText3') }}</p>
  27. <ul>
  28. <li v-for="item in plate3List" :key="item.name">
  29. <div class="item-img" :style="{'background-image': `url(${item.img})`}"></div>
  30. <h4>{{ item.name }}</h4>
  31. </li>
  32. </ul>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. import {mapState} from 'vuex'
  38. import wave from '@/components/wave'
  39. export default {
  40. computed: {
  41. ...mapState({
  42. langCoreTech: state => state.language.home.coreTech,
  43. language: state => state.language.current
  44. })
  45. },
  46. components: {wave},
  47. data () {
  48. return {
  49. plate2ActiveIndex: 0,
  50. plate2List: [
  51. {
  52. name: this.$t('conduct.coreTech.item2Name1'),
  53. iframeLink: 'https://www.4dkankan.com/showProPC.html?m=nSjwSohIY'
  54. },
  55. {
  56. name: this.$t('conduct.coreTech.item2Name2'),
  57. iframeLink: 'https://www.4dkankan.com/spc.html?m=1TFy0kSQZ'
  58. },
  59. {
  60. name: this.$t('conduct.coreTech.item2Name3'),
  61. iframeLink: 'https://www.4dkankan.com/showProPC.html?m=t-0Q99SHE'
  62. }
  63. ],
  64. plate3List: [
  65. {
  66. name: this.$t('conduct.coreTech.item3Name1'),
  67. img: require('@/assets/images/refactor/location/show-1.png')
  68. },
  69. {
  70. name: this.$t('conduct.coreTech.item3Name2'),
  71. img: require('@/assets/images/refactor/location/show-2.png')
  72. },
  73. {
  74. name: this.$t('conduct.coreTech.item3Name3'),
  75. img: require('@/assets/images/refactor/location/show-3.png')
  76. }
  77. ]
  78. }
  79. },
  80. methods: {
  81. goto (url) {
  82. window.open(url, '_blank')
  83. }
  84. },
  85. mounted () {
  86. if (this.language !== 'zh') {
  87. this.plate2List = this.plate2List.map(item => {
  88. item.iframeLink = item.iframeLink + '&lang=en'
  89. return item
  90. })
  91. }
  92. },
  93. beforeDestroy () {
  94. }
  95. }
  96. </script>
  97. <style lang="scss" scoped>
  98. .banner {
  99. background: url(~@/assets/images/refactor/location/banner.png) no-repeat center center;
  100. background-size: cover;
  101. width: 100%;
  102. height: 140px;
  103. display: flex;
  104. padding-left: 25px;
  105. font-size: 22px;
  106. color: #202020;
  107. font-weight: bold;
  108. flex-direction: column;
  109. justify-content: center;
  110. h4 {
  111. font-size: 16px;
  112. margin-top: 20px;
  113. }
  114. }
  115. .desc {
  116. color: #909090;
  117. font-size: 12px;
  118. line-height: 18px;
  119. }
  120. .plate1 {
  121. padding: 26px 18px 60px;
  122. .desc {
  123. margin: 27px 0 18px;
  124. }
  125. }
  126. .plate2 {
  127. padding: 56px 20px 60px;
  128. background: #F7F7F7;
  129. .desc {
  130. margin: 27px 0 18px;
  131. }
  132. ul {
  133. display: flex;
  134. margin-bottom: 18px;
  135. li {
  136. padding-right: 19px;
  137. margin-right: 20px;
  138. font-size: 14px;
  139. line-height: 21px;
  140. color: #909090;
  141. font-weight: bold;
  142. position: relative;
  143. &.is-active {
  144. color: #202020;
  145. }
  146. &::after {
  147. content: '';
  148. display: block;
  149. width: 1px;
  150. height: 14px;
  151. background: #909090;
  152. position: absolute;
  153. top: 50%;
  154. right: 0;
  155. margin-top: -7px;
  156. }
  157. &:last-child {
  158. &::after {
  159. display: none;
  160. }
  161. }
  162. }
  163. }
  164. iframe {
  165. width: 100%;
  166. height: 500px;
  167. }
  168. }
  169. .plate3 {
  170. padding: 56px 20px 60px;
  171. .desc {
  172. margin: 27px 0 28px;
  173. }
  174. ul {
  175. display: flex;
  176. flex-wrap: wrap;
  177. text-align: center;
  178. padding: 0 0 0 30px;
  179. li {
  180. margin-bottom: 27px;
  181. }
  182. li:first-child {
  183. margin-right: 98px;
  184. }
  185. }
  186. .item-img {
  187. width: 90px;
  188. height: 90px;
  189. background-size: contain;
  190. background-repeat: no-repeat;
  191. background-position: center center;
  192. margin-bottom: 17px;
  193. }
  194. }
  195. .video {
  196. video {
  197. width: 100%;
  198. }
  199. }
  200. </style>