dashboard.wxss 4.8 KB

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