electricityStatistics.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view>
  3. <u-navbar title="用电统计" title-color="#101010" >
  4. </u-navbar>
  5. <!-- 折线图 -->
  6. <view class="chat-box">
  7. <view class="title">
  8. <view class="month">
  9. 1月 共用电
  10. </view>
  11. <view class="month-pick">
  12. 2024年1月<u-icon name="arrow-down"></u-icon>
  13. </view>
  14. </view>
  15. <view class="degree">
  16. 180.00<text class="unit">度</text>
  17. </view>
  18. <view class="chat">
  19. <image class="img" src="@/assets/img/jVzkNKE@1x.png" mode=""></image>
  20. </view>
  21. </view>
  22. <!-- 记录 -->
  23. <view class="record">
  24. <view class="total">
  25. 01月 合计用电1000.00度 624.00元
  26. </view>
  27. <view class="record-item" v-for="item in 2">
  28. <view class="item-left">
  29. <view class="number">
  30. 1月2日 用电 100.00 度
  31. </view>
  32. <view class="date">
  33. 01-03 00:01
  34. </view>
  35. </view>
  36. <view class="money">
  37. 64.4元
  38. <!-- 箭头 -->
  39. <view class="more">
  40. <u-icon name="arrow-right" color="#acacac" size="24"></u-icon>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. }
  52. },
  53. methods: {
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. // 折线图
  59. .chat-box{
  60. background: linear-gradient(180deg, rgba(203,234,255,1) 0%,rgba(255,255,255,1) 75%);
  61. padding: 24rpx 32rpx;
  62. .title{
  63. display: flex;
  64. align-items: center;
  65. justify-content: space-between;
  66. .month{
  67. color: rgba(16,16,16,1);
  68. }
  69. .month-pick{
  70. color: rgba(51,51,51,1);
  71. }
  72. }
  73. .degree{
  74. color: rgb(51,51,51);
  75. font-size: 64rpx;
  76. .unit{
  77. color: rgb(16,16,16);
  78. font-size: 28rpx;
  79. margin-left: 8rpx;
  80. }
  81. }
  82. .chat{
  83. width: 100%;
  84. height: 240rpx;
  85. margin-top: 8rpx;
  86. .img{
  87. width: 100%;
  88. height: 100%;
  89. }
  90. }
  91. }
  92. // 记录
  93. .record{
  94. .total{
  95. color: rgba(119,119,119,1);
  96. font-size: 32rpx;
  97. padding: 24rpx 32rpx;
  98. }
  99. .record-item{
  100. background-color: #fff;
  101. padding: 32rpx;
  102. display: flex;
  103. align-items: center;
  104. justify-content: space-between;
  105. border-bottom: 1px solid rgba(244,244,244,1);
  106. .item-left{
  107. .number{
  108. color: rgba(51,51,51,1);
  109. font-size: 32rpx;
  110. font-weight: bold;
  111. }
  112. .date{
  113. color: rgb(153,153,153);
  114. font-size: 24rpx;
  115. margin-top: 4rpx;
  116. }
  117. }
  118. .money{
  119. color: rgb(16,16,16);
  120. font-size: 40rpx;
  121. display: flex;
  122. align-items: center;
  123. .more{
  124. margin-left: 8rpx;
  125. }
  126. }
  127. }
  128. }
  129. </style>