index.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <script setup lang="ts">
  2. import avatar from '@/static/image/user-info/avatar.png'
  3. import component from '@/static/image/user-info/Component.png'
  4. import union from '@/static/image/user-info/union.png'
  5. import ToolFun from '@/utils'
  6. const titleName = ref<string>('个人信息')
  7. const safeHeight = ToolFun.getSafeHeight()
  8. </script>
  9. <template>
  10. <TitleBar :title-name="titleName" />
  11. <view class="flex flex-col bg-[#F5F6F7] overflow-y-auto" :style="`height:calc(100vh - ${safeHeight}px)`">
  12. <view class="flex justify-center items-center p-[61px] w-full pb-[30px] ">
  13. <view class="relative h-[80px] w-[80px]">
  14. <image
  15. :src="avatar" class="h-[80px] w-[80px] "
  16. />
  17. <view class="flex justify-center items-center absolute h-[18px] w-[18px] bg-[#0052D9] rounded-full right-0 bottom-0">
  18. <image
  19. :src="union" class="h-[10px] w-[10px] "
  20. />
  21. </view>
  22. </view>
  23. </view>
  24. <uni-card>
  25. <uni-list class="text-[16px] font-normal relative felx items-center justify-center" :border="false">
  26. <uni-list-item show-arrow title="姓名" right-text="齐治然" />
  27. </uni-list>
  28. </uni-card>
  29. <uni-card class="mt-6">
  30. <uni-list :border="false" />
  31. <uni-list-item show-arrow title="年龄" right-text="50" class="text-[45px] font-normal" :border="false" />
  32. <uni-list-item show-arrow title="性别" right-text="男孩" />
  33. <uni-list-item show-arrow title="职业" right-text="太空人" />
  34. <uni-list-item show-arrow title="地址" right-text="杭州" />
  35. </uni-card>
  36. <view class=" w-full flex justify-center items-center mt-[80px]">
  37. <button class="w-[176px] h-[47px] font-normal bg-[#4545E5] text-[18px] rounded-[69px] text-[#fff] flex justify-center items-center">
  38. 确认
  39. </button>
  40. </view>
  41. <view class="mt-[20px] flex justify-center items-center">
  42. <image
  43. :src="component" class="w-[138px] h-[38px]"
  44. />
  45. </view>
  46. </view>
  47. </template>
  48. <style lang="scss" scoped>
  49. :deep .uni-list-item{
  50. height: 56px !important;
  51. }
  52. :deep .uni-list-item__content-title {
  53. color: var(--text-icon-font-gy-190, rgba(0, 0, 0, 0.90)) !important;
  54. font-size: 16px !important;
  55. font-family: "PingFang SC" !important;
  56. font-style: normal !important;
  57. font-weight: 400 !important;
  58. }
  59. :deep .uni-list-item__extra-text{
  60. color: var(--text-icon-font-gy-190, rgba(0, 0, 0, 0.90)) !important;
  61. font-size: 16px !important;
  62. font-style: normal !important;
  63. font-weight: 400 !important;
  64. }
  65. </style>