mine.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view>
  3. <u-navbar class="u-navbar-box" title="我的" placeholder bgColor="transparent" left-icon-size="0" />
  4. <view class="top-box">
  5. <u-image class="bg-box" width="690rpx" height="270rpx" src="/static/mine/user-center-bg.png" />
  6. <div class="avatar-name">
  7. <u-image class="avatar" width="116rpx" bgColor="transparent" height="116rpx"
  8. src="/static/mine/avatar-def.png" />
  9. <view class="name">{{user.name}}</view>
  10. </div>
  11. <div class="abs-right">
  12. <u-image bgColor="transparent" width="220rpx" height="258rpx" src="/static/mine/user-center-img.png" />
  13. </div>
  14. </view>
  15. <u-cell-group :border="false" :customStyle="{background: '#fff', margin: '30rpx', borderRadius: '20rpx'}">
  16. <u-cell icon="setting-fill" title="我的申请" isLink url="/pages/subpack/pages/application/list">
  17. <template #icon>
  18. <u-image src="/static/mine/task.png" bgColor="transparent" width="36rpx" height="36rpx" />
  19. </template>
  20. </u-cell>
  21. <u-cell icon="integral-fill" title="个人信息" isLink :border="false" url="/pages/subpack/pages/myInfo/info">
  22. <template #icon>
  23. <u-image src="/static/mine/myself.png" bgColor="transparent" width="36rpx" height="36rpx" />
  24. </template>
  25. </u-cell>
  26. </u-cell-group>
  27. </view>
  28. </template>
  29. <script setup>
  30. import {
  31. ref
  32. } from 'vue';
  33. const user = ref({
  34. name: '李大川'
  35. })
  36. </script>
  37. <style>
  38. page {
  39. background-color: #F6F8FD;
  40. }
  41. </style>
  42. <style lang="scss" scoped>
  43. :deep(.u-image) {
  44. display: flex;
  45. align-items: center;
  46. justify-content: center;
  47. }
  48. :deep(.u-navbar__content__title) {
  49. font-weight: bold;
  50. font-size: 36rpx;
  51. color: #222222;
  52. }
  53. .u-navbar-box {
  54. background: radial-gradient(circle at left, #FFE5E4 0%, #EEF2F5 40%, #DBEEFB 100%);
  55. }
  56. .top-box {
  57. position: relative;
  58. margin: 30rpx;
  59. .avatar-name {
  60. position: absolute;
  61. top: 77rpx;
  62. left: 40rpx;
  63. display: flex;
  64. align-items: center;
  65. .name {
  66. font-weight: bold;
  67. font-size: 40rpx;
  68. color: #000000;
  69. margin-left: 30rpx;
  70. }
  71. }
  72. .abs-right {
  73. position: absolute;
  74. bottom: 20rpx;
  75. right: 40rpx;
  76. }
  77. }
  78. </style>