index.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. display: flex;
  146. flex-direction: column;
  147. justify-content: center;
  148. margin-right: 15rpx;
  149. }
  150. .no-gain {
  151. position: absolute;
  152. left: 0;
  153. top: 0;
  154. width: 142rpx;
  155. height: 142rpx;
  156. }
  157. .img image {
  158. width: 140rpx;
  159. height: 140rpx;
  160. }
  161. .img text {
  162. font-size: 28rpx;
  163. color: #878787;
  164. margin-top: 10rpx;
  165. }
  166. .personal .particulars text:nth-child(1) {
  167. font-size: 24rpx;
  168. color: #878787;
  169. }
  170. .personal .particulars text:nth-child(2) {
  171. font-size: 28rpx;
  172. color: #000;
  173. font-weight: 600;
  174. }
  175. .questions, .share {
  176. width: 100%;
  177. margin-top: 40rpx;
  178. }
  179. .questions text, .share text {
  180. width: 100%;
  181. display: inline-block;
  182. border: 1px solid #ccc;
  183. background: #fff;
  184. }
  185. .questions view, .share view {
  186. height: 1400rpx;
  187. margin-top: 20rpx;
  188. background: red;
  189. }
  190. .adsorb {
  191. position: fixed;
  192. left: 0;
  193. top: 84rpx;
  194. }
  195. .canvas-box {
  196. position: fixed;
  197. left: 999px;
  198. top: 0;
  199. width: 100%;
  200. z-index: -2;
  201. }