NewStore.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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.enterprise.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 @click="goStoreApply"><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. user () {
  45. return this.$store.state.option.user
  46. },
  47. stores () {
  48. return this.$store.state.provider.storeCms.newStores.data ? this.$store.state.provider.storeCms.newStores.data.content : []
  49. },
  50. storeCount () {
  51. return this.$store.state.provider.storeCms.storeCount.data
  52. },
  53. enterprise () {
  54. return this.user.data.enterprise
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. @import '~assets/scss/variables';
  61. .new-sign-module {
  62. width: 280px;
  63. height: 360px;
  64. padding-left: 10px;
  65. border-right: 1px solid #D6D3CE;
  66. border-bottom: 1px solid #D6D3CE;
  67. border-top: 1px solid #D6D3CE;
  68. a {
  69. color: #337ab7;
  70. text-decoration: none;
  71. }
  72. ul {
  73. margin-bottom: 10px;
  74. }
  75. .head {
  76. height: 60px;
  77. .img {
  78. margin-right: 14px;
  79. width: 50px;
  80. height: 50px;
  81. display: inline-block;
  82. text-align: center;
  83. line-height: 50px;
  84. img {
  85. vertical-align: middle;
  86. }
  87. }
  88. .title {
  89. height: 60px;
  90. line-height: 60px;
  91. font-size: 18px;
  92. font-weight: 600;
  93. display: inline-block;
  94. }
  95. }
  96. .new-store {
  97. display: inline-block;
  98. height: 70px;
  99. padding-bottom: 0;
  100. width: 260px;
  101. .img {
  102. width: 50px;
  103. height: 50px;
  104. display: inline-block;
  105. text-align: center;
  106. line-height: 45px;
  107. border: #e8e8e8 1px solid;
  108. img {
  109. vertical-align: middle;
  110. }
  111. }
  112. .content {
  113. width: 185px;
  114. display: inline-block;
  115. padding: 8px;
  116. vertical-align: middle;
  117. margin-left: 10px;
  118. .name {
  119. font-size: 16px;
  120. color: #6D6B66;
  121. width: 190px;
  122. line-height: 28px;
  123. text-overflow: ellipsis;
  124. overflow: hidden;
  125. white-space: nowrap;
  126. word-break: keep-all;
  127. }
  128. .subject {
  129. font-size: 14px;
  130. color: #777570;
  131. line-height: 28px;
  132. overflow: hidden;
  133. text-overflow: ellipsis;
  134. white-space: nowrap;
  135. word-break: keep-all;
  136. }
  137. }
  138. }
  139. .sign {
  140. height: 80px;
  141. box-shadow: 0px -5px 20px 0px #E3E1DE;
  142. margin-left: -20px;
  143. padding-left: 20px;
  144. padding-top: 5px;
  145. .img {
  146. display: inline-block;
  147. img {
  148. margin-bottom: 25px;
  149. vertical-align: middle;
  150. }
  151. }
  152. .content {
  153. display: inline-block;
  154. font-size: 0;
  155. padding-left: 3px;
  156. height: 70px;
  157. button {
  158. background-color: #3D76C6;
  159. color: white;
  160. font-size: 14px;
  161. font-weight: 600;
  162. border-radius: 4px;
  163. height: 30px;
  164. width: 160px;
  165. border: #3D76C6;
  166. }
  167. button:hover {
  168. transform: scale(1.05);
  169. background: #5078cb;
  170. }
  171. }
  172. .count {
  173. font-size: 16px;
  174. padding: 5px;
  175. span {
  176. color: #328CFE;
  177. }
  178. }
  179. }
  180. }
  181. </style>