nav.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="nav-box d-flex align-center">
  3. <div class="d-flex align-center justify-space-between" style="width: 1200px; max-width: 1200px; height: 45px; line-height: 45px; margin: 0 auto;">
  4. <div class="d-flex align-center">
  5. <div class="cursor-pointer" style="width: 120px; height: 50px" @click="emit('click', '/headhunting')">
  6. <v-img src="https://minio.citupro.com/dev/menduner/poster.png" aspect-ratio="16/9" cover width="120" height="50"></v-img>
  7. </div>
  8. <div class="china cursor-pointer" @click="emit('click', '/headhunting')">中国</div>
  9. </div>
  10. <div class="d-flex align-center">
  11. <div v-for="(k, index) in navList" :key="index" class="list-item cursor-pointer font-size-15" :class="{'mr-5': index !== navList.length - 1}" @click="emit('click', k.path)">
  12. {{ k.title }}
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script setup>
  19. defineOptions({ name: 'headhunting-nav'})
  20. const emit = defineEmits(['click'])
  21. const navList = [
  22. { title: '我们的服务', path: '/headhunting/service' },
  23. { title: '我们的顾问', path: '' },
  24. { title: '候选人', path: '' }
  25. ]
  26. </script>
  27. <style scoped lang="scss">
  28. .nav-box {
  29. height: 100px;
  30. color: #fff;
  31. font-weight: 700;
  32. background-color: #00695C;
  33. }
  34. .china {
  35. font-family: FFScalaSansWebBold, Helvetica, Arial, sans-serif;
  36. font-style: normal;
  37. font-weight: 700;
  38. display: flex;
  39. vertical-align: middle;
  40. align-items: center;
  41. -webkit-box-align: center;
  42. margin-top: 10px;
  43. color: #fff;
  44. font-size: 24px;
  45. line-height: 24px;
  46. position: relative;
  47. top: 3px;
  48. text-decoration: none;
  49. &::before {
  50. content: '';
  51. background-color: #fff;
  52. display: inline-block;
  53. height: 45px;
  54. margin: 0 27px;
  55. width: 2px;
  56. }
  57. }
  58. .list-item:hover {
  59. opacity: .7;
  60. }
  61. </style>