header.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <!-- 头部组件 -->
  3. <div class="header flex-row-center">
  4. <div class="header-bos flex-row-between">
  5. <div class="positioning flex-row-start">
  6. <img src="@/assets/images/layout/layout1.png" alt="" />
  7. <div>武汉</div>
  8. </div>
  9. <div class="header-box flex-row-start">
  10. <div class="header-text">您好,请登录</div>
  11. <div class="header-text hig">免费注册</div>
  12. <div class="header-text">我的订单</div>
  13. <div class="header-text">会员中心</div>
  14. <div class="header-text">人才招聘</div>
  15. <div class="header-text">帮助中心</div>
  16. <div class="header-text end">在线客服</div>
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script setup lang="ts"></script>
  22. <style lang="scss" scoped>
  23. .header {
  24. width: 100%;
  25. height: 40px;
  26. background-color: #efefef;
  27. .header-bos {
  28. width: 1200px;
  29. height: 100%;
  30. .positioning {
  31. font-weight: 400;
  32. font-size: 14px;
  33. color: #322b2b;
  34. img {
  35. height: 20px;
  36. width: 20px;
  37. margin-right: 10px;
  38. }
  39. }
  40. .header-box {
  41. font-weight: 400;
  42. font-size: 14px;
  43. color: #101828;
  44. .header-text {
  45. padding-right: 14px;
  46. margin-right: 14px;
  47. position: relative;
  48. &::after {
  49. content: '';
  50. position: absolute;
  51. width: 1px;
  52. height: 12px;
  53. background-color: #b7b7b7;
  54. right: 0;
  55. top: 4px;
  56. }
  57. &.end {
  58. padding-right: 0;
  59. margin-right: 0;
  60. &::after {
  61. display: none;
  62. }
  63. }
  64. &.hig {
  65. color: #e7000b;
  66. }
  67. }
  68. }
  69. }
  70. }
  71. </style>