<template>
	<view class="container">
		<VNavigationBar title="车辆详情" background-color="#fff" title-color="#333"></VNavigationBar>
		<view class="body">
			<view class="card">
				<view class="formItem">
					<text class="formLabel">车辆照片</text>
					<image class="carImg" src="" mode="aspectFill"></image>
				</view>
				<view class="formItem">
					<text class="formLabel">车牌号</text>
					<text class="formValue">鲁A 781NB</text>
				</view>
				<view class="formItem">
					<text class="formLabel">车辆持有人</text>
					<text class="formValue">魏书豪</text>
				</view>
				<view class="formItem">
					<text class="formLabel">持有人电话</text>
					<text class="formValue">15726576890</text>
				</view>
			</view>
			<view class="card">
				<view class="formItem1">
					<view class="labelVal">
						<text class="formLabel">车辆年检时间</text>
						<text class="formValue">2024年</text>
					</view>
					<image class="formImg" src="" mode="aspectFill"></image>
				</view>
				<view class="formItem1">
					<view class="labelVal">
						<text class="formLabel">车辆保险时间</text>
						<text class="formValue">2024年</text>
					</view>
					<image class="formImg" src="" mode="aspectFill"></image>
				</view>
			</view>
		</view>
		<view class="footer">
			<view class="btnItem delete">
				<uni-icons type="trash" color="#F92C2C"></uni-icons>
				删除
			</view>
			<view class="line"></view>
			<view class="btnItem edit">
				<uni-icons type="compose" color="#0174F6"></uni-icons>
				编辑
			</view>
		</view>
	</view>
</template>

<script>
	import VNavigationBar from '@/components/VNavigationBar.vue'
	export default {
		components: {
			VNavigationBar,
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="less" scoped>
	.container {
		box-sizing: border-box;
		height: 100%;
		background-color: #F3F5F7;
		display: flex;
		flex-direction: column;

		.body {
			flex: 1;
			height: 0;
			overflow: auto;

			.card {
				margin: 20rpx 0;
				padding: 0 32rpx;
				background-color: #fff;

				.formItem {
					box-sizing: border-box;
					width: 686rpx;
					margin: 0 auto;
					padding: 40rpx;

					display: flex;
					align-items: center;
					justify-content: space-between;
					column-gap: 20rpx;

					border-bottom: 1rpx solid #DDDDDD;
					&:last-child {
						border: none;
					}
				}
				
				.labelVal {
					display: flex;
					align-items: center;
					justify-content: space-between;
					column-gap: 20rpx;
				}
				
				.formItem1 {
					box-sizing: border-box;
					width: 686rpx;
					margin: 0 auto;
					padding: 40rpx;
					border-bottom: 1rpx solid #DDDDDD;
					&:last-child {
						border: none;
					}
				}

				.formLabel {
					font-size: 32rpx;
					color: #333333;
				}

				.formValue {
					flex: 1;
					width: 0;
					text-align: right;
					font-size: 32rpx;
					color: #999999;
				}
				
				.carImg {
					width: 240rpx;
					height: 150rpx;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					background-color: #efefef;
				}
				
				.formImg {
					margin-top: 30rpx;
					width: 240rpx;
					height: 150rpx;
					border-radius: 12rpx 12rpx 12rpx 12rpx;
					background-color: #efefef;
				}
			}

		}

		.footer {
			background: #FFFFFF;
			display: flex;
			align-items: center;

			.line {
				width: 2rpx;
				background-color: #DDDDDD;
			}

			.btnItem {
				flex: 1;
				width: 0;
				padding: 34rpx 0;

				display: flex;
				align-items: center;
				justify-content: center;

				font-size: 32rpx;

				&.delete {
					color: #F92C2C;
				}

				&.edit {
					color: #0174F6;
				}
			}
		}
	}
</style>