index.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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: 70rpx;
  108. }
  109. .rank {
  110. display: flex;
  111. justify-content: space-between;
  112. font-size: 28rpx;
  113. margin-top: 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. flex: 1;
  145. display: flex;
  146. flex-direction: column;
  147. justify-content: center;
  148. align-items: center;
  149. margin-right: 15rpx;
  150. }
  151. .img image {
  152. width: 140rpx;
  153. height: 140rpx;
  154. }
  155. .img text {
  156. font-size: 28rpx;
  157. color: #878787;
  158. margin-top: 10rpx;
  159. }
  160. .personal .particulars text:nth-child(1) {
  161. font-size: 24rpx;
  162. color: #878787;
  163. }
  164. .personal .particulars text:nth-child(2) {
  165. font-size: 28rpx;
  166. color: #000;
  167. font-weight: 600;
  168. }
  169. .questions, .share {
  170. width: 100%;
  171. margin-top: 40rpx;
  172. }
  173. .questions text, .share text {
  174. width: 100%;
  175. display: inline-block;
  176. border: 1px solid #ccc;
  177. background: #fff;
  178. }
  179. .questions view, .share view {
  180. height: 1400rpx;
  181. margin-top: 20rpx;
  182. background: red;
  183. }
  184. .adsorb {
  185. position: fixed;
  186. left: 0;
  187. top: 84rpx;
  188. }