|
@@ -0,0 +1,293 @@
|
|
|
|
+<template>
|
|
|
|
+ <view>
|
|
|
|
+ <u-navbar title="节省公用电费收入" title-color="#101010"></u-navbar>
|
|
|
|
+ <!-- 标签 -->
|
|
|
|
+ <view class="tabs">
|
|
|
|
+ <u-picker v-model="tabShow1" mode="selector" :default-selector="[0]" :range="selector"></u-picker>
|
|
|
|
+ <u-picker v-model="tabShow2" mode="time"></u-picker>
|
|
|
|
+ <view class="tabsItem" @click="tabShow1=!tabShow1">AB栋 <u-icon name="arrow-up"
|
|
|
|
+ v-if="tabShow1"></u-icon><u-icon v-else name="arrow-down"></u-icon></view>
|
|
|
|
+ <view class="tabsItem" @click="tabShow2=!tabShow2">2024-06 <u-icon name="arrow-up" v-if="tabShow2">
|
|
|
|
+ 2024-06</u-icon><u-icon v-else name="arrow-down"></u-icon></view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 统计 -->
|
|
|
|
+ <view class="statistics">
|
|
|
|
+ <view class="total-group">
|
|
|
|
+ <view class="statistics-total1">
|
|
|
|
+ <view class="total-title">
|
|
|
|
+ 节省电费
|
|
|
|
+ </view>
|
|
|
|
+ <view class="total-number">
|
|
|
|
+ 108.25元
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="statistics-total2">
|
|
|
|
+ <view class="total-title">
|
|
|
|
+ 节省电量
|
|
|
|
+ </view>
|
|
|
|
+ <view class="total-number">
|
|
|
|
+ 125.33度
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <view class="statistics-group">
|
|
|
|
+ <view class="statistics-item">
|
|
|
|
+ <view class="item-top">
|
|
|
|
+ <view class="content">
|
|
|
|
+ <!-- 电费 -->
|
|
|
|
+ <view class="electricity">
|
|
|
|
+ <view class="electricity-title">
|
|
|
|
+ 电梯电表节省电费
|
|
|
|
+ </view>
|
|
|
|
+ <view class="electricity-number">
|
|
|
|
+ 108.25元
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 节省度数 -->
|
|
|
|
+ <view class="electric-quantity">
|
|
|
|
+ <view class="electric-quantity-title">
|
|
|
|
+ 节省度数
|
|
|
|
+ </view>
|
|
|
|
+ <view class="electric-quantity-number">
|
|
|
|
+ 125.33度
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="icon" @click="detail=!detail" >
|
|
|
|
+
|
|
|
|
+ <u-icon name="arrow-up" v-if="detail" color="#acacac" size="24"></u-icon>
|
|
|
|
+ <u-icon name="arrow-down" v-else color="#acacac" size="24"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- 详情 -->
|
|
|
|
+ <view class="detail" v-if="detail">
|
|
|
|
+ <view class="item" v-for="item in 3" >
|
|
|
|
+ <!-- 时间段 -->
|
|
|
|
+ <view class="time-slot">
|
|
|
|
+ <view class="title">
|
|
|
|
+ 06-30 21:00-24:00
|
|
|
|
+ </view>
|
|
|
|
+ <view class="value">
|
|
|
|
+ 0.5元
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 总计 -->
|
|
|
|
+ <view class="total">
|
|
|
|
+ <view class="total-time">
|
|
|
|
+ 3小时
|
|
|
|
+ </view>
|
|
|
|
+ <view class="total-degrees">
|
|
|
|
+ 1度
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="statistics-item" v-for="item in 8" >
|
|
|
|
+ <view class="item-top">
|
|
|
|
+ <view class="content">
|
|
|
|
+ <!-- 电费 -->
|
|
|
|
+ <view class="electricity">
|
|
|
|
+ <view class="electricity-title">
|
|
|
|
+ 电梯电表节省电费
|
|
|
|
+ </view>
|
|
|
|
+ <view class="electricity-number">
|
|
|
|
+ 108.25元
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 节省度数 -->
|
|
|
|
+ <view class="electric-quantity">
|
|
|
|
+ <view class="electric-quantity-title">
|
|
|
|
+ 节省度数
|
|
|
|
+ </view>
|
|
|
|
+ <view class="electric-quantity-number">
|
|
|
|
+ 125.33度
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="icon" @click="detail=!detail" >
|
|
|
|
+
|
|
|
|
+ <u-icon name="arrow-up" v-if="detail" color="#acacac" size="24"></u-icon>
|
|
|
|
+ <u-icon name="arrow-down" v-else color="#acacac" size="24"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ export default {
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ tabShow1: false,
|
|
|
|
+ tabShow2: false,
|
|
|
|
+ detail:true,
|
|
|
|
+ selector: [1, 2, 3],
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style>
|
|
|
|
+ page {
|
|
|
|
+ padding-bottom: 100px;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ }
|
|
|
|
+</style>
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+ // 标签
|
|
|
|
+ .tabs {
|
|
|
|
+
|
|
|
|
+ height: 96rpx;
|
|
|
|
+ line-height: 96rpx;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ border-top: 1px solid rgba(241, 241, 241, 1);
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-around;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 统计
|
|
|
|
+ .statistics {
|
|
|
|
+
|
|
|
|
+ .total-group {
|
|
|
|
+ background-color: rgba(22, 119, 255, 1);
|
|
|
|
+ padding: 24rpx 32rpx
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .statistics-total1 {
|
|
|
|
+
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ margin-bottom: 4rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .statistics-total2 {
|
|
|
|
+
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ .statistics-group {
|
|
|
|
+
|
|
|
|
+ .statistics-item {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ border-bottom: 1px solid rgba(245, 245, 245, 1);
|
|
|
|
+
|
|
|
|
+ .item-top {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ padding: 24rpx 32rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .content {
|
|
|
|
+ flex: 0.99;
|
|
|
|
+
|
|
|
|
+ // 电费
|
|
|
|
+ .electricity {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+
|
|
|
|
+ .electricity-title {
|
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .electricity-number {
|
|
|
|
+ color: rgba(22, 119, 255, 1);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 电量
|
|
|
|
+ .electric-quantity {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ color: rgba(119, 119, 119, 1);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .detail {
|
|
|
|
+ background-color: rgba(242, 242, 242, 1);
|
|
|
|
+
|
|
|
|
+ .item {
|
|
|
|
+ padding: 24rpx 48rpx 24rpx 76rpx;
|
|
|
|
+ border-bottom: 1px solid rgba(234,234,234,1);
|
|
|
|
+ // 时间段
|
|
|
|
+ .time-slot{
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ .title{
|
|
|
|
+ color: rgba(51,51,51,1);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .value{
|
|
|
|
+ color: rgba(22,119,255,1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // 总计
|
|
|
|
+ .total{
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ .total-time{
|
|
|
|
+ color: rgba(119,119,119,1);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .total-degrees{
|
|
|
|
+ color: rgba(119,119,119,1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</style>
|