index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="content">
  3. <foot-tabs></foot-tabs>
  4. <div class="self-inf">
  5. <div class="img-name-box">
  6. <img src="/static/logo.png" alt="" class="heade-img" />
  7. <p src="" alt="" class="nickname">微信昵称2233</p>
  8. </div>
  9. <img
  10. class="bg-img"
  11. src="https://kiq.xazhima.com//upload/main_page/202109/202109231407288075.jpeg"
  12. alt=""
  13. />
  14. <image src="../../static/Intersect.svg" class="groove-img"></image>
  15. </div>
  16. <div class="options">
  17. <div v-for="(item, idx) in list" :key="idx" class="options-item">
  18. <div class="img-box">
  19. <img :src="item.icoin" alt="" class="options-item-img" /><span></span>
  20. </div>
  21. <div
  22. class="options-item-name"
  23. :class="{ fontGrey: idx == list.length - 1 }"
  24. >
  25. {{ item.name }}
  26. </div>
  27. </div>
  28. </div>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. message: "我的",
  36. list: [
  37. { icoin: "/static/logo.png", name: "我的建议" },
  38. { icoin: "/static/logo.png", name: "我的报名" },
  39. { icoin: "/static/logo.png", name: "我的收藏" },
  40. { icoin: "/static/logo.png", name: "退出登录" },
  41. ],
  42. };
  43. },
  44. onLoad() {},
  45. methods: {},
  46. };
  47. </script>
  48. <style lang="scss" scoped>
  49. .content {
  50. display: flex;
  51. flex-direction: column;
  52. .self-inf {
  53. position: relative;
  54. height: 400rpx;
  55. width: 100%;
  56. display: flex;
  57. margin-bottom: 80rpx;
  58. border-radius: 0rpx 0rpx 100% 100%;
  59. .img-name-box {
  60. height: 150rpx;
  61. margin-top: 80rpx;
  62. display: flex;
  63. align-items: center;
  64. .heade-img {
  65. z-index: 1;
  66. width: 100rpx;
  67. height: 100rpx;
  68. border-radius: 50%;
  69. margin-left: 100rpx;
  70. }
  71. }
  72. .bg-img {
  73. z-index: -1;
  74. position: absolute;
  75. width: 100%;
  76. height: 100%;
  77. // border-radius: 0rpx 0rpx 70rpx 70rpx;
  78. }
  79. .groove-img {
  80. width: 100%;
  81. height: 100rpx;
  82. bottom: -22rpx;
  83. position: absolute;
  84. }
  85. .nickname {
  86. font-weight: 600;
  87. font-size: 35rpx;
  88. margin-left: 40rpx;
  89. color: #ffffff;
  90. letter-spacing: 1rpx;
  91. }
  92. }
  93. .options {
  94. padding: 70rpx;
  95. z-index: 99;
  96. position: relative;
  97. top: -230rpx;
  98. .options-item {
  99. background-color: #fff;
  100. display: flex;
  101. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  102. border-radius: 32rpx;
  103. margin-top: 20px;
  104. height: 150rpx;
  105. align-items: center;
  106. .img-box {
  107. margin-left: 40rpx;
  108. .options-item-img {
  109. width: 60rpx;
  110. height: 60rpx;
  111. }
  112. }
  113. .options-item-name {
  114. margin-left: 40rpx;
  115. font-weight: 600;
  116. font-size: 35rpx;
  117. }
  118. }
  119. }
  120. }
  121. .fontGrey {
  122. color: $uni-text-color-grey;
  123. }
  124. </style>