detailBrand.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="detail-brand">
  3. <div class="detail-brand-content" >
  4. <h4>主营产品</h4>
  5. <div class="brand-list">
  6. <div class="list-left">
  7. <img :src="brandDetail.logoUrl || '/images/component/default.png'" :alt="brandDetail.nameEn"/>
  8. <span>{{brandDetail.nameCn}}</span>
  9. </div>
  10. <p>{{brandDetail.series}}</p>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'detailBrand',
  18. computed: {
  19. brandDetail () {
  20. return this.$store.state.searchData.searchDetail.detail.data
  21. }
  22. }
  23. }
  24. </script>
  25. <style scoped lang="scss">
  26. .detail-brand{
  27. width:100%;
  28. .detail-brand-content{
  29. margin:0 auto;
  30. border-top:.02rem solid #dedfdf;
  31. border-bottom:.02rem solid #dedfdf;
  32. width:7.1rem;
  33. height:3.02rem;
  34. padding-top:.18rem;
  35. h4{
  36. font-size:.32rem;
  37. line-height: .6rem;
  38. margin:0;
  39. margin-left:3.97rem;
  40. }
  41. .brand-list{
  42. display:flex;
  43. justify-content: space-between;
  44. align-items: center;
  45. margin:0 .15rem;
  46. .list-left{
  47. border:.02rem solid #418ef7;
  48. border-radius: .05rem;
  49. width:2.03rem;
  50. height:1.73rem;
  51. img{
  52. display:block;
  53. width:100%;
  54. height:1.25rem;
  55. }
  56. span{
  57. display: block;
  58. font-size: .24rem;
  59. color:#fff;
  60. text-align: center;
  61. width:100%;
  62. background: #418ef7;
  63. line-height: .45rem;
  64. }
  65. }
  66. p{
  67. width:4.3rem;
  68. font-size:.28rem;
  69. line-height: .4rem;
  70. padding:.12rem .46rem 0 .05rem;
  71. }
  72. }
  73. }
  74. }
  75. </style>