| | |
| | | </div> |
| | | <div class="wrapper-content"> |
| | | <div class="left-container wrapper"> |
| | | <screen-face class="animate-enter-x enter-left"></screen-face> |
| | | <screen-car class="animate-enter-x enter-left animate-delay-1"></screen-car> |
| | | <screen-video class="animate-enter-x enter-left animate-delay-2"></screen-video> |
| | | <screen-face class="enter-left" :class="{ 'animate-enter-x': isEnd }"></screen-face> |
| | | <screen-car class="enter-left animate-delay-1" :class="{ 'animate-enter-x': isEnd }"></screen-car> |
| | | <screen-video class="enter-left animate-delay-2" :class="{ 'animate-enter-x': isEnd }"></screen-video> |
| | | </div> |
| | | <div class="center-container center-wrapper"> |
| | | <screen-map></screen-map> |
| | | <screen-table class="animate-enter-y enter-top"></screen-table> |
| | | <screen-table class="enter-top" :class="{ 'animate-enter-y': isEnd }"></screen-table> |
| | | <!-- <screen-detection></screen-detection> --> |
| | | |
| | | </div> |
| | | <div class="right-container wrapper"> |
| | | <screen-examine class="animate-enter-x enter-right"></screen-examine> |
| | | <screen-examine class="enter-right" :class="{ 'animate-enter-x': isEnd }"></screen-examine> |
| | | <screen-data class="enter-right animate-delay-1" :class="{ 'animate-enter-x': isEnd }"></screen-data> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import ScreenCar from '../screen-car/index'; |
| | | import ScreenMap from '../screen-map/index'; |
| | | import ScreenTable from '../screen-table/index'; |
| | | import ScreenData from '../screen-data/index'; |
| | | export default { |
| | | name: 'ScreenWrapper', |
| | | components: { |
| | |
| | | ScreenTable, |
| | | ScreenFace, |
| | | ScreenVideo, |
| | | ScreenCar |
| | | ScreenCar, |
| | | ScreenData |
| | | }, |
| | | data() { |
| | | return { |
| | | isEnd: false |
| | | } |
| | | }, |
| | | methods: { |
| | | returnPath() { |
| | | this.$router.push('/index'); |
| | | }, |
| | | checkAnimationEnd(event) { |
| | | if (this.isEnd) return; |
| | | if (event.propertyName === 'transform') { |
| | | this.isEnd = true; |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | const container = document.querySelector('.screen-wrapper'); |
| | | container.addEventListener('transitionend', this.checkAnimationEnd); |
| | | }, |
| | | destroyed() { |
| | | const container = document.querySelector('.screen-wrapper'); |
| | | container.removeEventListener('transitionend', this.checkAnimationEnd); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | } |
| | | |
| | | .wrapper { |
| | | width: 23%; |
| | | width: 25%; |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 10px; |
| | |
| | | } |
| | | |
| | | .center-wrapper { |
| | | width: 54%; |
| | | width: 50%; |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 10px; |