Kinds.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. <div class="fr">
  9. <img src="https://dfs.ubtob.com/group1/M00/19/BF/CgpkyFlSBPOAQSaeAAGHE8mW2UI141.jpg" alt="">
  10. <p class="shop-title">深圳市英唐致盈供应链管理有限公司</p>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. computed: {
  17. kinds () {
  18. return this.$store.state.pcb.kindsData.kinds.data
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="scss" scoped>
  24. $height: 300px;
  25. .pcb-kinds {
  26. width: 1184px;
  27. margin: 1px auto 0;
  28. .pk-list {
  29. width: 230px;
  30. height: $height;
  31. overflow-y: hidden;
  32. border-radius: 4px;
  33. border: 1px solid #376ff3;
  34. margin-right: 2px;
  35. display: inline-block;
  36. .pk-item {
  37. height: 50px;
  38. line-height: 50px;
  39. border-bottom: 1px solid rgba(153, 153, 153, .32);
  40. text-align: center;
  41. a {
  42. color: #666;
  43. }
  44. .iconfont {
  45. float: right;
  46. margin-right: 18px;
  47. }
  48. }
  49. }
  50. .fr {
  51. position: relative;
  52. img {
  53. width: 952px;
  54. height: $height;
  55. border-radius: 4px;
  56. }
  57. .shop-title {
  58. position: absolute;
  59. top: 50px;
  60. left: 60px;
  61. font-size: 30px;
  62. color: #fff;
  63. }
  64. }
  65. }
  66. </style>