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. }
  26. .my-rank .head-rank-1 {
  27. position: absolute;
  28. left: 295rpx;
  29. top: 0rpx;
  30. width: 136rpx;
  31. text-align: center;
  32. word-break:keep-all;/* 不换行 */
  33. white-space:nowrap;/* 不换行 */
  34. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  35. text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  36. }
  37. .my-rank .head-rank-2 {
  38. position: absolute;
  39. left: 485rpx;
  40. top: 0rpx;
  41. width: 116rpx;
  42. text-align: center;
  43. word-break:keep-all;/* 不换行 */
  44. white-space:nowrap;/* 不换行 */
  45. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  46. text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  47. }
  48. .my-rank .head-rank-1 .head{
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. z-index: 9;
  53. width: 136rpx;
  54. height: 200rpx;
  55. }
  56. .my-rank .head-rank-0 .head,
  57. .my-rank .head-rank-2 .head {
  58. position: absolute;
  59. left: 0;
  60. top: 30rpx;
  61. z-index: 9;
  62. width: 116rpx;
  63. height: 172rpx;
  64. }
  65. .bg {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. .my-rank .head-rank-1 .big-head-img{
  70. position: absolute;
  71. left: 5rpx;
  72. top: 55rpx;
  73. border-radius: 50%;
  74. width: 130rpx;
  75. height: 130rpx;
  76. }
  77. .my-rank .head-rank-0 .big-head-img,
  78. .my-rank .head-rank-2 .big-head-img {
  79. position: absolute;
  80. left: 2rpx;
  81. top: 75rpx;
  82. border-radius: 50%;
  83. width: 112rpx;
  84. height: 112rpx;
  85. }
  86. .txt {
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. margin-top: 200rpx;
  91. }
  92. .name {
  93. width: 100%;
  94. font-size: 24rpx;
  95. word-break:keep-all;/* 不换行 */
  96. white-space:nowrap;/* 不换行 */
  97. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  98. text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  99. }
  100. .medal-num {
  101. font-size: 24rpx;
  102. color: #aaa;
  103. }
  104. /* 勋章列表*/
  105. .rank-list {
  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. }