Kinds.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <div class="pcb-kinds">
  3. <ul class="pk-list">
  4. <li class="pk-item" v-for="kind in kinds">
  5. <nuxt-link :to="`/pcb/search/?w=${encodeURIComponent(kind.nameCn)}`">{{kind.nameCn}}<i class="icon-arrow-right iconfont"></i></nuxt-link>
  6. </li>
  7. </ul>
  8. <img class="fr" src="/images/pcb/banner.png" alt="">
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. computed: {
  14. kinds () {
  15. return this.$store.state.pcb.kindsData.kinds.data
  16. }
  17. }
  18. }
  19. </script>
  20. <style lang="scss" scoped>
  21. $height: 300px;
  22. .pcb-kinds {
  23. width: 1184px;
  24. margin: 1px auto 0;
  25. .pk-list {
  26. width: 230px;
  27. height: $height;
  28. overflow-y: hidden;
  29. border-radius: 4px;
  30. border: 1px solid #376ff3;
  31. margin-right: 2px;
  32. display: inline-block;
  33. .pk-item {
  34. height: 50px;
  35. line-height: 50px;
  36. border-bottom: 1px solid rgba(153, 153, 153, .32);
  37. text-align: center;
  38. a {
  39. color: #666;
  40. }
  41. .iconfont {
  42. float: right;
  43. margin-right: 18px;
  44. }
  45. }
  46. }
  47. .fr {
  48. width: 952px;
  49. height: $height;
  50. border-radius: 4px;
  51. }
  52. }
  53. </style>