ranking.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /* compontents/ranking/ranking.wxss */
  2. .ranking {
  3. position: relative;
  4. width: 100%;
  5. margin: 20rpx 0;
  6. border-radius: 25rpx;
  7. padding: 28rpx 28rpx 80rpx 28rpx;
  8. box-sizing: border-box;
  9. background: #fff;
  10. }
  11. .ranking .title text{
  12. font-size: 36rpx;
  13. font-weight: 600;
  14. }
  15. .my-rank {
  16. position: relative;
  17. height: 266rpx;
  18. }
  19. .head-rank {
  20. text-align: center;
  21. }
  22. .my-rank .head-rank:nth-child(1) {
  23. position: absolute;
  24. left: 120rpx;
  25. top: 0rpx;
  26. width: 116rpx;
  27. }
  28. .my-rank .head-rank:nth-child(2) {
  29. position: absolute;
  30. left: 295rpx;
  31. top: 0rpx;
  32. width: 136rpx;
  33. }
  34. .my-rank .head-rank:nth-child(3) {
  35. position: absolute;
  36. left: 485rpx;
  37. top: 0rpx;
  38. width: 116rpx;
  39. }
  40. .my-rank .head-rank:nth-child(even) .head{
  41. position: absolute;
  42. left: 0;
  43. top: 0;
  44. z-index: 9;
  45. width: 136rpx;
  46. height: 200rpx;
  47. }
  48. .my-rank .head-rank:nth-child(odd) .head{
  49. position: absolute;
  50. left: 0;
  51. top: 30rpx;
  52. z-index: 9;
  53. width: 116rpx;
  54. height: 172rpx;
  55. }
  56. .bg {
  57. width: 100%;
  58. height: 100%;
  59. }
  60. .my-rank .head-rank:nth-child(even) .big-head-img{
  61. position: absolute;
  62. left: 5rpx;
  63. top: 55rpx;
  64. border-radius: 50%;
  65. width: 130rpx;
  66. height: 130rpx;
  67. }
  68. .my-rank .head-rank:nth-child(odd) .big-head-img{
  69. position: absolute;
  70. left: 2rpx;
  71. top: 75rpx;
  72. border-radius: 50%;
  73. width: 112rpx;
  74. height: 112rpx;
  75. }
  76. .txt {
  77. display: flex;
  78. flex-direction: column;
  79. align-items: center;
  80. margin-top: 200rpx;
  81. }
  82. .name {
  83. font-size: 24rpx;
  84. }
  85. .medal-num {
  86. font-size: 24rpx;
  87. color: #aaa;
  88. }
  89. /* 勋章列表*/
  90. .rank-list {
  91. margin-top: 20rpx;
  92. }
  93. .rank-friend {
  94. display: flex;
  95. justify-content: space-between;
  96. align-items: center;
  97. height: 78rpx;
  98. padding: 0 20rpx;
  99. border-top: 2rpx solid #ccc;
  100. }
  101. .rank-head {
  102. display: flex;
  103. align-items: center;
  104. }
  105. .head-img {
  106. width: 60rpx;
  107. height: 60rpx;
  108. border-radius: 50%;
  109. margin: 0 22rpx 0 38rpx;
  110. }
  111. .rank-head text {
  112. font-size: 28rpx;
  113. }
  114. /* 我自己排名 */
  115. .my-rank-list {
  116. display: flex;
  117. justify-content: space-between;
  118. align-items: center;
  119. height: 78rpx;
  120. padding: 0 20rpx;
  121. background: #E1E9FE;
  122. }
  123. /*查看更多*/
  124. .particular {
  125. position: absolute;
  126. right: 30rpx;
  127. bottom: 30rpx;
  128. color: #5E86F8;
  129. font-size: 28rpx;
  130. }