ranking.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. .my-rank .head-rank-0 {
  20. position: absolute;
  21. left: 120rpx;
  22. top: 0rpx;
  23. width: 116rpx;
  24. text-align: center;
  25. }
  26. .my-rank .head-rank-1 {
  27. position: absolute;
  28. left: 295rpx;
  29. top: 0rpx;
  30. width: 136rpx;
  31. text-align: center;
  32. }
  33. .my-rank .head-rank-2 {
  34. position: absolute;
  35. left: 485rpx;
  36. top: 0rpx;
  37. width: 116rpx;
  38. text-align: center;
  39. }
  40. .my-rank .head-rank-1 .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-0 .head,
  49. .my-rank .head-rank-2 .head {
  50. position: absolute;
  51. left: 0;
  52. top: 30rpx;
  53. z-index: 9;
  54. width: 116rpx;
  55. height: 172rpx;
  56. }
  57. .bg {
  58. width: 100%;
  59. height: 100%;
  60. }
  61. .my-rank .head-rank-1 .big-head-img{
  62. position: absolute;
  63. left: 5rpx;
  64. top: 55rpx;
  65. border-radius: 50%;
  66. width: 130rpx;
  67. height: 130rpx;
  68. }
  69. .my-rank .head-rank-0 .big-head-img,
  70. .my-rank .head-rank-2 .big-head-img {
  71. position: absolute;
  72. left: 2rpx;
  73. top: 75rpx;
  74. border-radius: 50%;
  75. width: 112rpx;
  76. height: 112rpx;
  77. }
  78. .txt {
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. margin-top: 200rpx;
  83. }
  84. .name {
  85. width: 100%;
  86. font-size: 28rpx;
  87. word-break:keep-all;/* 不换行 */
  88. white-space:nowrap;/* 不换行 */
  89. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  90. text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  91. }
  92. .medal-num {
  93. font-size: 28rpx;
  94. color: #878787;
  95. }
  96. /* 勋章列表*/
  97. .rank-list {
  98. overflow: hidden;
  99. margin-top: 20rpx;
  100. }
  101. .rank-friend {
  102. display: flex;
  103. justify-content: space-between;
  104. align-items: center;
  105. height: 79rpx;
  106. padding: 0 20rpx;
  107. border-top: 2rpx solid #ccc;
  108. }
  109. .rank-head {
  110. display: flex;
  111. align-items: center;
  112. }
  113. .head-img {
  114. width: 60rpx;
  115. height: 60rpx;
  116. border-radius: 50%;
  117. margin: 0 22rpx 0 38rpx;
  118. }
  119. .rank-text {
  120. width: 86rpx;
  121. text-align: center;
  122. }
  123. .rank-head text {
  124. font-size: 28rpx;
  125. }
  126. /* 我自己排名 */
  127. .my-rank-list {
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. height: 79rpx;
  132. padding: 0 20rpx;
  133. background: #E1E9FE;
  134. }
  135. /*查看更多*/
  136. .particular {
  137. position: absolute;
  138. right: 30rpx;
  139. bottom: 30rpx;
  140. color: #5E86F8;
  141. font-size: 28rpx;
  142. }