BrandList.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. }
  36. </script>
  37. <style>
  38. /** brandList*/
  39. #brandsList {
  40. clear: both;
  41. width: 1190px;
  42. padding: 0px;
  43. }
  44. #brandsList .hr-blue {
  45. border-bottom: 2px solid #6493FF;
  46. border-right: 0px;
  47. border-top: 0px;
  48. border-left: 0px;
  49. width: 100%;
  50. }
  51. #brandsList .initials {
  52. margin-top: 3px;
  53. }
  54. #brandsList .row {
  55. margin: 20px 0px;
  56. }
  57. #brandsList .row .initial {
  58. display: inline-block;
  59. margin: 0 5px;
  60. font-size: 16px;
  61. color: #787878;
  62. }
  63. #brandsList .row .initial:hover{
  64. color: #5078CB;
  65. font-weight: bold;
  66. cursor: pointer;
  67. }
  68. #brandsList .row .initial-active{
  69. color: #5078CB;
  70. font-weight: bold;
  71. }
  72. #brands .container {
  73. width: 1190px;
  74. padding: 0px;
  75. }
  76. #brands .row .brands-title {
  77. width: 70px;
  78. height: 30px;
  79. padding-top: 5px;
  80. text-align: center;
  81. font-size: 16px;
  82. color: #fff;
  83. background-color: #6493FF;
  84. }
  85. #brands .row .brands-body {
  86. margin-bottom: 30px;
  87. font-size: 14px;
  88. color: #323232;
  89. }
  90. #brands .simplebrand {
  91. height: 30px;
  92. margin: 13px 0px;
  93. width: 25%;
  94. float: left;
  95. }
  96. #brands .simplebrand a {
  97. color: #323232;
  98. text-decoration: none;
  99. }
  100. #brands .simplebrand:hover a{
  101. color: #6493FF;
  102. font-weight: bold;
  103. }
  104. #brands .simplebrand .brand-name {
  105. margin-bottom: 2px;
  106. }
  107. #brands .simplebrand .brand-name-cn {
  108. font-size: 12px;
  109. }
  110. #brandsList ul {
  111. padding-left: 0px;
  112. }
  113. #brandsList ul li {
  114. list-style: none;
  115. }
  116. #carousel li {
  117. width: 12px;
  118. height: 12px;
  119. margin: 3px;
  120. }
  121. </style>