goodList.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="detail-brand" >
  3. <div v-for="(item, index) in productList.components" v-if="productList.components">
  4. <nuxt-link :to="'/mobile/brand/componentDetail/'+ item.uuid">
  5. <div class="brand-item">
  6. <p>型号:<span>{{item.code}}</span></p>
  7. <p>品牌:<span>{{item.brand.nameCn}}</span></p>
  8. <p>产品描述:<span>{{item.kind.nameCn}}</span></p>
  9. <i class="iconfont icon-shoucang"></i>
  10. </div>
  11. </nuxt-link>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'MobileGoodList',
  18. data () {
  19. return {
  20. isMove: ''
  21. }
  22. },
  23. computed: {
  24. productList () {
  25. return this.$store.state.searchData.searchList.lists.data
  26. }
  27. }
  28. }
  29. </script>
  30. <style scoped lang="scss">
  31. .detail-brand div{
  32. background: #f8fcff;
  33. width:100%;
  34. min-height:1.5rem;
  35. padding-top:.2rem;
  36. .brand-item{
  37. width:7rem;
  38. margin:0 auto;
  39. border-radius:.1rem;
  40. background: #fff;
  41. padding:.2rem;
  42. position:relative;
  43. p{
  44. font-size:.28rem;
  45. line-height:.4rem;
  46. color:#333;
  47. margin:0;
  48. span{}
  49. }
  50. i{
  51. display:block;
  52. position:absolute;
  53. top:.2rem;
  54. right:.1rem;
  55. font-size:.4rem;
  56. color:#ff7800;
  57. }
  58. }
  59. div.active{
  60. background: #d4d;
  61. }
  62. }
  63. </style>