NewStore.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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: 16px;
  73. color: #fff;
  74. }
  75. }
  76. .list-inline {
  77. padding: 14px 0px 0 8px;
  78. li{
  79. margin-bottom: 12px;
  80. overflow: hidden;
  81. .img {
  82. float: left;
  83. margin-right: 8px;
  84. width: 48px;
  85. height: 48px;
  86. border: 1px solid #dcdcdc;
  87. img{
  88. width: 100%;
  89. height: 100%;
  90. }
  91. }
  92. .content{
  93. float: left;
  94. width: 145px;
  95. line-height: 48px;
  96. .name {
  97. width: 145px;
  98. font-size: 14px;
  99. color: #333333;
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. white-space: nowrap;
  103. a{
  104. color: #333;
  105. &:hover{
  106. color:#2496f1;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. }
  113. .sign {
  114. height: 80px;
  115. box-shadow: 0px -5px 20px 0px #E3E1DE;
  116. margin-left: -20px;
  117. padding-left: 20px;
  118. padding-top: 5px;
  119. .img {
  120. display: inline-block;
  121. img {
  122. margin-bottom: 25px;
  123. vertical-align: middle;
  124. }
  125. }
  126. .content {
  127. display: inline-block;
  128. font-size: 0;
  129. padding-left: 3px;
  130. height: 70px;
  131. button {
  132. background-color: #3D76C6;
  133. color: white;
  134. font-size: 14px;
  135. font-weight: 600;
  136. border-radius: 4px;
  137. height: 30px;
  138. width: 160px;
  139. border: #3D76C6;
  140. }
  141. button:hover {
  142. transform: scale(1.05);
  143. background: #5078cb;
  144. }
  145. }
  146. .count {
  147. font-size: 16px;
  148. padding: 5px;
  149. span {
  150. color: #328CFE;
  151. }
  152. }
  153. }
  154. }
  155. </style>