my.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <view class="container">
  3. <!-- 顶部用户信息区域 -->
  4. <view class="header">
  5. <img src="../../static/my/headerImg.png" />
  6. <!-- 头像区域 -->
  7. <img class="img" src="../../static/my/portrait.png" />
  8. <!-- 姓名区域 -->
  9. <view class="name">张三</view>
  10. <!-- 用户id区域 -->
  11. <view class="number">ID:1925689</view>
  12. <!-- 是否实名认证区域 -->
  13. <view class="real">
  14. <img src="../../static/my/true.png" />
  15. 已实名认证
  16. </view>
  17. </view>
  18. <!-- 内容区域 -->
  19. <view class="body">
  20. <!-- 订单管理区域 -->
  21. <view class="body_item" @click="goPageOrder">
  22. <img class="img" src="../../static/my/order.png" />
  23. 订单管理
  24. </view>
  25. <!-- 常用旅客区域 -->
  26. <view class="body_item" @click="goPageCommon">
  27. <img class="img2" src="../../static/my/people.png" />
  28. 常用旅客
  29. </view>
  30. <!-- 设置区域 -->
  31. <view class="body_item" @click="goPageSet">
  32. <img class="img3" src="../../static/my/set.png" />
  33. 设置
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {}
  42. },
  43. methods: {
  44. // 点击订单管理按钮回调
  45. goPageOrder() {
  46. uni.navigateTo({
  47. url: '/pages/orderManage/orderManage'
  48. })
  49. },
  50. // 点击常用旅客按钮回调
  51. goPageCommon() {
  52. uni.navigateTo({
  53. url: '/pages/common/common'
  54. })
  55. },
  56. // 点击设置按钮回调
  57. goPageSet() {
  58. uni.navigateTo({
  59. url: '/pages/set/set'
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. .container {
  67. position: relative;
  68. min-height: 100vh;
  69. background-color: #ebeced;
  70. .header {
  71. position: relative;
  72. height: 300rpx;
  73. color: #fff;
  74. overflow: hidden;
  75. img {
  76. width: 100%;
  77. }
  78. .img {
  79. position: absolute;
  80. top: 120rpx;
  81. left: 32rpx;
  82. width: 140rpx;
  83. height: 140rpx;
  84. }
  85. .name {
  86. position: absolute;
  87. top: 118rpx;
  88. left: 202rpx;
  89. font-size: 40rpx;
  90. font-weight: bold;
  91. }
  92. .number {
  93. position: absolute;
  94. top: 176rpx;
  95. left: 202rpx;
  96. font-size: 24rpx;
  97. opacity: 0.5;
  98. }
  99. .real {
  100. position: absolute;
  101. top: 221rpx;
  102. left: 202rpx;
  103. display: flex;
  104. align-items: center;
  105. box-sizing: border-box;
  106. padding-left: 13rpx;
  107. width: 179rpx;
  108. height: 42rpx;
  109. font-size: 24rpx;
  110. border-radius: 113rpx;
  111. background-color: rgba(255, 255, 255, 0.2);
  112. img {
  113. margin-right: 7rpx;
  114. width: 24rpx;
  115. height: 24rpx;
  116. }
  117. }
  118. }
  119. .body {
  120. position: absolute;
  121. top: 290rpx;
  122. box-sizing: border-box;
  123. padding: 0 30rpx;
  124. width: 100%;
  125. height: calc(100vh - 290rpx);
  126. border-radius: 20rpx 20rpx 0 0;
  127. background-color: #fff;
  128. .body_item {
  129. display: flex;
  130. align-items: center;
  131. height: 121rpx;
  132. font-size: 28rpx;
  133. border-bottom: 1rpx solid #e6e6e6;
  134. .img {
  135. margin-right: 17rpx;
  136. width: 53rpx;
  137. height: 53rpx;
  138. }
  139. .img2 {
  140. margin-right: 22rpx;
  141. width: 42rpx;
  142. height: 42rpx;
  143. }
  144. .img3 {
  145. margin-right: 18rpx;
  146. width: 50rpx;
  147. height: 50rpx;
  148. }
  149. }
  150. }
  151. }
  152. </style>