NewStore.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <div class="new-sign-module">
  3. <div class="head">
  4. <div class="title">新入驻的商家</div>
  5. </div>
  6. <ul class="list-unstyled list-inline">
  7. <li class="new-store" v-for="(store, index) in stores">
  8. <div class="img">
  9. <img :src="store.logoUrl || '/images/store/common/default.png'"/>
  10. </div>
  11. <div class="content">
  12. <div class="name"><a target="_blank" :href="'/store/' + store.uuid" :title="store.storeName">{{store.storeName}}</a></div>
  13. <!--<div class="subject" style="display: none;">-->
  14. <!--主营:<span>暂无</span>-->
  15. <!--</div>-->
  16. <!--<div class="subject">-->
  17. <!--企业介绍:<span>{{store.enterprise.description || '暂无企业介绍'}}</span>-->
  18. <!--</div>-->
  19. </div>
  20. </li>
  21. </ul>
  22. <!--<div class="sign">-->
  23. <!--<div class="img">-->
  24. <!--<img src="/images/store/home/shop.png"/>-->
  25. <!--</div>-->
  26. <!--<div class="content">-->
  27. <!--<div class="count">-->
  28. <!--已入驻商家<span>{{storeCount}}</span> 家-->
  29. <!--</div>-->
  30. <!--<div>-->
  31. <!--<a @click="goStoreApply"><button>立即入驻</button></a>-->
  32. <!--</div>-->
  33. <!--</div>-->
  34. <!--</div>-->
  35. </div>
  36. </template>
  37. <script>
  38. export default {
  39. name: 'new-store',
  40. computed: {
  41. user () {
  42. return this.$store.state.option.user
  43. },
  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. enterprise () {
  51. return this.user.data.enterprise
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. @import '~assets/scss/variables';
  58. .new-sign-module {
  59. width: 220px;
  60. height: 352px;
  61. background-color: #ffffff;
  62. border-radius: 5px;
  63. .head {
  64. width: 220px;
  65. height: 34px;
  66. line-height: 34px;
  67. text-align: center;
  68. background-color: #2496f1;
  69. border-top-left-radius: 5px;
  70. border-top-right-radius: 5px;
  71. .title {
  72. font-size: 14px;
  73. font-weight: bold;
  74. color: #fff;
  75. }
  76. }
  77. .list-inline {
  78. padding: 14px 0px 0 8px;
  79. li{
  80. margin-bottom: 12px;
  81. overflow: hidden;
  82. .img {
  83. float: left;
  84. margin-right: 8px;
  85. width: 48px;
  86. height: 48px;
  87. border: 1px solid #dcdcdc;
  88. img{
  89. width: 100%;
  90. height: 100%;
  91. }
  92. }
  93. .content{
  94. float: left;
  95. width: 145px;
  96. line-height: 48px;
  97. .name {
  98. width: 145px;
  99. font-size: 14px;
  100. color: #333333;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. a{
  105. color: #333;
  106. &:hover{
  107. color:#2496f1;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. }
  114. .sign {
  115. height: 80px;
  116. box-shadow: 0px -5px 20px 0px #E3E1DE;
  117. margin-left: -20px;
  118. padding-left: 20px;
  119. padding-top: 5px;
  120. .img {
  121. display: inline-block;
  122. img {
  123. margin-bottom: 25px;
  124. vertical-align: middle;
  125. }
  126. }
  127. .content {
  128. display: inline-block;
  129. font-size: 0;
  130. padding-left: 3px;
  131. height: 70px;
  132. button {
  133. background-color: #3D76C6;
  134. color: white;
  135. font-size: 14px;
  136. font-weight: 600;
  137. border-radius: 4px;
  138. height: 30px;
  139. width: 160px;
  140. border: #3D76C6;
  141. }
  142. button:hover {
  143. transform: scale(1.05);
  144. background: #5078cb;
  145. }
  146. }
  147. .count {
  148. font-size: 16px;
  149. padding: 5px;
  150. span {
  151. color: #328CFE;
  152. }
  153. }
  154. }
  155. }
  156. </style>