hjyd的手机端
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.

120 lines
2.8 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
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
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="top_container">
  3. <img class="logo" :src="Logo" alt="" />
  4. <img class="fold_icon" :src="Icon" alt="" @click="openDrawer" />
  5. <div class="modal_drawer" v-if="drawer">
  6. <img :src="Close" class="close" alt="" @click="drawer = false" />
  7. <div class="content">
  8. <div class="icon_wrap">
  9. <p class="icon"></p>
  10. </div>
  11. <div class="btn_wrap">
  12. <div class="btn" @click="toPage('/company')">公司简介</div>
  13. <div class="btn" @click="toPage('/case-show')">案例展示</div>
  14. <div class="btn" @click="toPage('/contact')">联系我们</div>
  15. <div class="btn" @click="toPage('/recruit')">招贤纳士</div>
  16. <div class="btn" @click="toPage('/hardware-case')">软硬件研发</div>
  17. <div class="btn" @click="toPage('/product')">产品研发</div>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </template>
  23. <script setup>
  24. import { ref } from 'vue'
  25. import Close from '@/static/img/banner/x.png'
  26. import Logo from '@/static/img/banner/logo.png'
  27. import Icon from '@/static/img/banner/liebiao.png'
  28. import { useRouter } from 'vue-router'
  29. const router = useRouter()
  30. const drawer = ref(false)
  31. const openDrawer = () => {
  32. drawer.value = true
  33. }
  34. const toPage = path => {
  35. router.push(path)
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .top_container {
  40. padding: 14px 18px;
  41. width: 100vw;
  42. overflow: hidden;
  43. display: flex;
  44. align-items: center;
  45. justify-content: space-between;
  46. position: fixed;
  47. top: 0;
  48. right: 0;
  49. width: 100%;
  50. box-sizing: border-box;
  51. .logo {
  52. width: 85px;
  53. height: 17px;
  54. }
  55. .fold_icon {
  56. width: 18px;
  57. height: 12px;
  58. }
  59. .modal_drawer {
  60. position: fixed;
  61. top: 0;
  62. left: 0;
  63. right: 0;
  64. bottom: 0;
  65. z-index: 999;
  66. background: rgba(0, 0, 0, 0.67);
  67. .close {
  68. position: absolute;
  69. right: 20px;
  70. width: 13px;
  71. height: 13px;
  72. top: 17px;
  73. }
  74. .content {
  75. position: absolute;
  76. left: 0;
  77. right: 0;
  78. bottom: 0;
  79. height: 348px;
  80. background: #fff;
  81. border-top-right-radius: 20px;
  82. border-top-left-radius: 20px;
  83. display: flex;
  84. flex-direction: column;
  85. .icon_wrap {
  86. display: flex;
  87. align-items: center;
  88. justify-content: center;
  89. padding: 12px 0 0 0;
  90. .icon {
  91. width: 24px;
  92. height: 2px;
  93. border-radius: 1px;
  94. background: #000;
  95. }
  96. }
  97. .btn_wrap {
  98. flex: 1;
  99. display: flex;
  100. flex-direction: column;
  101. align-items: center;
  102. justify-content: space-evenly;
  103. .btn {
  104. font-size: 13px;
  105. font-family: Alibaba PuHuiTi;
  106. font-weight: 400;
  107. color: #000000;
  108. flex: 1;
  109. display: flex;
  110. align-items: center;
  111. justify-content: center;
  112. }
  113. }
  114. }
  115. }
  116. }
  117. </style>