ranking.wxss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. margin-top: 20rpx;
  106. }
  107. .rank-friend {
  108. display: flex;
  109. justify-content: space-between;
  110. align-items: center;
  111. height: 78rpx;
  112. padding: 0 20rpx;
  113. border-top: 2rpx solid #ccc;
  114. }
  115. .rank-head {
  116. display: flex;
  117. align-items: center;
  118. }
  119. .head-img {
  120. width: 60rpx;
  121. height: 60rpx;
  122. border-radius: 50%;
  123. margin: 0 22rpx 0 38rpx;
  124. }
  125. .rank-head text {
  126. font-size: 28rpx;
  127. }
  128. /* 我自己排名 */
  129. .my-rank-list {
  130. display: flex;
  131. justify-content: space-between;
  132. align-items: center;
  133. height: 78rpx;
  134. padding: 0 20rpx;
  135. background: #E1E9FE;
  136. }
  137. /*查看更多*/
  138. .particular {
  139. position: absolute;
  140. right: 30rpx;
  141. bottom: 30rpx;
  142. color: #5E86F8;
  143. font-size: 28rpx;
  144. }