dashboard.wxss 5.3 KB

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