ranking.wxss 3.3 KB

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