RecommendOriginal.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <div class="container" id="recommends">
  3. <div class="title-icon">原厂推荐</div>
  4. <div class="hr-blue"></div>
  5. <ul class="recommend-list list-unstyled list-inline">
  6. <li class="recommend" v-for="(store, index) in stores">
  7. <a :href="'/store/' + store.uuid" target="_blank">
  8. <div class="img"><img :src="store.logoUrl || '/images/store/common/default.png'" /></div>
  9. <div class="content">
  10. <div class="name">
  11. <span :title="store.storeName">{{store.storeName}}</span>
  12. </div>
  13. <!--<div class="subject" style="min-height: 5px;">
  14. </div>-->
  15. <div class="description">
  16. <strong>商家介绍</strong>:
  17. <span>{{store.description || '暂无简介'}}</span>
  18. </div>
  19. </div>
  20. </a>
  21. </li>
  22. </ul>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. name: 'recommend-original',
  28. computed: {
  29. stores () {
  30. return this.$store.state.provider.storeCms.recommendStore.data
  31. }
  32. }
  33. }
  34. </script>
  35. <style scoped>
  36. #recommends {
  37. width: 1190px;
  38. padding: 0px;
  39. }
  40. .title-icon {
  41. font-size: 24px;
  42. color: #323232;
  43. margin-bottom: 10px;
  44. }
  45. #recommends .hr-blue {
  46. border-bottom: 2px solid #6493FF;
  47. border-right: 0px;
  48. border-top: 0px;
  49. border-left: 0px;
  50. width: 100%;
  51. margin-bottom: 20px;
  52. }
  53. #recommends .recommend-list {
  54. margin-bottom: 20px;
  55. margin: 0;
  56. }
  57. #recommends .recommend-list .recommend {
  58. width: 220px;
  59. height: 210px;
  60. border: 1px solid #D6D3CE;
  61. margin-right: 22.5px;
  62. margin-bottom: 22px;
  63. }
  64. #recommends .recommend-list .recommend:last-child{
  65. margin-right: 0px !important;
  66. }
  67. .margin-left-zero {
  68. margin-left: 0px !important;
  69. }
  70. #recommends .recommend-list .recommend a {
  71. text-decoration: none;
  72. }
  73. #recommends .recommend-list .recommend .img{
  74. width: 200px;
  75. height: 80px;
  76. display: inline-block;
  77. overflow: hidden;
  78. line-height: 80px;
  79. text-align: center;
  80. margin-top: 5px;
  81. }
  82. #recommends .recommend-list .recommend img{
  83. max-height: 75px;
  84. max-width: 200px;
  85. margin-top: 5px;
  86. }
  87. #recommends .recommend-list .recommend .content {
  88. margin: 0 10px;
  89. height: 108px;
  90. text-align: left;
  91. }
  92. #recommends .recommend-list .recommend .name {
  93. font-size: 16px;
  94. color: #383939;
  95. font-weight: 600;
  96. width: 200px;
  97. height: 30px;
  98. margin-top: 10px;
  99. overflow: hidden;
  100. text-overflow: ellipsis;
  101. white-space: nowrap;
  102. word-break: break-all;
  103. }
  104. /*#recommends .recommend-list .recommend:hover .name{*/
  105. /*width: auto;*/
  106. /*}*/
  107. #recommends .recommend-list .recommend .subject, #recommends .recommend-list .recommend .description {
  108. font-size: 12px;
  109. color: #797979;
  110. line-height: 18px;
  111. overflow: hidden;
  112. text-overflow: ellipsis;
  113. display: -webkit-box;
  114. -webkit-box-orient: vertical;
  115. -webkit-line-clamp: 2;
  116. max-height: 36px;
  117. }
  118. #recommends .recommend-list .recommend .description{
  119. margin-top: 5px;
  120. width: 200px;
  121. height: 35px;
  122. }
  123. #recommends .recommend-list .recommend .subject span {
  124. width: 204px;
  125. white-space: pre-wrap;
  126. word-wrap : break-word ;
  127. overflow: hidden;
  128. text-overflow: ellipsis;
  129. }
  130. #recommends .recommend-list .recommend:hover{
  131. border: #5078cb 1px solid;
  132. }
  133. #recommends .recommend-list .recommend .description span {
  134. word-break: keep-all;
  135. width: 204px;
  136. display: inline;
  137. overflow: hidden;
  138. text-overflow: ellipsis;
  139. white-space: pre-wrap;
  140. word-wrap : break-word ;
  141. }
  142. </style>