dashboard.wxss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. /* components/dashboard/dashboard.wxss */
  2. .dashboard {
  3. width: 100%;
  4. height: 480rpx;
  5. display: flex;
  6. justify-content: center;
  7. align-items: center;
  8. background-color: #FAFCFF;
  9. }
  10. .dashboard .content {
  11. /* width: 240rpx; */
  12. width: 50%;
  13. height: 100%;
  14. margin-right: 60rpx;
  15. }
  16. .dashboard .content .count {
  17. /* width: 240rpx; */
  18. height: auto;
  19. display: flex;
  20. flex-direction: column;
  21. align-items: flex-start;
  22. /* justify-content: center; */
  23. background: rgba(255, 255, 255, 1);
  24. border-radius: 12rpx;
  25. padding: 0 24rpx;
  26. overflow: hidden;
  27. position: relative;
  28. }
  29. .dashboard .content .count .number {
  30. font-size: 66rpx;
  31. font-weight: bold;
  32. color: rgba(66, 70, 86, 0.7);
  33. line-height: 96rpx;
  34. align-self: flex-start;
  35. }
  36. .dashboard .content .count .number text {
  37. font-size: 40rpx;
  38. font-weight: bold;
  39. color: rgba(66, 70, 86, 0.7);
  40. line-height: 48rpx;
  41. letter-spacing: 10rpx;
  42. margin-top: 6rpx;
  43. }
  44. .dashboard .content .count .txt {
  45. font-size: 22rpx;
  46. font-weight: 400;
  47. color: rgba(66, 70, 86, 0.7);
  48. line-height: 32rpx;
  49. text-align: center;
  50. }
  51. .dashboard .content .item {
  52. width: 240rpx;
  53. height: 60rpx;
  54. border-radius: 12rpx;
  55. margin-top: 20rpx;
  56. display: flex;
  57. align-items: center;
  58. }
  59. .dashboard .content .item .icon {
  60. width: 20rpx;
  61. height: 20rpx;
  62. border-radius: 100%;
  63. margin: 0 20rpx 0 24rpx;
  64. }
  65. .dashboard .content .item .name {
  66. font-size: 22rpx;
  67. font-weight: 400;
  68. color: rgba(66, 70, 86, 1);
  69. }
  70. .dashboard .ruler {
  71. width: 130rpx;
  72. height: 100%;
  73. margin-left: 40rpx;
  74. }
  75. .dashboard .ruler .item {
  76. position: relative;
  77. }
  78. .dashboard .ruler .item .area {
  79. height: 100%;
  80. display: flex;
  81. align-items: center;
  82. }
  83. .dashboard .ruler .item .area .bg {
  84. height: 70%;
  85. width: 40rpx;
  86. border-radius: 4rpx;
  87. }
  88. .dashboard .ruler .item .area .scale {
  89. width: 24rpx;
  90. height: 80%;
  91. display: flex;
  92. flex-direction: column;
  93. align-items: center;
  94. justify-content: space-around;
  95. margin-left: 16rpx;
  96. }
  97. .dashboard .ruler .item .area .scale .line {
  98. display: inline-block;
  99. width: 24rpx;
  100. height: 2rpx;
  101. background: rgba(221, 223, 225, 1);
  102. }
  103. .dashboard .ruler .long-scale {
  104. position: absolute;
  105. bottom: 0;
  106. left: 0;
  107. right: 0;
  108. }
  109. .dashboard .ruler .long-scale .line {
  110. position: absolute;
  111. left: 0;
  112. bottom: 0;
  113. display: inline-block;
  114. width: 80rpx;
  115. height: 2rpx;
  116. background: rgba(221, 223, 225, 1);
  117. }
  118. .dashboard .ruler .long-scale .number {
  119. display: inline-block;
  120. position: absolute;
  121. right: 0;
  122. bottom: -17rpx;
  123. font-size: 24rpx;
  124. font-weight: 400;
  125. color: rgba(104, 107, 120, 1);
  126. line-height: 34rpx;
  127. background-color: rgba(250, 252, 255, 1);
  128. padding-left: 10rpx;
  129. }
  130. .dashboard .ruler .long-scale.top {
  131. top: 0;
  132. bottom: unset;
  133. }
  134. .wave-wrap {
  135. width: 180rpx;
  136. height: 100%;
  137. border-radius: 90rpx;
  138. box-shadow: 10rpx 20rpx 20rpx 0rpx rgba(236, 238, 245, 1), -10rpx -20rpx 20rpx 0rpx rgba(255, 255, 255, 1), 8rpx 4rpx 30rpx 0rpx rgba(247, 249, 252, 1);
  139. overflow: hidden;
  140. position: relative;
  141. background: rgba(250,252,255,1);
  142. }
  143. .wave-wrap .wave-inner {
  144. width: 100%;
  145. height: 0;
  146. position: absolute;
  147. bottom: 0;
  148. background-color: rgb(118, 218, 255);
  149. /* background: linear-gradient(360deg, #59B7FF 0%, #0091FF 80%, #59B7FF 100%); */
  150. background: linear-gradient(360deg, #59B7FF 0%, #0091FF 100%);
  151. }
  152. .wave-wrap .wave-inner .bubble {
  153. width: 100%;
  154. height: 100rpx;
  155. position: absolute;
  156. top: -5rpx;
  157. left: 0;
  158. animation-name: translate;
  159. /* animation-iteration-count: infinite;
  160. animation-timing-function: linear; */
  161. animation-duration: 4s;
  162. }
  163. .wave-wrap .before,
  164. .wave-wrap .after {
  165. position: absolute;
  166. left: 50%;
  167. width: 540rpx;
  168. height: 576rpx;
  169. border-radius: 45%;
  170. background-color: rgba(250,252,255,1);
  171. animation-name: rotate;
  172. animation-iteration-count: infinite;
  173. animation-timing-function: linear;
  174. }
  175. .wave-wrap .before {
  176. bottom: 95%;
  177. animation-duration: 10s;
  178. }
  179. .wave-wrap .after {
  180. bottom: 92%;
  181. opacity: .5;
  182. border-radius: 48%;
  183. animation-duration: 10s;
  184. }
  185. .textFlag{
  186. width: 100%;
  187. display: inline-flex;
  188. padding: 28rpx 0;
  189. margin-top: 10rpx;
  190. /* text-align: center; */
  191. flex-direction: row;
  192. justify-content: left;
  193. }
  194. .textFlag image{
  195. width: 60rpx;
  196. height: 60rpx;
  197. display: block;
  198. margin-left: 1rpx;
  199. margin-bottom: 16rpx;
  200. flex-shrink: 0;
  201. }
  202. .textFlag .textcurrentMonth{
  203. align-items: center;
  204. margin-top: 10rpx;
  205. margin-left: 15rpx;
  206. }
  207. .imgbackground{
  208. width: 288rpx;
  209. height: 120rpx;
  210. margin-bottom: 6rpx;
  211. position: absolute;
  212. bottom: 0rpx;
  213. }
  214. @keyframes rotate {
  215. 0% {
  216. transform: translate(-50%, 0) rotateZ(0deg);
  217. }
  218. 25% {
  219. transform: translate(-50%, -0.5%) rotateZ(90deg);
  220. }
  221. 50% {
  222. transform: translate(-50%, 0%) rotateZ(180deg);
  223. }
  224. 75% {
  225. transform: translate(-50%, -0.5%) rotateZ(270deg);
  226. }
  227. 100% {
  228. transform: translate(-50%, 0%) rotateZ(360deg);
  229. }
  230. }
  231. @keyframes translate {
  232. 0% {
  233. top: -5rpx;
  234. opacity: 0;
  235. }
  236. 25% {
  237. top: -25rpx;
  238. opacity: 0.7;
  239. }
  240. 50% {
  241. top: -50rpx;
  242. opacity: 0.5;
  243. }
  244. 75% {
  245. top: -80rpx;
  246. opacity: 0;
  247. }
  248. 100% {
  249. top: -5rpx;
  250. opacity: 0;
  251. }
  252. }