RecommendOriginal.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.enterprise.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. }
  63. #recommends .recommend-list .recommend:last-child{
  64. margin-right: 0px !important;
  65. }
  66. .margin-left-zero {
  67. margin-left: 0px !important;
  68. }
  69. #recommends .recommend-list .recommend a {
  70. text-decoration: none;
  71. }
  72. #recommends .recommend-list .recommend .img{
  73. width: 200px;
  74. height: 80px;
  75. display: inline-block;
  76. overflow: hidden;
  77. line-height: 80px;
  78. text-align: center;
  79. margin-top: 5px;
  80. }
  81. #recommends .recommend-list .recommend img{
  82. max-height: 75px;
  83. max-width: 200px;
  84. margin-top: 5px;
  85. }
  86. #recommends .recommend-list .recommend .content {
  87. margin: 0 10px;
  88. height: 108px;
  89. text-align: left;
  90. }
  91. #recommends .recommend-list .recommend .name {
  92. font-size: 16px;
  93. color: #383939;
  94. font-weight: 600;
  95. width: 200px;
  96. height: 30px;
  97. margin-top: 10px;
  98. overflow: hidden;
  99. text-overflow: ellipsis;
  100. white-space: nowrap;
  101. word-break: break-all;
  102. }
  103. /*#recommends .recommend-list .recommend:hover .name{*/
  104. /*width: auto;*/
  105. /*}*/
  106. #recommends .recommend-list .recommend .subject, #recommends .recommend-list .recommend .description {
  107. font-size: 12px;
  108. color: #797979;
  109. line-height: 18px;
  110. overflow: hidden;
  111. text-overflow: ellipsis;
  112. display: -webkit-box;
  113. -webkit-box-orient: vertical;
  114. -webkit-line-clamp: 2;
  115. max-height: 36px;
  116. }
  117. #recommends .recommend-list .recommend .description{
  118. margin-top: 5px;
  119. width: 200px;
  120. height: 35px;
  121. }
  122. #recommends .recommend-list .recommend .subject span {
  123. width: 204px;
  124. white-space: pre-wrap;
  125. word-wrap : break-word ;
  126. overflow: hidden;
  127. text-overflow: ellipsis;
  128. }
  129. #recommends .recommend-list .recommend:hover{
  130. border: #5078cb 1px solid;
  131. }
  132. #recommends .recommend-list .recommend .description span {
  133. word-break: break-all;
  134. width: 204px;
  135. display: inline;
  136. overflow: hidden;
  137. text-overflow: ellipsis;
  138. white-space: pre-wrap;
  139. word-wrap : break-word ;
  140. }
  141. </style>