_uuid.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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>全部收藏 <i class="iconfont icon-jiantoushang"></i></span>
  7. </div>
  8. <div class="shop-list">
  9. <h3>{{1213}}</h3>
  10. <div class="list-item">
  11. <div class="item-img">
  12. <i></i>
  13. <img src="/images/component/default.png" alt="">
  14. </div>
  15. <div class="list-item-phone">
  16. <p>电话:<span>0755-1234567</span></p>
  17. <p>传真:<span>0755-1234567</span></p>
  18. <p>商家介绍: <nuxt-link to="/">点击查看</nuxt-link></p>
  19. <i class="iconfont icon-shoucang"></i>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. layout: 'main',
  28. data () {
  29. return {
  30. userName: ''
  31. }
  32. },
  33. fetch ({ store, storeName }) {
  34. return Promise.all([
  35. store.dispatch('shop/storeInfo', { storeName: storeName })
  36. ])
  37. }
  38. }
  39. </script>
  40. <style scoped lang="scss">
  41. .user-content{
  42. margin-bottom: .98rem;
  43. margin-top: .88rem;
  44. min-height: 10rem;
  45. background: #e2e4e6;
  46. .user-name{
  47. padding:.14rem .38rem .09rem .34rem;
  48. background:#fff;
  49. display:flex;
  50. align-items: center;
  51. width:100%;
  52. img{
  53. display: inline-block;
  54. width:1.25rem;
  55. height:1.25rem;
  56. border:.04rem solid #c5dbfc;
  57. border-radius: .05rem;
  58. }
  59. p{
  60. font-size:.32rem;
  61. margin:0;
  62. margin-left:.25rem;
  63. flex:1;
  64. }
  65. span{
  66. font-size:.28rem;
  67. color:#53a0f7;
  68. }
  69. }
  70. .shop-list {
  71. background:#fff;
  72. margin-top:.12rem;
  73. padding-bottom:.28rem;
  74. h3{
  75. font-size:.32rem;
  76. line-height: .8rem;
  77. margin:0;
  78. margin-left:.27rem;
  79. margin-bottom:.14rem;
  80. }
  81. .list-item{
  82. width:6.77rem;
  83. margin-left:.39rem;
  84. justify-content: space-around;
  85. display:inline-flex;
  86. .item-img{
  87. width:2.42rem;
  88. i{
  89. display:block;
  90. position:absolute;
  91. width:.65rem;
  92. height:.33rem;
  93. background: url(/imgs/shop/daili@2x.png)no-repeat;
  94. background-size: .65rem .33rem;
  95. }
  96. img{
  97. width:2.4rem;
  98. height:1.69rem;
  99. }
  100. }
  101. .list-item-phone{
  102. width:3.95rem;
  103. padding-top:.18rem;
  104. position:relative;
  105. p{
  106. font-size:.28rem;
  107. line-height: .45rem;
  108. margin:0;
  109. }
  110. i{
  111. display:block;
  112. position:absolute;
  113. top:.1rem;
  114. right:.1rem;
  115. font-size:.4rem;
  116. color:#ff7800;
  117. }
  118. }
  119. }
  120. }
  121. }
  122. </style>