electricityConsumptionAnalysis.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <view>
  3. <u-navbar title="用电量分析" title-color="#101010"></u-navbar>
  4. <view class="background">
  5. <!-- 选择电表 -->
  6. <view class="unit">
  7. <view class="title">
  8. 选择查询电表
  9. </view>
  10. <view class="value">
  11. <view class="text">
  12. 荆鹏软件园-AB栋-电梯电表
  13. </view>
  14. <view class="icon">
  15. <u-icon name="arrow-down" color="#999999" size="32" ></u-icon>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="main">
  20. <view class="title">
  21. <view class="icon">
  22. </view>
  23. <view class="text">
  24. 各时段平均用电量 (度)
  25. </view>
  26. <view class="date" @click="timeShow=true">
  27. <text>2024年5月</text><u-icon name="arrow-down" ></u-icon>
  28. </view>
  29. </view>
  30. <!-- 图表 -->
  31. <view class="chart">
  32. <img src="@/assets/img/chart@1x.png" alt="" />
  33. </view>
  34. <view class="total">
  35. 5月每日平均用电量: 21.08度
  36. </view>
  37. <!-- 备注 -->
  38. <view class="remark">
  39. <p>备注说明:</p>
  40. 电表设备的各时段平均用电量,采集自设备不断电状态下一个月内的每日各时段用电量平均值,作为平均用电量数据基准,以此作为智能停电节省电费的数据支撑。
  41. </view>
  42. </view>
  43. </view>
  44. <u-picker v-model="timeShow" mode="time"></u-picker>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. timeShow:false,
  52. }
  53. },
  54. methods: {
  55. }
  56. }
  57. </script>
  58. <style>
  59. page{
  60. padding-bottom: 100px;
  61. }
  62. </style>
  63. <style lang="scss" scoped>
  64. .background {
  65. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(22,119,255,0) 100%);
  66. padding: 32rpx 0;
  67. height: 720rpx;
  68. .unit {
  69. background-color: #fff;
  70. margin: 0 32rpx;
  71. border-radius: 8px;
  72. padding: 32rpx;
  73. .title {
  74. color: rgba(153, 153, 153, 1);
  75. }
  76. .value {
  77. color: rgba(51, 51, 51, 1);
  78. font-size: 40rpx;
  79. margin-top: 16rpx;
  80. display: flex;
  81. align-items: center;
  82. justify-content: space-between;
  83. font-weight: bold;
  84. }
  85. }
  86. .main{
  87. background-color: #fff;
  88. border-radius: 8px;
  89. padding: 32rpx ;
  90. margin: 32rpx;
  91. .title{
  92. display: flex;
  93. align-items: center;
  94. margin-bottom: 20px;
  95. .icon{
  96. width: 36rpx;
  97. height: 36rpx;
  98. background-color: #b6d4ff;
  99. border: 6px solid #1677ff;
  100. border-radius: 100px;
  101. }
  102. .text{
  103. color: #333333;
  104. font-size: 36rpx;
  105. margin-left: 16rpx;
  106. font-weight: bold;
  107. }
  108. .date{
  109. margin-left: auto;
  110. border: 1px solid #bbbbbb;
  111. border-radius: 4px;
  112. padding: 4px;
  113. font-size: 12px;
  114. text{
  115. margin-right: 8rpx;
  116. }
  117. }
  118. }
  119. // 图标
  120. .chart{
  121. img{
  122. width: 100%;
  123. height: 440rpx;
  124. }
  125. }
  126. }
  127. .total{
  128. color: rgba(51,51,51,1);
  129. text-align: center;
  130. font-weight: bold;
  131. }
  132. // 备注
  133. .remark {
  134. padding: 40rpx 24rpx;
  135. margin-top: 24rpx;
  136. border-radius: 8px;
  137. background-color: rgba(242, 244, 246, 1);
  138. color: rgba(16, 16, 16, 1);
  139. font-size: 24rpx;
  140. line-height: 34rpx;
  141. }
  142. }
  143. </style>