做专业的水下设备制造商 旁站
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.

40 lines
1.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
2 years ago
2 years ago
  1. <template>
  2. <div class="main_container">
  3. <Header :noFirst="isDetail" />
  4. <HomeSceen
  5. :titleCommon="mainInfo.titleCommon"
  6. :titleColor="mainInfo.titleColor"
  7. />
  8. <AboutUs :aboutInfo="mainInfo.aboutUs" :fourCard="mainInfo.fourCard" />
  9. <Product :headInfo="mainInfo.product" />
  10. <Contact />
  11. <Bottom />
  12. </div>
  13. </template>
  14. <script setup>
  15. import HomeSceen from '@/components/HomeScreen'
  16. import AboutUs from '@/components/AboutUs'
  17. import Product from '@/components/Product'
  18. import Header from '@/components/Header'
  19. import Contact from '@/components/Contact'
  20. import Bottom from '@/components/Bottom'
  21. import { mainInfo } from '@/mock'
  22. import { onMounted, ref } from 'vue'
  23. const isDetail = ref(false)
  24. onMounted(() => {
  25. window.addEventListener('scroll', () => {
  26. const scrollTop =
  27. document.documentElement.scrollTop || document.body.scrollTop
  28. const height = window.innerHeight
  29. if (scrollTop < height) {
  30. isDetail.value = false
  31. } else {
  32. isDetail.value = true
  33. }
  34. })
  35. })
  36. </script>
  37. <style scoped lang="scss"></style>