2024-03-13 10:54:22 +08:00
|
|
|
<template>
|
|
|
|
<view>
|
2024-03-25 19:46:07 +08:00
|
|
|
<u-navbar title="归零记录" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
2024-03-13 10:54:22 +08:00
|
|
|
height='36'></u-navbar>
|
|
|
|
<view class="cont">
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="card" v-for="(item,index) in gllist" :key="index">
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="left">
|
2024-04-27 17:20:50 +08:00
|
|
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uGaAuulryhDmaDwWLuwo" mode=""></image>
|
2024-03-13 10:54:22 +08:00
|
|
|
</view>
|
|
|
|
<view class="card_cont">
|
2024-04-27 17:20:50 +08:00
|
|
|
<view class="text">{{item.deviceId}}号电表 归零时剩余电量{{item.surplusElectriQuantity}}</view>
|
2024-03-13 10:54:22 +08:00
|
|
|
<view class="txt">
|
2024-04-27 17:20:50 +08:00
|
|
|
{{item.createTime}}
|
2024-03-13 10:54:22 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="card_right">
|
2024-04-27 17:20:50 +08:00
|
|
|
{{item.totalElectriQuantity}}度
|
2024-03-13 10:54:22 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
bgc: {
|
|
|
|
backgroundColor: "#F7FAFE",
|
|
|
|
},
|
2024-04-27 17:20:50 +08:00
|
|
|
gllist:[]
|
2024-03-13 10:54:22 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
},
|
2024-04-27 17:20:50 +08:00
|
|
|
onShow() {
|
|
|
|
this.glrecord()
|
|
|
|
},
|
2024-03-13 10:54:22 +08:00
|
|
|
methods: {
|
|
|
|
tobd(){
|
|
|
|
uni.navigateTo({
|
|
|
|
url:''
|
|
|
|
})
|
2024-04-27 17:20:50 +08:00
|
|
|
},
|
|
|
|
glrecord(){
|
|
|
|
this.$u.get('/app/reset/list' ).then((res) => {
|
|
|
|
if (res.code == 200) {
|
|
|
|
console.log(res)
|
|
|
|
this.gllist=res.rows
|
|
|
|
}
|
|
|
|
})
|
2024-03-13 10:54:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" >
|
|
|
|
page{
|
|
|
|
background: #F7FAFE;
|
|
|
|
}
|
|
|
|
.cont{
|
|
|
|
width: 672rpx;
|
|
|
|
margin: 16rpx auto 0;
|
|
|
|
display: flex;
|
|
|
|
// justify-content: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
.card{
|
|
|
|
padding-left: 44rpx ;
|
|
|
|
padding-right: 38rpx;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: 16rpx;
|
|
|
|
width: 672rpx;
|
|
|
|
height: 180rpx;
|
|
|
|
background: #FFFFFF;
|
|
|
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42,130,228,0.1);
|
|
|
|
border-radius: 30rpx;
|
|
|
|
.left{
|
|
|
|
width: 58rpx;
|
|
|
|
height: 58rpx;
|
|
|
|
image{
|
|
|
|
width: 58rpx;
|
|
|
|
height: 58rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.card_cont{
|
|
|
|
width: 310rpx;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
.text{
|
|
|
|
width: 310rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 24rpx;
|
|
|
|
color: #262B37;
|
|
|
|
}
|
|
|
|
.txt{
|
|
|
|
width: 310rpx;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 24rpx;
|
|
|
|
color: #95989D;
|
|
|
|
line-height: 64rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.card_right{
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 32rpx;
|
|
|
|
color: #262B37;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|