index.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <view class="content pdx-48">
  3. <view class="w h-88 flex ai_center jc_center mgt-88 p-rel">
  4. <image
  5. @click="$navBack()"
  6. class="w-48 h-48 abs_left"
  7. src="/static/image/common/left_arrow_icon.png"
  8. mode="scaleToFill"
  9. />
  10. <view class="text-36 text-500 text-070202">个人资料</view>
  11. </view>
  12. <view class="mgt-16 w">
  13. <view
  14. class="w h-96 flex ai_center jc_between mgb-16 border-bottom-F2F2F7"
  15. v-for="item in menu"
  16. :key="item.name"
  17. >
  18. <view class="text-28 text-400 text-303030">{{ item.title }}</view>
  19. <view class="flex ai_center">
  20. <image
  21. class="w-64 h-64 mgr-14"
  22. v-if="item.name === 'avatar'"
  23. src="/static/image/my/user_avatar_64.png"
  24. mode="scaleToFill"
  25. />
  26. <view v-else class="text-24 text-600 text-070202 mgr-14">
  27. {{ item.value }}
  28. </view>
  29. <image
  30. v-if="item.name === 'avatar' || item.name === 'name'"
  31. class="w-48 h-48"
  32. src="/static/image/common/right_arrow_icon.png"
  33. mode="scaleToFill"
  34. />
  35. </view>
  36. </view>
  37. </view>
  38. <view class="w mgt-48">
  39. <view class="mgb-16">
  40. <view class="text-32 text-600 text-303030">其他</view>
  41. </view>
  42. <view
  43. class="w h-96 flex ai_center jc_between mgb-16 border-bottom-F2F2F7"
  44. v-for="item in otherMenu"
  45. :key="item.name"
  46. @click="$navTo(item.pagePath)"
  47. >
  48. <view class="text-28 text-400 text-303030">{{ item.title }}</view>
  49. <view class="flex ai_center">
  50. <image
  51. class="w-64 h-64 mgr-24"
  52. v-if="item.name === 'weixin'"
  53. src="/static/image/my/user_avatar_64.png"
  54. mode="scaleToFill"
  55. />
  56. <view v-if="item.value === '未实名'" class="text-24 text-600 text-E02E24">
  57. {{ item.value }}
  58. </view>
  59. <view v-else class="text-24 text-600 text-070202">
  60. {{ item.value }}
  61. </view>
  62. <image
  63. class="w-48 h-48 mgl-10"
  64. src="/static/image/common/right_arrow_icon.png"
  65. mode="scaleToFill"
  66. />
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. export default {
  74. data() {
  75. return {
  76. title: "个人资料",
  77. menu: [
  78. { title: "我的头像", name: "avatar", value: "", pagePath: "" },
  79. { title: "我的昵称", name: "name", value: "czh", pagePath: "" },
  80. { title: "用户ID", name: "id", value: "00001", pagePath: "" },
  81. {
  82. title: "注册时间",
  83. name: "time",
  84. value: "2025/05/02 18:00",
  85. pagePath: "",
  86. },
  87. { title: "我的邀请人", name: "invite", value: "2555885", pagePath: "" },
  88. ],
  89. otherMenu: [
  90. { title: "微信", name: "weixin", value: "czh", pagePath: "" },
  91. { title: "支付宝", name: "aliPay", value: "已绑定", pagePath: "" },
  92. {
  93. title: "实名认证",
  94. name: "realName",
  95. value: "未实名",
  96. pagePath: "/pages/personalProfile/realAuth",
  97. },
  98. ],
  99. };
  100. },
  101. onLoad() {},
  102. methods: {},
  103. };
  104. </script>
  105. <style>
  106. .content {
  107. display: flex;
  108. flex-direction: column;
  109. align-items: center;
  110. justify-content: center;
  111. }
  112. .logo {
  113. height: 200rpx;
  114. width: 200rpx;
  115. margin-top: 200rpx;
  116. margin-left: auto;
  117. margin-right: auto;
  118. margin-bottom: 50rpx;
  119. }
  120. .text-area {
  121. display: flex;
  122. justify-content: center;
  123. }
  124. .title {
  125. font-size: 36rpx;
  126. color: #8f8f94;
  127. }
  128. </style>