badges.wxss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /* pages/badges/badges.wxss */
  2. .head{
  3. width: 750rpx;
  4. height: 380rpx;
  5. display: flex;
  6. flex-direction: column;
  7. display: flex;
  8. justify-content: center;
  9. align-items: center;
  10. position: relative;
  11. }
  12. .head>image:nth-child(1){
  13. width: 48rpx;
  14. height: 48rpx;
  15. position: absolute;
  16. top: 108rpx;
  17. left: 16rpx;
  18. }
  19. .head>image:nth-child(2){
  20. width: 132rpx;
  21. height: 132rpx;
  22. border-radius: 50%;
  23. border: 6rpx solid #fff;
  24. margin-bottom: 16rpx;
  25. margin-top: 132rpx;
  26. }
  27. .head>text:nth-child(3){
  28. width: auto;
  29. height: 48rpx;
  30. font-size: 34rpx;
  31. font-family: PingFangSC-Medium, PingFang SC;
  32. font-weight: 500;
  33. color: #FFFFFF;
  34. line-height: 48rpx;
  35. margin-bottom: 20rpx;
  36. }
  37. .badges-tab{
  38. width: 702rpx;
  39. height: 96rpx;
  40. background: #F7F7F7;
  41. border-radius: 4px 4px 0px 0px;
  42. margin: 0 24rpx;
  43. display: flex;
  44. flex-direction: row;
  45. }
  46. .tab-item{
  47. display: flex;
  48. flex-direction: column-reverse;
  49. align-items: center;
  50. width: 351rpx;
  51. height: 96rpx;
  52. }
  53. .tab-item>text:nth-child(1){
  54. width: 48rpx;
  55. height: 2px;
  56. background: #F7F7F7;
  57. border-radius: 1px;
  58. margin-top: 22rpx;
  59. }
  60. .tab-item>text:nth-child(2){
  61. width: 240rpx;
  62. height: 44rpx;
  63. font-size: 30rpx;
  64. font-family: PingFangSC-Regular, PingFang SC;
  65. font-weight: 400;
  66. color: rgba(0,0,0,0.87);
  67. line-height: 44rpx;
  68. text-align: center;
  69. }
  70. .badges-box{
  71. width: 702rpx;
  72. min-height: 1148rpx;
  73. background: #FFFFFF;
  74. margin: 0 24rpx;
  75. display: flex;
  76. flex-direction: column;
  77. }
  78. .badges-head{
  79. width: 702rpx;
  80. height: 44rpx;
  81. margin-top: 50rpx;
  82. display: flex;
  83. flex-direction: row;
  84. }
  85. .badges-head>text:nth-child(1){
  86. width: auto;
  87. height: 44rpx;
  88. font-size: 30rpx;
  89. font-family: PingFangSC-Medium, PingFang SC;
  90. font-weight: 500;
  91. color: rgba(0,0,0,0.87);
  92. line-height: 44rpx;
  93. margin-left: 40rpx;
  94. margin-right: auto;
  95. }
  96. .badges-head>text:nth-child(2){
  97. width: auto;
  98. height: 44rpx;
  99. font-size: 26rpx;
  100. font-family: PingFangSC-Regular, PingFang SC;
  101. font-weight: 400;
  102. color: rgba(0,0,0,0.4);
  103. line-height: 44rpx;
  104. }
  105. .badges-head>image:nth-child(3){
  106. width: 44rpx;
  107. height: 44rpx;
  108. margin-right: 24rpx;
  109. }
  110. .badges-list{
  111. width: 672rpx;
  112. height: auto;
  113. display: flex;
  114. flex-flow: row wrap;
  115. margin: 64rpx 16rpx;
  116. }
  117. .badges-items{
  118. position: relative;
  119. width: 144rpx;
  120. height: 204rpx;
  121. display: flex;
  122. flex-direction: column;
  123. margin: 0 40rpx 64rpx;
  124. }
  125. .badges-items>image:nth-child(1){
  126. width: 144rpx;
  127. height: 144rpx;
  128. border-radius: 50%;
  129. margin-bottom: 16rpx;
  130. }
  131. .badges-items>text:nth-child(2){
  132. width: 144rpx;
  133. height: 44rpx;
  134. font-size: 26rpx;
  135. font-family: PingFangSC-Regular, PingFang SC;
  136. font-weight: 400;
  137. color: rgba(0,0,0,0.87);
  138. line-height: 44rpx;
  139. text-align: center;
  140. }
  141. .badges-lock{
  142. position: absolute;
  143. top: 108rpx;
  144. left: 14rpx;
  145. display: flex;
  146. flex-direction: row;
  147. justify-content: center;
  148. align-items: center;
  149. width: 116rpx;
  150. height: 36rpx;
  151. background: #FFFFFF;
  152. box-shadow: 0px 1px 2px 0px rgba(196,196,196,0.4);
  153. border-radius: 9px;
  154. }
  155. .badges-lock>image:nth-child(1){
  156. width: 24rpx;
  157. height: 24rpx;
  158. }
  159. .badges-lock>text:nth-child(2){
  160. width: 64rpx;
  161. height: 28rpx;
  162. font-size: 20rpx;
  163. font-family: PingFangSC-Semibold, PingFang SC;
  164. font-weight: 600;
  165. color: #3A51A6;
  166. line-height: 28rpx;
  167. }
  168. .rules-box{
  169. width: 100vw;
  170. height: 100vh;
  171. position: fixed;
  172. top: 0;
  173. z-index: 888;
  174. }
  175. .rules-bg{
  176. width: 100vw;
  177. height: 100vh;
  178. position: absolute;
  179. bottom: 0;
  180. z-index: 999;
  181. background-color: rgba(0,0,0,0.6);
  182. }
  183. .rules-view{
  184. position: absolute;
  185. bottom: 0;
  186. z-index: 1000;
  187. width: 750rpx;
  188. height: auto;
  189. background: #FFFFFF;
  190. border-radius: 16px 16px 0px 0px;
  191. padding-bottom: env(safe-area-inset-bottom);
  192. }
  193. .rules-title{
  194. width: 654rpx;
  195. height: 52rpx;
  196. display: flex;
  197. justify-content: space-between;
  198. margin: 48rpx 48rpx 32rpx;
  199. }
  200. .rules-title>text:nth-child(1){
  201. width: auto;
  202. height: 52rpx;
  203. font-size: 38rpx;
  204. font-family: PingFangSC-Medium, PingFang SC;
  205. font-weight: 500;
  206. color: rgba(0,0,0,0.87);
  207. line-height: 52rpx;
  208. }
  209. .rules-title>image:nth-child(2){
  210. width: 48rpx;
  211. height: 48rpx;
  212. margin-top: -4rpx;
  213. margin-right: -8rpx;
  214. }
  215. .rules-item{
  216. margin: 0 48rpx;
  217. width: 654rpx;
  218. height: auto;
  219. font-size: 30rpx;
  220. font-family: PingFangSC-Regular, PingFang SC;
  221. font-weight: 400;
  222. color: rgba(0,0,0,0.6);
  223. line-height: 56rpx;
  224. margin-bottom: 56rpx;
  225. }