智莺站长PC端官网代码, vite-vue
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.
 
 
 

141 lines
2.3 KiB

  1. <template>
  2. <div class="head-view">
  3. <div class="head-left">
  4. <div class="logo-box">
  5. <img :src="mod.applyLogo" style="width: 100%; height: 100%" alt="" />
  6. </div>
  7. <div class="for-item" v-for="(item, index) in mod.listStyle" :key="index">
  8. <a :href="item.url" :style="colorHover(item)" target="_blank">{{
  9. item.name
  10. }}</a>
  11. </div>
  12. </div>
  13. <!--
  14. <div class="head-right">
  15. <div class="myTou-box">
  16. <img
  17. src="../assets/png/touxiang.png "
  18. style="width: 100%; height: 100%"
  19. alt=""
  20. />
  21. </div>
  22. <div class="for-item">未登录</div>
  23. </div> -->
  24. </div>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. mod: {
  30. type: Object,
  31. default: () => {},
  32. },
  33. },
  34. computed: {
  35. colorHover() {
  36. return function (data) {
  37. return {
  38. "--text-color": data.unSelectColor,
  39. "--text-color-hover": data.selectColor,
  40. };
  41. };
  42. },
  43. },
  44. data() {
  45. return {
  46. headList: [
  47. {
  48. name: "智莺",
  49. id: 1,
  50. },
  51. {
  52. name: "方案解决",
  53. id: 2,
  54. },
  55. {
  56. name: "功能特色",
  57. id: 3,
  58. },
  59. {
  60. name: " 智莺联盟",
  61. id: 4,
  62. },
  63. ],
  64. };
  65. },
  66. };
  67. </script>
  68. <style scoped>
  69. .head-view {
  70. height: 76px;
  71. display: flex;
  72. align-items: center;
  73. padding: 18px 0;
  74. position: absolute;
  75. width: 1200px;
  76. margin: 0 auto;
  77. left: 0;
  78. z-index: 99;
  79. box-sizing: border-box;
  80. right: 0;
  81. }
  82. .head-left {
  83. margin-right: auto;
  84. display: flex;
  85. align-items: center;
  86. font-weight: 500;
  87. }
  88. .head-right {
  89. display: flex;
  90. align-items: center;
  91. font-weight: 500;
  92. cursor: pointer;
  93. }
  94. .logo-box {
  95. width: 40px;
  96. height: 40px;
  97. border-radius: 50%;
  98. margin-right: 30px;
  99. cursor: pointer;
  100. overflow: hidden;
  101. }
  102. .myTou-box {
  103. width: 36px;
  104. height: 36px;
  105. border-radius: 50%;
  106. margin-right: 12px;
  107. }
  108. .for-item {
  109. font-size: 18px;
  110. margin-right: 40px;
  111. cursor: pointer;
  112. }
  113. .for-item:last-child {
  114. margin-right: 0;
  115. }
  116. a {
  117. color: var(--text-color);
  118. text-decoration: none;
  119. }
  120. a:hover {
  121. color: var(--text-color-hover);
  122. }
  123. @media screen and (max-width: 1500px) {
  124. .head-view {
  125. padding: 18px 60px;
  126. }
  127. }
  128. </style>