新版梦工厂手机端官网
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.

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