index.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. .panel {
  2. position: relative;
  3. box-sizing: border-box;
  4. display: flex;
  5. flex-wrap: wrap;
  6. .head {
  7. display: flex;
  8. margin-bottom: 20rpx;
  9. .item {
  10. line-height: 40rpx;
  11. font-family: PingFang SC, PingFang SC;
  12. font-weight: 700;
  13. font-size: 28rpx;
  14. color: #333333;
  15. .iconfont {
  16. margin-left: 10rpx;
  17. }
  18. }
  19. }
  20. .explain {
  21. position: absolute;
  22. top: 20rpx;
  23. right: 20rpx;
  24. font-size: 24rpx;
  25. height: 40rpx;
  26. width: 40rpx;
  27. text-align: right;
  28. }
  29. .chart {
  30. display: flex;
  31. width: 100%;
  32. justify-content: center;
  33. margin: 20rpx 0;
  34. .circle {
  35. width: 280rpx;
  36. height: 280rpx;
  37. position: relative;
  38. border-radius: 50%;
  39. box-shadow: inset 0 0 0 20rpx var(--assist); // Adjusted thickness
  40. transform: translateZ(0);
  41. .ab {
  42. position: absolute;
  43. left: 0;
  44. right: 0;
  45. top: 0;
  46. bottom: 0;
  47. margin: auto;
  48. }
  49. &_left {
  50. border: 20rpx solid #EBEEF5;
  51. border-radius: 50%;
  52. clip-path: inset(0 50% 0 0);
  53. }
  54. &_right {
  55. border: 20rpx solid #EBEEF5;
  56. border-radius: 50%;
  57. clip-path: inset(0 0 0 50%);
  58. }
  59. &_text {
  60. height: 100%;
  61. display: flex;
  62. flex-direction: column;
  63. justify-content: center;
  64. align-items: center;
  65. font-size: 45rpx;
  66. font-family: PingFang SC-Regular, PingFang SC;
  67. color: #666666;
  68. .name {
  69. line-height: 42rpx;
  70. font-family: Microsoft YaHei, Microsoft YaHei;
  71. font-size: 32rpx;
  72. color: #999999;
  73. }
  74. .value {
  75. line-height: 42rpx;
  76. font-family: Microsoft YaHei, Microsoft YaHei;
  77. font-weight: bold;
  78. font-size: 32rpx;
  79. color: #333333;
  80. margin-top: 20rpx;
  81. }
  82. }
  83. }
  84. }
  85. .card {
  86. width: 100%;
  87. border-radius: 20rpx;
  88. border: 1rpx solid #E0E0E0;
  89. padding: 20rpx 40rpx;
  90. margin-top: 20rpx;
  91. .title {
  92. line-height: 32rpx;
  93. font-family: Microsoft YaHei, Microsoft YaHei;
  94. font-size: 24rpx;
  95. color: #999999;
  96. }
  97. .price {
  98. font-family: Microsoft YaHei, Microsoft YaHei;
  99. font-size: 24rpx;
  100. color: #3685FC;
  101. margin-top: 10rpx;
  102. text {
  103. font-size: 40rpx;
  104. margin-right: 6rpx;
  105. }
  106. }
  107. .row {
  108. line-height: 32rpx;
  109. font-family: Microsoft YaHei, Microsoft YaHei;
  110. font-size: 24rpx;
  111. color: #999999;
  112. margin-top: 6rpx;
  113. .increase,
  114. .decrease {
  115. display: inline-block;
  116. width: 0;
  117. height: 0;
  118. border-left: 8rpx solid transparent;
  119. border-right: 8rpx solid transparent;
  120. margin-left: 10rpx;
  121. }
  122. .increase {
  123. border-bottom: 14rpx solid #009966;
  124. }
  125. .decrease {
  126. border-top: 14rpx solid #EF0606;
  127. }
  128. }
  129. }
  130. }