<template>
	<view>
		<u-navbar title="归零记录" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
			height='36'></u-navbar>
			<view class="cont">
				<view class="card" v-for="(item,index) in gllist" :key="index">
					<view class="left">
						<image src="https://api.ccttiot.com/smartmeter/img/static/uGaAuulryhDmaDwWLuwo" mode=""></image>
					</view>
					<view class="card_cont">
						<view class="text">{{item.deviceId}}号电表   归零时剩余电量{{item.surplusElectriQuantity}}</view>
						<view class="txt">
							{{item.createTime}}
						</view>
					</view>
					<view class="card_right">
						{{item.totalElectriQuantity}}度
					</view>
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bgc: {
					backgroundColor: "#F7FAFE",
				},
				gllist:[]
				
			}
		},
		onShow() {
			this.glrecord()
		},
		methods: {
			tobd(){
				uni.navigateTo({
					url:''
				})
			},
			glrecord(){
				this.$u.get('/app/reset/list' ).then((res) => {
					if (res.code == 200) {
						console.log(res)
						this.gllist=res.rows
					}
				})
			}
		}
	}
</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>
