ExcellentSuppliers.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <template>
  2. <div class="container marketing" style="padding-top: 25px;">
  3. <div class="head">
  4. <span class="title">优秀商家</span>
  5. <a class="see-more" href="/provider/list" v-if="isShowMore">查看更多</a>
  6. </div>
  7. <ul class="list-unstyled list-inline">
  8. <li class="store-box" v-for="(store, index) in stores" :class="{ 'margin-left-zero' : index % 5 == 0}" >
  9. <a :href="'/store/' + store.uuid" target="_blank">
  10. <div class="img"><img :src="store.logoUrl || '/images/store/common/default.png'"/></div>
  11. <div class="content">
  12. <div class="name" title="store.storeName">
  13. <span>{{store.storeName}}</span>
  14. </div>
  15. <div class="description">
  16. 商家介绍:<span>{{store.description}}</span>
  17. </div>
  18. </div>
  19. </a>
  20. </li>
  21. </ul>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: 'excellent-suppliers',
  27. props: ['isShowMore'],
  28. computed: {
  29. stores () {
  30. return this.$store.state.provider.storeCms.recommendStore.data
  31. }
  32. }
  33. }
  34. </script>
  35. <style scoped>
  36. .marketing {
  37. width: 1190px;
  38. padding: 0px;
  39. }
  40. .marketing .store-box {
  41. width: 220px;
  42. height: 210px;
  43. border: 1px solid #D6D3CE;
  44. margin-left: 25px;
  45. margin-bottom: 22px;
  46. overflow: hidden;
  47. }
  48. .margin-left-zero {
  49. margin-left: 0px !important;
  50. }
  51. .marketing ul.list-inline {
  52. margin-left: 0px;
  53. }
  54. .marketing .list-inline>li.store-box {
  55. padding-right: 0;
  56. padding-left: 0;
  57. margin-right: -3px;
  58. }
  59. .marketing .list-inline>li:last-child {
  60. margin-right: 0;
  61. }
  62. .marketing .see-more {
  63. float: right;
  64. width: 70px;
  65. height: 26px;
  66. border: 1px solid #d6d3ce;
  67. color: #214797;
  68. font-family: "Microsoft Yahei", "微软雅黑";
  69. font-size: 14px;
  70. line-height: 26px;
  71. padding-left: 6px;
  72. margin-top: 20px;
  73. border-radius: 3px;
  74. }
  75. .marketing .see-more:hover{
  76. background: #5078cb;
  77. color: #fff;
  78. }
  79. .marketing .see-more:hover {
  80. cursor: pointer;
  81. }
  82. .marketing .title {
  83. font-size: 24px;
  84. font-family: "Microsoft Yahei", "微软雅黑";
  85. line-height: 60px;
  86. height: 60px;
  87. font-weight: inherit;
  88. }
  89. li.store-box:hover {
  90. border-color: #1162A4;
  91. }
  92. .store-box a {
  93. text-decoration: none;
  94. display: block;
  95. text-align: center;
  96. width: 220px;
  97. height: 210px;
  98. }
  99. .store-box a .description {
  100. text-align: left;
  101. }
  102. .store-box a:hover {
  103. text-decoration: none;
  104. }
  105. .store-box img {
  106. max-height: 80px;
  107. max-width: 220px;
  108. margin-top: 0;
  109. }
  110. .store-box .content {
  111. margin: 0 12px;
  112. padding: 5px;
  113. height: 103px;
  114. overflow: hidden;
  115. text-overflow: ellipsis;
  116. white-space: nowrap;
  117. word-break: break-all;
  118. }
  119. .store-box .name {
  120. font-size: 16px;
  121. color: #383939;
  122. text-align: left;
  123. /*width: 200px;*/
  124. height: 30px;
  125. font-weight: 600;
  126. margin: 10px 0 5px 0;
  127. display: block;
  128. white-space: nowrap;
  129. overflow: hidden;
  130. text-overflow: ellipsis;
  131. }
  132. .store-box .subject, .store-box .description {
  133. margin-bottom: 5px;
  134. /*width: 200px;*/
  135. height: 35px;
  136. font-size: 12px;
  137. color: #797979;
  138. line-height: 18px;
  139. white-space: nowrap;
  140. overflow: hidden;
  141. text-overflow: ellipsis;
  142. }
  143. .store-box .description{
  144. overflow:hidden;
  145. text-overflow:ellipsis;
  146. display:-webkit-box;
  147. -webkit-box-orient:vertical;
  148. -webkit-line-clamp: 4;
  149. }
  150. .store-box .description span {
  151. word-break: normal;
  152. width: 204px;
  153. display: inline;
  154. white-space: pre-wrap;
  155. word-wrap : break-word ;
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. }
  159. .store-index-top {
  160. height: 360px;
  161. }
  162. .store-index-top-left {
  163. width: 240px;
  164. float: left;
  165. display: inline-block;
  166. }
  167. .store-index-top-center {
  168. width: 670px;
  169. display: inline-block;
  170. float: left;
  171. border: 1px solid #D6D3CE;
  172. }
  173. .store-index-top-right {
  174. width: 280px;
  175. float: left;
  176. display: inline-block;
  177. }
  178. .store-box .img{
  179. margin-top: 5px;
  180. width: 220px;
  181. height: 80px;
  182. display: inline-block;
  183. overflow: hidden;
  184. line-height: 80px;
  185. text-align: center;
  186. }
  187. </style>