_uuid.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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>{{}}</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>商家介绍: <a href="#">点击查看</a></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-top:1rem;
  43. min-height: 10rem;
  44. background: #e2e4e6;
  45. .user-name{
  46. padding:.14rem .38rem .09rem .34rem;
  47. background:#fff;
  48. display:flex;
  49. align-items: center;
  50. width:100%;
  51. img{
  52. display: inline-block;
  53. width:1.25rem;
  54. height:1.25rem;
  55. border:.04rem solid #c5dbfc;
  56. border-radius: .05rem;
  57. }
  58. p{
  59. font-size:.32rem;
  60. margin:0;
  61. margin-left:.25rem;
  62. flex:1;
  63. }
  64. span{
  65. font-size:.28rem;
  66. color:#53a0f7;
  67. }
  68. }
  69. .shop-list {
  70. background:#fff;
  71. margin-top:.12rem;
  72. padding-bottom:.28rem;
  73. h3{
  74. font-size:.32rem;
  75. line-height: .8rem;
  76. margin:0;
  77. margin-left:.27rem;
  78. margin-bottom:.14rem;
  79. }
  80. .list-item{
  81. width:6.77rem;
  82. margin-left:.39rem;
  83. justify-content: space-around;
  84. display:inline-flex;
  85. .item-img{
  86. width:2.42rem;
  87. i{
  88. display:block;
  89. position:absolute;
  90. width:.65rem;
  91. height:.33rem;
  92. background: url(/imgs/shop/daili@2x.png)no-repeat;
  93. background-size: .65rem .33rem;
  94. }
  95. img{
  96. width:2.4rem;
  97. height:1.69rem;
  98. }
  99. }
  100. .list-item-phone{
  101. width:3.95rem;
  102. padding-top:.18rem;
  103. position:relative;
  104. p{
  105. font-size:.28rem;
  106. line-height: .45rem;
  107. margin:0;
  108. }
  109. i{
  110. display:block;
  111. position:absolute;
  112. top:.1rem;
  113. right:.1rem;
  114. font-size:.4rem;
  115. color:#ff7800;
  116. }
  117. }
  118. }
  119. }
  120. }
  121. </style>