user.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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" @click="kfPop">
  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. <halfLogin ref="loginCom" @success="loginSuccess"></halfLogin>
  38. <kfService ref="kfService"></kfService>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. }
  46. },
  47. methods: {
  48. loginSuccess(token){
  49. },
  50. kfPop(){
  51. const data = uni.getStorageSync("contact");
  52. this.$refs.kfService.open(data);
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .content{
  59. position: fixed;
  60. z-index: 1;
  61. top: 0;
  62. left: 0;
  63. bottom: 0;
  64. right: 0;
  65. background-color: #ededed;
  66. display: flex;
  67. flex-direction: column;
  68. }
  69. .user-menu{
  70. background-color: #fff;
  71. width: 95%;
  72. margin: 20rpx auto;
  73. border-radius: 20rpx;
  74. .title{
  75. font-size: 32rpx;
  76. font-weight: 800;
  77. color: #333;
  78. padding: 20rpx;
  79. }
  80. .menu-item{
  81. height: 100upx;
  82. line-height: 100upx;
  83. display: flex;
  84. align-items: center;
  85. font-size: 28upx;
  86. color: #333;
  87. padding: 0 20upx;
  88. border-bottom: 2upx solid #f8f8f8;
  89. .icon{
  90. margin-right: 20upx;
  91. display: flex;
  92. align-items: center;
  93. justify-content: center;
  94. image{
  95. width: 40upx;
  96. height: 40upx;
  97. }
  98. }
  99. .right{
  100. margin-right: 0;
  101. margin-left: auto;
  102. display: flex;
  103. align-items: center;
  104. justify-content: center;
  105. image{
  106. width: 40upx;
  107. height: 40upx;
  108. }
  109. }
  110. }
  111. }
  112. .user-header{
  113. background-color: $main-color;
  114. padding: 20rpx;
  115. display: flex;
  116. align-items: center;
  117. gap: 20rpx;
  118. .info {
  119. .name {
  120. color: #fff;
  121. font-size: 32rpx;
  122. font-weight: 700;
  123. }
  124. .desc {
  125. color: $main-sub-color;
  126. font-size: 28rpx;
  127. margin-top: 10rpx;
  128. }
  129. }
  130. .avatar {
  131. image {
  132. background-color: #fff;
  133. padding: 4rpx;
  134. width: 100rpx;
  135. height: 100rpx;
  136. border-radius: 20rpx;
  137. }
  138. }
  139. }
  140. .user-body{
  141. height: 0;
  142. flex: 1;
  143. }
  144. </style>