index.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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. height: 200rpx;
  130. }
  131. .img view {
  132. flex: 1;
  133. display: flex;
  134. flex-direction: column;
  135. justify-content: center;
  136. align-items: center;
  137. margin-right: 15rpx;
  138. }
  139. .img image {
  140. width: 100rpx;
  141. height: 100rpx;
  142. }
  143. .img text {
  144. font-size: 24rpx;
  145. color: #878787;
  146. margin-top: 10rpx;
  147. }
  148. .personal .particulars text:nth-child(1) {
  149. font-size: 24rpx;
  150. color: #8D8C91;
  151. }
  152. .personal .particulars text:nth-child(2) {
  153. font-size: 28rpx;
  154. color: #000;
  155. font-weight: 600;
  156. }
  157. .questions, .share {
  158. width: 100%;
  159. margin-top: 40rpx;
  160. }
  161. .questions text, .share text {
  162. width: 100%;
  163. display: inline-block;
  164. border: 1px solid #ccc;
  165. background: #fff;
  166. }
  167. .questions view, .share view {
  168. height: 1400rpx;
  169. margin-top: 20rpx;
  170. background: red;
  171. }
  172. .adsorb {
  173. position: fixed;
  174. left: 0;
  175. top: 84rpx;
  176. }