BrandList.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <div>
  3. <div id="brandsList" class="container">
  4. <div id="brands">
  5. <div v-for="(brands, initial) in brandList" class="row container brands-page">
  6. <div class="brands-title">{{initial}}</div>
  7. <div class="hr-blue"></div>
  8. <div class="row brands-body">
  9. <div class="simplebrand" v-for="brand in brands">
  10. <div class="brand-name">
  11. <nuxt-link :to="`/product/brand/${brand.uuid}/`">
  12. <span>{{brand.nameEn}}</span>
  13. </nuxt-link>
  14. </div>
  15. <div>
  16. <nuxt-link :to="`/product/brand/${brand.uuid}/`" v-if="brand.nameEn!=brand.nameCn">
  17. <span class="brand-name-cn">{{brand.nameCn}}</span>
  18. </nuxt-link>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. export default {
  29. name: 'brandList',
  30. computed: {
  31. brandList () {
  32. return this.$store.state.product.brand.brandList.data
  33. }
  34. }
  35. // methods: {
  36. // showList (keyword) {
  37. // this.$store.dispatch('product/loadBrands', {'keyword': keyword})
  38. // }
  39. // }
  40. }
  41. </script>
  42. <style>
  43. /** brandList*/
  44. #brandsList {
  45. clear: both;
  46. width: 1190px;
  47. padding: 0px;
  48. }
  49. #brandsList .hr-blue {
  50. border-bottom: 2px solid #6493FF;
  51. border-right: 0px;
  52. border-top: 0px;
  53. border-left: 0px;
  54. width: 100%;
  55. }
  56. #brandsList .initials {
  57. margin-top: 3px;
  58. }
  59. #brandsList .row {
  60. margin: 20px 0px;
  61. }
  62. #brandsList .row .initial {
  63. display: inline-block;
  64. margin: 0 5px;
  65. font-size: 16px;
  66. color: #787878;
  67. }
  68. #brandsList .row .initial:hover{
  69. color: #5078CB;
  70. font-weight: bold;
  71. cursor: pointer;
  72. }
  73. #brandsList .row .initial-active{
  74. color: #5078CB;
  75. font-weight: bold;
  76. }
  77. #brands .container {
  78. width: 1190px;
  79. padding: 0px;
  80. }
  81. #brands .row .brands-title {
  82. width: 70px;
  83. height: 30px;
  84. padding-top: 5px;
  85. text-align: center;
  86. font-size: 16px;
  87. color: #fff;
  88. background-color: #6493FF;
  89. }
  90. #brands .row .brands-body {
  91. margin-bottom: 30px;
  92. font-size: 14px;
  93. color: #323232;
  94. }
  95. #brands .simplebrand {
  96. height: 30px;
  97. margin: 13px 0px;
  98. width: 25%;
  99. float: left;
  100. }
  101. #brands .simplebrand a {
  102. color: #323232;
  103. text-decoration: none;
  104. }
  105. #brands .simplebrand:hover a{
  106. color: #6493FF;
  107. font-weight: bold;
  108. }
  109. #brands .simplebrand .brand-name {
  110. margin-bottom: 2px;
  111. }
  112. #brands .simplebrand .brand-name-cn {
  113. font-size: 12px;
  114. }
  115. #brandsList ul {
  116. padding-left: 0px;
  117. }
  118. #brandsList ul li {
  119. list-style: none;
  120. }
  121. #carousel li {
  122. width: 12px;
  123. height: 12px;
  124. margin: 3px;
  125. }
  126. </style>