2.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div :class="'innerLeft' + skinId">
  3. <ul>
  4. <li class="listNewsTitle" v-if="skinId==1">
  5. 导航列表
  6. </li>
  7. <li class="listNewsTitle_skin2" v-if="skinId==2">
  8. 导航列表
  9. </li>
  10. <li v-for="(item, index) in bottomMenu" :key="index">
  11. <NuxtLink v-if="item.type == 0" :to="`/about/${item.name_pinyin}/index.html`" :title="item.name" :class="item.id == pageId ? 'active color'+skinId : ''">
  12. {{ item.name }}
  13. </NuxtLink>
  14. <NuxtLink v-else-if="item.type == 1" :to="`/about/${item.name_pinyin}/list-1.html`" :title="item.name" :class="item.id == pageId ? 'active color'+skinId : ''">
  15. {{ item.name}}
  16. </NuxtLink>
  17. </li>
  18. </ul>
  19. </div>
  20. </template>
  21. <script setup>
  22. const props = defineProps({
  23. skinId: Number,//皮肤id
  24. bottomMenu: Array,//底部菜单
  25. pageId: Number,//页面id
  26. });
  27. </script>
  28. <style lang="less" scoped>
  29. //样式1
  30. .listNewsTitle {
  31. color: #fff;
  32. width: 144px;
  33. height: 60px;
  34. line-height: 60px;
  35. text-align: center;
  36. background: #004564;
  37. }
  38. .color1 {
  39. background: #004564;
  40. color: #fff;
  41. }
  42. //样式2
  43. .listNewsTitle_skin2 {
  44. background: #A91B33;
  45. color: #fff;
  46. width: 144px;
  47. height: 60px;
  48. line-height: 60px;
  49. text-align: center;
  50. }
  51. .color2 {
  52. background: #A91B33;
  53. color: #fff;
  54. }
  55. //左侧菜单样式
  56. .innerLeft1 {
  57. width: 144px;
  58. position: absolute;
  59. top: 15px;
  60. left: -165px;
  61. .rightMenuTitle {
  62. width: 144px;
  63. height: 69px;
  64. font-size: 22px;
  65. font-weight: bold;
  66. line-height: 58px;
  67. text-align: center;
  68. color: #fff;
  69. margin-bottom: 30px;
  70. }
  71. ul {
  72. background-color: #F9FAFB;
  73. li {
  74. border-bottom:1px solid #fff;
  75. a {
  76. display: inline-block;
  77. width: 144px;
  78. height: 60px;
  79. line-height: 60px;
  80. text-align: center;
  81. border-top: 1px #fff solid;
  82. font-family: Microsoft YaHei, Microsoft YaHei;
  83. font-weight: 400;
  84. font-size: 16px;
  85. color:#333;
  86. &.active {
  87. color: #fff;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. </style>