DetailBrand.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <div class="brandDetail container" v-if="list_brands && list_brands.uuid">
  3. <div id="brand">
  4. <nuxt-link :to="`/product/brand/${list_brands.uuid}`" class="brand-logo">
  5. <img :src="list.logoUrl || '/images/component/default.png'" :alt="list.nameEn" :title="list.nameEn"/>
  6. </nuxt-link>
  7. <div class="brand-message">
  8. <div class="brand-main" v-show="list.series"><div>主营产品:</div><span>{{list.series}}</span></div>
  9. <div class="brand-main" v-show="applications.length>0">
  10. <div>应用领域:</div><span v-for="(item, index) in applications"><span>{{item}}</span><span v-show="index+1 < applications.length">|</span></span>
  11. </div>
  12. <div class="brand-main" v-show="list.brief"><div>品牌介绍:</div><span>{{list.brief}}</span></div>
  13. <div class="brand-main" v-show="list.url"><div>官网地址:</div><a class="office-address" :href="list.url" target="_blank">{{list.url}}</a></div>
  14. </div>
  15. </div>
  16. <nuxt-link :to="`/product/brand/${list_brands.uuid}`" class="brand-url">进入品牌中心</nuxt-link>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. data () {
  22. return {
  23. applications: []
  24. }
  25. },
  26. computed: {
  27. list_brands () {
  28. return this.$store.state.searchData.searchList.lists.data.brands
  29. },
  30. list () {
  31. let list = this.$store.state.searchData.searchDetail.detail.data
  32. if (list.application && list.application !== '') {
  33. this.applications = list.application.split(',')
  34. }
  35. return list
  36. }
  37. }
  38. }
  39. </script>
  40. <style scoped>
  41. #brand{
  42. min-height: 160px;
  43. }
  44. .brandDetail {
  45. margin-top: 20px;
  46. width: 1190px;
  47. overflow: hidden;
  48. border-bottom: 1px solid #e5e5e5;
  49. }
  50. .brand-main{
  51. line-height: 20px;
  52. margin-left: 223px;
  53. margin-bottom: 10px;
  54. }
  55. .brand-main >span, .brand-main >a {
  56. font-weight: 500;
  57. font-size: 13px;
  58. display: inline-block;
  59. max-width: 92%;
  60. }
  61. .brand-main >div {
  62. font-size: 14px;
  63. font-weight: 700;
  64. width: 8%;
  65. display: inline-block;
  66. float: left;
  67. }
  68. .office-address{
  69. color: #666;
  70. }
  71. .office-address:hover{
  72. color: #5078cb;
  73. cursor: pointer;
  74. }
  75. .brandDetail .brand-logo{
  76. float: left;
  77. width: 213px;
  78. height: 160px;
  79. text-align: center;
  80. line-height: 100px;
  81. }
  82. .brandDetail .brand-logo img {
  83. width: 212px;
  84. height: 159px;
  85. border: 1px solid #ccc;
  86. vertical-align: middle;
  87. }
  88. .brand-url{
  89. color: white;
  90. background: #2c87d7;
  91. position: relative;
  92. left: 1088px;
  93. padding: 6px 8px;
  94. border-radius: 5px;
  95. bottom: 20px;
  96. }
  97. </style>