goodList.vue 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div class="detail-brand" >
  3. <div v-for="(item, index) in productList.components" v-if="productList.components">
  4. <div class="brand-item">
  5. <p>型号:<span>{{item.code}}</span></p>
  6. <p>品牌:<span>{{item.brand.nameCn}}</span></p>
  7. <p>产品描述:<span>{{item.kind.nameCn}}</span></p>
  8. <i></i>
  9. </div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: 'MobileGoodList',
  16. computed: {
  17. productList () {
  18. return this.$store.state.searchData.searchList.lists.data
  19. }
  20. }
  21. }
  22. </script>
  23. <style scoped lang="scss">
  24. .detail-brand div{
  25. background: #f8fcff;
  26. width:100%;
  27. min-height:1.5rem;
  28. padding-top:.2rem;
  29. .brand-item{
  30. width:7rem;
  31. margin:0 auto;
  32. border-radius:.1rem;
  33. background: #fff;
  34. padding:.2rem;
  35. p{
  36. font-size:.28rem;
  37. line-height:.4rem;
  38. color:#333;
  39. margin:0;
  40. span{}
  41. }
  42. i{}
  43. }
  44. }
  45. </style>