index.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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:40rpx;
  55. top:110rpx;
  56. font-size: 28rpx;
  57. }
  58. .student {
  59. height:34rpx;
  60. font-size: 28rpx;
  61. color: #878787;
  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: #5984F7;
  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. padding-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. margin-right: 15rpx;
  137. }
  138. .img image {
  139. width: 140rpx;
  140. height: 140rpx;
  141. }
  142. .img text {
  143. font-size: 28rpx;
  144. color: #878787;
  145. margin-top: 10rpx;
  146. }
  147. .personal .particulars text:nth-child(1) {
  148. font-size: 24rpx;
  149. color: #878787;
  150. }
  151. .personal .particulars text:nth-child(2) {
  152. font-size: 28rpx;
  153. color: #000;
  154. font-weight: 600;
  155. }
  156. .questions, .share {
  157. width: 100%;
  158. margin-top: 40rpx;
  159. }
  160. .questions text, .share text {
  161. width: 100%;
  162. display: inline-block;
  163. border: 1px solid #ccc;
  164. background: #fff;
  165. }
  166. .questions view, .share view {
  167. height: 1400rpx;
  168. margin-top: 20rpx;
  169. background: red;
  170. }
  171. .adsorb {
  172. position: fixed;
  173. left: 0;
  174. top: 84rpx;
  175. }