NewStore.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <div class="new-sign-module">
  3. <div class="head">
  4. <div class="img">
  5. <img src="/images/store/home/new.png" />
  6. </div>
  7. <div class="title">新入驻的商家</div>
  8. </div>
  9. <ul class="list-unstyled list-inline" style="height: 210px;">
  10. <li class="new-store" v-for="(store, index) in stores">
  11. <div class="img">
  12. <img :src="store.logoUrl || '/images/store/common/default.png'" style="max-width: 100%;max-height: 100%;" />
  13. </div>
  14. <div class="content">
  15. <div class="name"><a target="_blank" :href="'/store/' + store.uuid" :title="store.storeName">{{store.storeName}}</a></div>
  16. <div class="subject" style="display: none;">
  17. 主营:<span>暂无</span>
  18. </div>
  19. <div class="subject">
  20. 商家简介:<span>{{store.description}}</span>
  21. </div>
  22. </div>
  23. </li>
  24. </ul>
  25. <div class="sign">
  26. <div class="img">
  27. <img src="/images/store/home/shop.png"/>
  28. </div>
  29. <div class="content">
  30. <div class="count">
  31. 已入驻商家<span>{{storeCount}}</span>家
  32. </div>
  33. <div>
  34. <a href="vendor#/store-apply"><button>立即入驻</button></a>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </template>
  40. <script>
  41. export default {
  42. name: 'new-store',
  43. computed: {
  44. stores () {
  45. return this.$store.state.provider.storeCms.newStores.data ? this.$store.state.provider.storeCms.newStores.data.content : []
  46. },
  47. storeCount () {
  48. return this.$store.state.provider.storeCms.storeCount.data
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. @import '~assets/scss/variables';
  55. .new-sign-module {
  56. width: 280px;
  57. height: 360px;
  58. padding-left: 10px;
  59. border-right: 1px solid #D6D3CE;
  60. border-bottom: 1px solid #D6D3CE;
  61. border-top: 1px solid #D6D3CE;
  62. a {
  63. color: #337ab7;
  64. text-decoration: none;
  65. }
  66. ul {
  67. margin-bottom: 10px;
  68. }
  69. .head {
  70. height: 60px;
  71. .img {
  72. margin-right: 14px;
  73. width: 50px;
  74. height: 50px;
  75. display: inline-block;
  76. text-align: center;
  77. line-height: 50px;
  78. img {
  79. vertical-align: middle;
  80. }
  81. }
  82. .title {
  83. height: 60px;
  84. line-height: 60px;
  85. font-size: 18px;
  86. font-weight: 600;
  87. display: inline-block;
  88. }
  89. }
  90. .new-store {
  91. display: inline-block;
  92. height: 70px;
  93. padding-bottom: 0;
  94. width: 260px;
  95. .img {
  96. width: 50px;
  97. height: 50px;
  98. display: inline-block;
  99. text-align: center;
  100. line-height: 50px;
  101. border: #e8e8e8 1px solid;
  102. img {
  103. vertical-align: middle;
  104. }
  105. }
  106. .content {
  107. width: 185px;
  108. display: inline-block;
  109. padding: 8px;
  110. vertical-align: middle;
  111. margin-left: 10px;
  112. .name {
  113. font-size: 16px;
  114. color: #6D6B66;
  115. width: 190px;
  116. line-height: 28px;
  117. text-overflow: ellipsis;
  118. overflow: hidden;
  119. white-space: nowrap;
  120. word-break: keep-all;
  121. }
  122. .subject {
  123. font-size: 14px;
  124. color: #777570;
  125. line-height: 28px;
  126. overflow: hidden;
  127. text-overflow: ellipsis;
  128. white-space: nowrap;
  129. word-break: keep-all;
  130. }
  131. }
  132. }
  133. .sign {
  134. height: 80px;
  135. box-shadow: 0px -5px 20px 0px #E3E1DE;
  136. margin-left: -20px;
  137. padding-left: 20px;
  138. padding-top: 5px;
  139. .img {
  140. display: inline-block;
  141. img {
  142. margin-bottom: 25px;
  143. vertical-align: middle;
  144. }
  145. }
  146. .content {
  147. display: inline-block;
  148. font-size: 0;
  149. padding-left: 3px;
  150. height: 70px;
  151. button {
  152. background-color: #3D76C6;
  153. color: white;
  154. font-size: 14px;
  155. font-weight: 600;
  156. border-radius: 4px;
  157. height: 30px;
  158. width: 160px;
  159. border: #3D76C6;
  160. }
  161. button:hover {
  162. transform: scale(1.05);
  163. background: #5078cb;
  164. }
  165. }
  166. .count {
  167. font-size: 16px;
  168. padding: 5px;
  169. span {
  170. color: #328CFE;
  171. }
  172. }
  173. }
  174. }
  175. </style>