_uuid.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <div class="user-content">
  3. <div class="user-name">
  4. <img src="/images/component/default.png"/>
  5. <p>{{userName}}uu用户名</p>
  6. <span @click="onclick()">全部收藏 <i class="iconfont icon-arrow-down"></i></span>
  7. <ul class="supdown" v-if="down">
  8. <li>店铺关注</li>
  9. <li>器件收藏</li>
  10. </ul>
  11. </div>
  12. <div class="shop-list">
  13. <h3>{{1213}}</h3>
  14. <div class="list-item">
  15. <div class="item-img">
  16. <i></i>
  17. <img src="/images/component/default.png" alt="">
  18. </div>
  19. <div class="list-item-phone">
  20. <p>电话:<span>0755-1234567</span></p>
  21. <p>传真:<span>0755-1234567</span></p>
  22. <p>商家介绍: <nuxt-link to="/">点击查看</nuxt-link></p>
  23. <i class="iconfont icon-shoucang"></i>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </template>
  29. <script>
  30. export default {
  31. layout: 'main',
  32. data () {
  33. return {
  34. userName: '',
  35. down: false
  36. }
  37. },
  38. fetch ({ store, storeName }) {
  39. return Promise.all([
  40. store.dispatch('shop/storeInfo', { storeName: storeName })
  41. ])
  42. },
  43. methods: {
  44. onclick () {
  45. this.down = !this.down
  46. }
  47. }
  48. }
  49. </script>
  50. <style scoped lang="scss">
  51. .user-content{
  52. margin-bottom: .98rem;
  53. margin-top: .88rem;
  54. min-height: 10rem;
  55. background: #e2e4e6;
  56. .user-name{
  57. padding:.14rem .38rem .09rem .34rem;
  58. background:#fff;
  59. display:flex;
  60. align-items: center;
  61. width:100%;
  62. position:relative;
  63. .supdown{
  64. position:absolute;
  65. top:1rem;
  66. right:.3rem;
  67. z-index:1000;
  68. width:1.7rem;
  69. background:#616264;
  70. border-radius:.1rem;
  71. padding-left:.18rem;
  72. li{
  73. font-size: .28rem;
  74. color:#ffffff;
  75. height: .32rem;
  76. line-height: .32rem;
  77. margin: .2rem 0;
  78. }
  79. }
  80. img{
  81. display: inline-block;
  82. width:1.25rem;
  83. height:1.25rem;
  84. border:.04rem solid #c5dbfc;
  85. border-radius: .05rem;
  86. }
  87. p{
  88. font-size:.32rem;
  89. margin:0;
  90. margin-left:.25rem;
  91. flex:1;
  92. }
  93. span{
  94. font-size:.28rem;
  95. color:#53a0f7;
  96. }
  97. }
  98. .shop-list {
  99. background:#fff;
  100. margin-top:.12rem;
  101. padding-bottom:.28rem;
  102. h3{
  103. font-size:.32rem;
  104. line-height: .8rem;
  105. margin:0;
  106. margin-left:.27rem;
  107. margin-bottom:.14rem;
  108. }
  109. .list-item{
  110. width:6.77rem;
  111. margin-left:.39rem;
  112. justify-content: space-around;
  113. display:inline-flex;
  114. .item-img{
  115. width:2.42rem;
  116. i{
  117. display:block;
  118. position:absolute;
  119. width:.65rem;
  120. height:.33rem;
  121. background: url(/imgs/shop/daili@2x.png)no-repeat;
  122. background-size: .65rem .33rem;
  123. }
  124. img{
  125. width:2.4rem;
  126. height:1.69rem;
  127. }
  128. }
  129. .list-item-phone{
  130. width:3.95rem;
  131. padding-top:.18rem;
  132. position:relative;
  133. p{
  134. font-size:.28rem;
  135. line-height: .45rem;
  136. margin:0;
  137. }
  138. i{
  139. display:block;
  140. position:absolute;
  141. top:.1rem;
  142. right:.1rem;
  143. font-size:.4rem;
  144. color:#ff7800;
  145. }
  146. }
  147. }
  148. }
  149. }
  150. </style>