猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
2.4 KiB

2 months ago
  1. <template>
  2. <!-- <div>我的等级</div> -->
  3. <view class="box">
  4. <view class="level">
  5. <view class="picture" :style="{borderRadius:'50%'}">
  6. <image src="" mode="" shape="circle" withe="139rpx" height="139rpx"></image>
  7. </view>
  8. <view class="flex">
  9. <view class="name">
  10. 猫小姐
  11. </view>
  12. <view class="level">
  13. <view class="title level" :style="{borderRadius:'19rpx'}">
  14. 初级合伙人
  15. </view>
  16. <view class="time">
  17. 已加入合伙人:130
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="center box-size" :style="{borderRadius:'16rpx'}">
  23. <view class="form-title">
  24. 距离下一等级要求
  25. </view>
  26. <view class="line1">
  27. </view>
  28. <view class="justify_center text">
  29. <view class="text-item">
  30. 仍需至少注册
  31. </view>
  32. <view class="">
  33. 5
  34. </view>
  35. </view>
  36. </view>
  37. <view class="">
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. </script>
  43. <style lang="scss">
  44. .box {
  45. width: 100vw;
  46. height: 100vh;
  47. background: linear-gradient(180deg, #ffbf60, #ffe6bf, #F5F5F7 433rpx);
  48. padding: 1% 2%;
  49. .level {
  50. display: flex;
  51. }
  52. .flex {
  53. flex-direction: column;
  54. justify-content: center;
  55. align-items: flex-start;
  56. }
  57. .picture {
  58. width: 139rpx;
  59. height: 139rpx;
  60. background-color: green;
  61. margin: 30rpx 20rpx 30rpx 30rpx;
  62. }
  63. .name {
  64. font-size: 32rpx;
  65. margin-bottom: 15rpx;
  66. }
  67. .title {
  68. width: 143rpx;
  69. height: 38rpx;
  70. background-color: #FFA848;
  71. font-size: 22rpx;
  72. border: 1rpx solid #FFFFFF;
  73. line-height: 36rpx;
  74. color: #FFFFFF;
  75. justify-content: center;
  76. margin-right: 15rpx;
  77. }
  78. .time {
  79. color: #A55822;
  80. font-size: 22rpx;
  81. line-height: 36rpx;
  82. }
  83. .center {
  84. width: 718rpx;
  85. height: 259rpx;
  86. background-color: #FFFFFF;
  87. padding: 0 4%;
  88. .line1 {
  89. position: relative;
  90. margin-bottom: 50rpx;
  91. &::before {
  92. position: absolute;
  93. top: 25rpx;
  94. left: 0;
  95. content: "";
  96. width: 660rpx;
  97. height: 1rpx;
  98. background-color: #F5F5F7;
  99. // background-color: red;
  100. }
  101. }
  102. }
  103. .box-size {
  104. box-sizing: border-box;
  105. }
  106. .justify_center {
  107. // 水平、垂直方向均居中
  108. display: grid;
  109. place-items: center;
  110. }
  111. .text {
  112. width: 660rpx;
  113. height: auto;
  114. line-height: 60rpx;
  115. font-size: 30rpx;
  116. // background-color: red;
  117. .text-item {
  118. color: #999999;
  119. font-size: 28rpx;
  120. }
  121. }
  122. }
  123. </style>