index.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /**index.wxss**/
  2. /* 隐藏内容 */
  3. .none {
  4. display: none;
  5. }
  6. .my {
  7. width: 100%;
  8. padding: 0 15rpx;
  9. box-sizing: border-box;
  10. }
  11. .message,
  12. .medal,
  13. .ranking {
  14. width: 100%;
  15. margin: 20rpx 0;
  16. border-radius: 25rpx;
  17. padding: 32rpx 24rpx;
  18. box-sizing: border-box;
  19. background: #fff;
  20. }
  21. .user {
  22. display: flex;
  23. justify-content: space-between;
  24. border-bottom: 2rpx solid #CDCED3;
  25. padding-bottom: 20rpx;
  26. }
  27. .head {
  28. display: flex;
  29. align-items: center;
  30. }
  31. .left {
  32. display: flex;
  33. flex-direction: column;
  34. justify-content: center;
  35. width: 340rpx;
  36. word-break:keep-all;/* 不换行 */
  37. white-space:nowrap;/* 不换行 */
  38. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  39. text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  40. margin-left: 34rpx;
  41. }
  42. .userinfo-avatar {
  43. width: 86rpx;
  44. height: 86rpx;
  45. border-radius: 50%;
  46. }
  47. .name {
  48. height:44rpx;
  49. font-size: 36rpx;
  50. font-weight: 600;
  51. }
  52. .LV {
  53. position: absolute;
  54. right:100rpx;
  55. top:110rpx;
  56. font-size: 24rpx;
  57. }
  58. .student {
  59. height:34rpx;
  60. font-size: 28rpx;
  61. color: #8C8C8C;
  62. margin-top: 10rpx;
  63. }
  64. .grade {
  65. width: 146rpx;
  66. height: 46rpx;
  67. font-size: 28rpx;
  68. font-weight: bolder;
  69. color: #878787;
  70. border: 2rpx solid #CECDD2;
  71. border-radius: 30rpx;
  72. text-align: center;
  73. line-height: 48rpx;
  74. }
  75. .personal {
  76. display: flex;
  77. margin-top: 34rpx;
  78. }
  79. .personal .particulars {
  80. flex: 1;
  81. display: flex;
  82. flex-direction: column;
  83. text-align: center;
  84. }
  85. /*排名*/
  86. .ranking {
  87. position: relative;
  88. }
  89. .ranking .title text{
  90. font-size: 36rpx;
  91. font-weight: 600;
  92. }
  93. .ranking-con {
  94. margin-bottom: 70rpx;
  95. }
  96. .rank {
  97. display: flex;
  98. justify-content: space-between;
  99. font-size: 28rpx;
  100. margin-top: 30rpx;
  101. }
  102. .particular {
  103. position: absolute;
  104. right: 30rpx;
  105. bottom: 30rpx;
  106. color: #5E86F8;
  107. font-size: 28rpx;
  108. }
  109. /*勋章*/
  110. .medal {
  111. padding: 28rpx;
  112. }
  113. .medal .title {
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: center;
  117. }
  118. .medal .title text:nth-child(1){
  119. font-size: 36rpx;
  120. font-weight: 600;
  121. }
  122. .medal .title text:nth-child(2){
  123. font-size: 28rpx;
  124. color: #878787;
  125. }
  126. .img {
  127. display: flex;
  128. margin-top: 38rpx;
  129. }
  130. .img view {
  131. flex: 1;
  132. display: flex;
  133. flex-direction: column;
  134. justify-content: center;
  135. align-items: center;
  136. }
  137. .img image {
  138. width: 100rpx;
  139. height: 100rpx;
  140. }
  141. .img text {
  142. font-size: 24rpx;
  143. color: #878787;
  144. margin-top: 10rpx;
  145. }
  146. .personal .particulars text:nth-child(1) {
  147. font-size: 24rpx;
  148. color: #8D8C91;
  149. }
  150. .personal .particulars text:nth-child(2) {
  151. font-size: 28rpx;
  152. color: #000;
  153. font-weight: 600;
  154. }
  155. .questions, .share {
  156. width: 100%;
  157. margin-top: 40rpx;
  158. }
  159. .questions text, .share text {
  160. width: 100%;
  161. display: inline-block;
  162. border: 1px solid #ccc;
  163. background: #fff;
  164. }
  165. .questions view, .share view {
  166. height: 1400rpx;
  167. margin-top: 20rpx;
  168. background: red;
  169. }
  170. .adsorb {
  171. position: fixed;
  172. left: 0;
  173. top: 84rpx;
  174. }