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.

70 lines
2.2 KiB

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="metal_plate_container" id="metal_plate_container">
  3. <Header />
  4. <HomeScreen />
  5. <div class="main_content_wrap">
  6. <ThreeCard />
  7. <HeaderLine title="CNC机加工能力" id="cnc" />
  8. <CncProcess />
  9. <HeaderLine title="质量检测设备" />
  10. <CheckEquipment />
  11. <HeaderLine title="CNC样件" />
  12. <CncSample />
  13. <HeaderLine title="手板加工能力" id="hand" />
  14. <HandPlate />
  15. <HeaderLine title="钣金加工能力" id="metal" />
  16. <MetalPlateProcess />
  17. <HeaderLine title="工厂环境" />
  18. <FactoryEnvironment />
  19. <HeaderLine title="合作客户" />
  20. <Partner />
  21. <HeaderLine title="不止于此" />
  22. <LinkCard />
  23. </div>
  24. <NewBottomMetal />
  25. </div>
  26. </template>
  27. <script setup>
  28. import { onMounted } from 'vue'
  29. import NewBottomMetal from 'cpns/MetalPlate/Bottom/NewBottomMetal'
  30. import HomeScreen from 'cpns/MetalPlate/HomeScreen'
  31. import Header from 'cpns/MetalPlate/Header'
  32. import ThreeCard from 'cpns/MetalPlate/ThreeCard'
  33. import HeaderLine from 'cpns/design/HeaderLine'
  34. import Partner from 'cpns/MetalPlate/Partner'
  35. import FactoryEnvironment from 'cpns/MetalPlate/FactoryEnvironment'
  36. import CncProcess from 'cpns/MetalPlate/CncProcess'
  37. import CheckEquipment from 'cpns/MetalPlate/CheckEquipment'
  38. import CncSample from 'cpns/MetalPlate/CncSample'
  39. import HandPlate from 'cpns/MetalPlate/HandPlate'
  40. import MetalPlateProcess from 'cpns/MetalPlate/MetalPlateProcess'
  41. import LinkCard from 'cpns/MetalPlate/LinkCard'
  42. onMounted(() => {
  43. if (location.href.indexOf('#sheet-metal') != -1) {
  44. const element = document.getElementById('metal')
  45. element.scrollIntoView() // 将元素滚动到可见区域
  46. }
  47. if (location.href.indexOf('#cnc') != -1) {
  48. const element = document.getElementById('cnc')
  49. element.scrollIntoView() // 将元素滚动到可见区域
  50. }
  51. if (location.href.indexOf('#hand-board') != -1) {
  52. const element = document.getElementById('hand')
  53. element.scrollIntoView() // 将元素滚动到可见区域
  54. }
  55. })
  56. </script>
  57. <style lang="scss" scoped>
  58. .metal_plate_container {
  59. box-sizing: border-box;
  60. background: #f5f7fd;
  61. .main_content_wrap {
  62. padding: 0 245px;
  63. padding-bottom: 143px;
  64. padding-top: 28px;
  65. }
  66. }
  67. </style>