1.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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: #004564;
  32. width: 144px;
  33. height: 60px;
  34. line-height: 60px;
  35. text-align: center;
  36. }
  37. .color1 {
  38. background: #004564;
  39. color: #fff;
  40. }
  41. //样式2
  42. .listNewsTitle_skin2 {
  43. background: #A91B33;
  44. color: #fff;
  45. width: 144px;
  46. height: 60px;
  47. line-height: 60px;
  48. text-align: center;
  49. }
  50. .color2 {
  51. background: #A91B33;
  52. color: #fff;
  53. }
  54. //左侧菜单样式
  55. .innerLeft1 {
  56. width: 144px;
  57. position: absolute;
  58. top: 15px;
  59. left: -165px;
  60. .rightMenuTitle {
  61. width: 144px;
  62. height: 69px;
  63. font-size: 22px;
  64. font-weight: bold;
  65. line-height: 58px;
  66. text-align: center;
  67. color: #fff;
  68. margin-bottom: 30px;
  69. }
  70. ul {
  71. li {
  72. background-color: #F9FAFB;
  73. border-bottom:1px solid #fff;
  74. a {
  75. display: inline-block;
  76. width: 144px;
  77. height: 60px;
  78. line-height: 60px;
  79. text-align: center;
  80. border-top: 1px #fff solid;
  81. font-family: Microsoft YaHei, Microsoft YaHei;
  82. font-weight: 400;
  83. font-size: 16px;
  84. color:#333;
  85. &.active {
  86. color: #fff;
  87. }
  88. }
  89. }
  90. }
  91. }
  92. </style>