index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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/selfCenter/sign.png", name: "我的建议" },
  38. { icoin: "/static/selfCenter/sign.png", name: "我的报名" },
  39. { icoin: "/static/selfCenter/collection.png", name: "我的收藏" },
  40. { icoin: "/static/selfCenter/back.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: 440rpx;
  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: 70rpx;
  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: 80rpx;
  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: 28rpx;
  88. margin-left: 30rpx;
  89. margin-top: 20rpx;
  90. color: #ffffff;
  91. letter-spacing: 1rpx;
  92. }
  93. }
  94. .options {
  95. padding: 70rpx;
  96. z-index: 99;
  97. position: relative;
  98. top: -270rpx;
  99. .options-item {
  100. background-color: #fff;
  101. display: flex;
  102. box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
  103. border-radius: 32rpx;
  104. margin-top: 20px;
  105. height: 150rpx;
  106. align-items: center;
  107. .img-box {
  108. margin-left: 40rpx;
  109. .options-item-img {
  110. width: 56rpx;
  111. height: 56rpx;
  112. }
  113. }
  114. .options-item-name {
  115. margin-left: 40rpx;
  116. font-weight: 600;
  117. font-size: 30rpx;
  118. margin-bottom: 10rpx;
  119. }
  120. }
  121. }
  122. }
  123. .fontGrey {
  124. color: $uni-text-color-grey;
  125. }
  126. </style>