index.wxss 3.2 KB

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