1.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <!--样式1-->
  3. <div class="floatMenuBox" v-if="componentStyle == 1">
  4. <div v-for="(item, index) in bottomMenu" :key="index">
  5. <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
  6. {{ item.name }}
  7. </NuxtLink>
  8. <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
  9. {{ item.name }}
  10. </NuxtLink>
  11. </div>
  12. </div>
  13. <!--样式2-->
  14. <div class="floatMenuStyle2" v-if="componentStyle == 2">
  15. <div v-for="(item, index) in bottomMenu" :key="index">
  16. <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
  17. {{ item.name }}
  18. </NuxtLink>
  19. <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
  20. {{ item.name }}
  21. </NuxtLink>
  22. </div>
  23. </div>
  24. <!--样式3-->
  25. <div class="floatMenuStyle3" v-if="componentStyle == 3">
  26. <div v-for="(item, index) in bottomMenu" :key="index">
  27. <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
  28. {{ item.name }}
  29. </NuxtLink>
  30. <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
  31. {{ item.name }}
  32. </NuxtLink>
  33. </div>
  34. </div>
  35. <!--样式4-->
  36. <div class="floatMenuStyle4" v-if="componentStyle == 4">
  37. <div class="title">导航列表</div>
  38. <div v-for="(item, index) in bottomMenu" :key="index">
  39. <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name">
  40. {{ item.name }}
  41. </NuxtLink>
  42. <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name">
  43. {{ item.name }}
  44. </NuxtLink>
  45. </div>
  46. </div>
  47. </template>
  48. <script setup>
  49. const props = defineProps({
  50. componentStyle: Number,//样式编号
  51. bottomMenu: Array,//底部菜单
  52. pageId: Number,//页面id
  53. });
  54. </script>
  55. <style lang="less" scoped>
  56. //基本样式 start ---------------------------------------->
  57. .floatMenuBox {
  58. height: 54px;
  59. line-height: 54px;
  60. display: flex;
  61. justify-content: center;
  62. background-color: #065395;
  63. div {
  64. width: 160px;
  65. height: 54px;
  66. line-height: 54px;
  67. text-align: center;
  68. color: #fff;
  69. font-size: 16px;
  70. font-weight: bold;
  71. background: url(http://192.168.1.234:19000/pre/image/png/20251217/1765957741369605.png) no-repeat right center;
  72. &:last-child {
  73. background: none;
  74. }
  75. a {
  76. color: #fff;
  77. }
  78. }
  79. }
  80. //基本样式 end ---------------------------------------->
  81. //样式2 start ---------------------------------------->
  82. .floatMenuStyle2 {
  83. height: 54px;
  84. line-height: 54px;
  85. display: flex;
  86. justify-content: center;
  87. background-color: #333333;
  88. div {
  89. width: 160px;
  90. height: 54px;
  91. line-height: 54px;
  92. text-align: center;
  93. color: #fff;
  94. font-size: 16px;
  95. font-weight: bold;
  96. background: url(http://192.168.1.234:19000/pre/image/png/20251217/176595806140757.png) no-repeat right center;
  97. &:last-child {
  98. background: none;
  99. }
  100. a {
  101. color: #fff;
  102. }
  103. }
  104. }
  105. //样式2 end ---------------------------------------->
  106. //样式3
  107. .floatMenuStyle3 {
  108. height: 54px;
  109. line-height: 54px;
  110. display: flex;
  111. justify-content: center;
  112. background-color: #fff;
  113. border-bottom: 2px solid #ededed;
  114. div {
  115. width: 160px;
  116. height: 54px;
  117. line-height: 54px;
  118. text-align: center;
  119. color: #333;
  120. font-size: 16px;
  121. font-weight: bold;
  122. background: url(http://192.168.1.234:19000/pre/image/png/20251217/1765958072692873.png) no-repeat right center;
  123. &:last-child {
  124. background: none;
  125. }
  126. a {
  127. color: #333;
  128. }
  129. }
  130. }
  131. //样式4
  132. .floatMenuStyle4 {
  133. height: 54px;
  134. line-height: 54px;
  135. display: flex;
  136. justify-content: center;
  137. background-color: #fff;
  138. border: 1px solid #ededed;
  139. div {
  140. width: 160px;
  141. height: 54px;
  142. line-height: 54px;
  143. text-align: center;
  144. color: #333;
  145. font-size: 16px;
  146. font-weight: bold;
  147. background: url(http://192.168.1.234:19000/pre/image/png/20251217/17659580809026.png) no-repeat right center;
  148. &:last-child {
  149. background: none;
  150. }
  151. a {
  152. color: #333;
  153. }
  154. }
  155. }
  156. </style>