user.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="content">
  3. <view class="user-header">
  4. <view class="avatar"><image src="/static/logo.jpg"></image></view>
  5. <view class="info">
  6. <view class="name">启动隆恰</view>
  7. <view class="desc">180*******22</view>
  8. </view>
  9. </view>
  10. <view class="user-body" scroll-y scroll-with-animation>
  11. <view class="user-menu">
  12. <view class="title">我的服务</view>
  13. <view class="menu-item">
  14. <view class="icon"><image src="/static/image/rule-rule.png"></image></view>
  15. <view class="name">我的投诉</view>
  16. <view class="right"><image src="/static/image/right.svg"></image></view>
  17. </view>
  18. <view class="menu-item">
  19. <view class="icon"><image src="/static/image/service.png"></image></view>
  20. <view class="name">商家客服</view>
  21. <view class="right"><image src="/static/image/right.svg"></image></view>
  22. </view>
  23. <navigator hover-class="none" class="menu-item" url="/pages/user/license">
  24. <view class="icon"><image src="/static/image/zizhi.png"></image></view>
  25. <view class="name">服务资质</view>
  26. <view class="right"><image src="/static/image/right.svg"></image></view>
  27. </navigator>
  28. </view>
  29. <view class="user-menu">
  30. <view class="menu-item">
  31. <view class="icon"><image src="/static/image/out.png"></image></view>
  32. <view class="name">退出</view>
  33. <view class="right"><image src="/static/image/right.svg"></image></view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. }
  44. },
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .content{
  51. position: fixed;
  52. z-index: 1;
  53. top: 0;
  54. left: 0;
  55. bottom: 0;
  56. right: 0;
  57. background-color: #ededed;
  58. display: flex;
  59. flex-direction: column;
  60. }
  61. .user-menu{
  62. background-color: #fff;
  63. width: 95%;
  64. margin: 20rpx auto;
  65. border-radius: 20rpx;
  66. .title{
  67. font-size: 32rpx;
  68. font-weight: 800;
  69. color: #333;
  70. padding: 20rpx;
  71. }
  72. .menu-item{
  73. height: 100upx;
  74. line-height: 100upx;
  75. display: flex;
  76. align-items: center;
  77. font-size: 28upx;
  78. color: #333;
  79. padding: 0 20upx;
  80. border-bottom: 2upx solid #f8f8f8;
  81. .icon{
  82. margin-right: 20upx;
  83. display: flex;
  84. align-items: center;
  85. justify-content: center;
  86. image{
  87. width: 40upx;
  88. height: 40upx;
  89. }
  90. }
  91. .right{
  92. margin-right: 0;
  93. margin-left: auto;
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. image{
  98. width: 40upx;
  99. height: 40upx;
  100. }
  101. }
  102. }
  103. }
  104. .user-header{
  105. background-color: $main-color;
  106. padding: 20rpx;
  107. display: flex;
  108. align-items: center;
  109. gap: 20rpx;
  110. .info {
  111. .name {
  112. color: #fff;
  113. font-size: 32rpx;
  114. font-weight: 700;
  115. }
  116. .desc {
  117. color: $main-sub-color;
  118. font-size: 28rpx;
  119. margin-top: 10rpx;
  120. }
  121. }
  122. .avatar {
  123. image {
  124. background-color: #fff;
  125. padding: 4rpx;
  126. width: 100rpx;
  127. height: 100rpx;
  128. border-radius: 20rpx;
  129. }
  130. }
  131. }
  132. .user-body{
  133. height: 0;
  134. flex: 1;
  135. }
  136. </style>