123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <template>
- <view>
- <u-navbar title="用电量分析" title-color="#101010"></u-navbar>
- <view class="background">
- <!-- 选择电表 -->
- <view class="unit">
- <view class="title">
- 选择查询电表
- </view>
- <view class="value">
- <view class="text">
- 荆鹏软件园-AB栋-电梯电表
- </view>
- <view class="icon">
- <u-icon name="arrow-down" color="#999999" size="32" ></u-icon>
- </view>
- </view>
- </view>
-
- <view class="main">
- <view class="title">
- <view class="icon">
-
- </view>
- <view class="text">
- 各时段平均用电量 (度)
- </view>
- <view class="date" @click="timeShow=true">
- <text>2024年5月</text><u-icon name="arrow-down" ></u-icon>
- </view>
- </view>
- <!-- 图表 -->
- <view class="chart">
- <img src="@/assets/img/chart@1x.png" alt="" />
- </view>
- <view class="total">
- 5月每日平均用电量: 21.08度
- </view>
- <!-- 备注 -->
- <view class="remark">
- <p>备注说明:</p>
-
- 电表设备的各时段平均用电量,采集自设备不断电状态下一个月内的每日各时段用电量平均值,作为平均用电量数据基准,以此作为智能停电节省电费的数据支撑。
- </view>
- </view>
- </view>
- <u-picker v-model="timeShow" mode="time"></u-picker>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- timeShow:false,
- }
- },
- methods: {
-
- }
- }
- </script>
- <style>
- page{
- padding-bottom: 100px;
- }
- </style>
- <style lang="scss" scoped>
- .background {
- background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(22,119,255,0) 100%);
- padding: 32rpx 0;
- height: 720rpx;
- .unit {
- background-color: #fff;
- margin: 0 32rpx;
- border-radius: 8px;
- padding: 32rpx;
- .title {
- color: rgba(153, 153, 153, 1);
- }
- .value {
- color: rgba(51, 51, 51, 1);
- font-size: 40rpx;
- margin-top: 16rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-weight: bold;
- }
- }
-
- .main{
- background-color: #fff;
- border-radius: 8px;
- padding: 32rpx ;
- margin: 32rpx;
- .title{
- display: flex;
- align-items: center;
-
- margin-bottom: 20px;
- .icon{
- width: 36rpx;
- height: 36rpx;
- background-color: #b6d4ff;
- border: 6px solid #1677ff;
- border-radius: 100px;
- }
- .text{
- color: #333333;
- font-size: 36rpx;
- margin-left: 16rpx;
- font-weight: bold;
- }
- .date{
- margin-left: auto;
- border: 1px solid #bbbbbb;
- border-radius: 4px;
- padding: 4px;
- font-size: 12px;
- text{
- margin-right: 8rpx;
- }
- }
- }
- // 图标
- .chart{
- img{
- width: 100%;
- height: 440rpx;
- }
- }
- }
-
- .total{
- color: rgba(51,51,51,1);
- text-align: center;
- font-weight: bold;
- }
-
- // 备注
- .remark {
- padding: 40rpx 24rpx;
- margin-top: 24rpx;
- border-radius: 8px;
- background-color: rgba(242, 244, 246, 1);
- color: rgba(16, 16, 16, 1);
- font-size: 24rpx;
- line-height: 34rpx;
- }
- }
- </style>
|