Nav.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <img class="new-animate" src="/images/all/banner-cuxiao03.png" alt="">
  31. </nuxt-link>
  32. </div>
  33. </nav>
  34. </template>
  35. <script>
  36. export default {
  37. name: 'nav'
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. @import '~assets/scss/variables';
  42. $nav-height: 40px;
  43. .nav-list a span{
  44. font-size: 14px;
  45. }
  46. .nav-list {
  47. background-color: rgb(244, 248, 255);
  48. height: $nav-height;
  49. .item {
  50. display: inline-block;
  51. height: $nav-height;
  52. line-height: $nav-height;
  53. margin: 0 15px;
  54. color: $black-light;
  55. > span {
  56. padding: 5px 2px;
  57. }
  58. &.nuxt-link-active, &:hover {
  59. > span {
  60. color: #5078cb;
  61. border-bottom: #5078cb 3px solid;
  62. font-weight: bold;
  63. }
  64. }
  65. &.item-first {
  66. width: 200px;
  67. margin: 0;
  68. background-color: rgb(33, 71, 151);
  69. font-size: 14px;
  70. font-weight: bold;
  71. text-align: center;
  72. color: #fff;
  73. cursor: pointer;
  74. }
  75. }
  76. }
  77. </style>