Nav.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <nav class="nav-list">
  3. <div class="container">
  4. <nuxt-link to="/product/kind/home" class="item item-first">
  5. <div>器件选型</div>
  6. </nuxt-link>
  7. <nuxt-link :to="'/'" class="item" exact>
  8. <span>首&nbsp;&nbsp;页</span>
  9. </nuxt-link>
  10. <nuxt-link to="/product/brand/brandList/ABC" class="item">
  11. <span>品牌中心</span>
  12. </nuxt-link>
  13. <nuxt-link to="/provider/factories" class="item">
  14. <span>原厂专区</span>
  15. </nuxt-link>
  16. <nuxt-link to="/provider/home" class="item">
  17. <span>代理经销</span>
  18. </nuxt-link>
  19. <!-- <nuxt-link to="/product/original" class="item">
  20. <span>热卖推荐</span>
  21. </nuxt-link>-->
  22. <nuxt-link target="_blank" :to="{ name: 'store-uuid', params: { uuid: '33069557578d44e69bd91ad12d28a8d4' } }" class="item">
  23. <span>库存寄售</span>
  24. </nuxt-link>
  25. <nuxt-link to="/news" class="item">
  26. <span>优软快讯</span>
  27. </nuxt-link>
  28. <nuxt-link to="/applyPurchase" class="item">
  29. <span>求购询价</span>
  30. </nuxt-link>
  31. </div>
  32. </nav>
  33. </template>
  34. <script>
  35. export default {
  36. name: 'nav'
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. @import '~assets/scss/variables';
  41. $nav-height: 40px;
  42. .nav-list a span{
  43. font-size: 14px;
  44. }
  45. .nav-list {
  46. background-color: rgb(244, 248, 255);
  47. height: $nav-height;
  48. .item {
  49. display: inline-block;
  50. height: $nav-height;
  51. line-height: $nav-height;
  52. margin: 0 15px;
  53. color: $black-light;
  54. > span {
  55. padding: 5px 2px;
  56. }
  57. &.nuxt-link-active, &:hover {
  58. > span {
  59. color: #5078cb;
  60. border-bottom: #5078cb 3px solid;
  61. font-weight: bold;
  62. }
  63. }
  64. &.item-first {
  65. width: 200px;
  66. margin: 0;
  67. background-color: rgb(33, 71, 151);
  68. font-size: 14px;
  69. font-weight: bold;
  70. text-align: center;
  71. color: #fff;
  72. cursor: pointer;
  73. }
  74. }
  75. }
  76. </style>