<template>
	<view class="bg">
		<view class="title">基本信息</view>
		<u-form label-width="230" :model="state.form" ref="uForm" :label-style='labelStyle'>
			<u-form-item label="用户类型" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'
				borderBottom>
					<u-input placeholder='请输入用户类型' type="idcard" v-model="state.form.name" maxlength="18"
						inputAlign="right" />
			</u-form-item>
			<u-form-item label="车牌号" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'
				borderBottom>
				<u-input placeholder='请输入车牌号' type="idcard" v-model="state.form.name" maxlength="18"
					inputAlign="right" />
			</u-form-item>
			<u-form-item label="车牌颜色" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'
				borderBottom>
				<u-input placeholder='请输入车牌颜色' type="number" v-model="state.form.mobile" maxlength="11"
					inputAlign="right" />
			</u-form-item>
			<u-form-item label="手机号" :left-icon='`${$imgUrl}issuance/point-form.png`' :left-icon-style='leftIcon'
				borderBottom>
				<u-input placeholder='请输入手机号' type="number" v-model="state.form.mobile" maxlength="11"
					inputAlign="right" />
			</u-form-item>
		</u-form>
	</view>
	<view class="bg">
		<view class="title"> 进度信息 </view>
		<view class="dot_wrap">
			<view class="dot_wrap_left">
				<text class="dot"></text>
				<text class="line"></text>
				<text class="dot"></text>
				<text class="line"></text>
				<text class="dot"></text>
			</view>
			<view class="dot_wrap_right">
				<view class="item">
					<image :src="`${$imgUrl}issuance/direction1.png`"></image>
					<view class="destion">
						<view class="destion1">已提交申请</view>
						<view class="destion2">提交时间2024年12月11日明。</view>
					</view>
					<!-- <image :src="`${$imgUrl}issuance/direction4.png`"></image> -->
				</view>
				<view class="item">
					<image :src="`${$imgUrl}issuance/direction2.png`"></image>
					<view class="destion">
						<view class="destion1">资料审核</view>
						<view class="destion2">辅助说明</view>
					</view>
				</view>
				<view class="item" style="margin-bottom: 0;">
					<image :src="`${$imgUrl}issuance/direction3.png`"></image>
					<view class="destion">
						<view class="destion1">解除车牌占用</view>
						<view class="destion2">辅助说明</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
	import { reactive} from "vue";
	import {releasePlateaView} from "@/utils/network/api.js";
	import {requestNew} from "@/utils/network/request.js";
	import { onLoad } from "@dcloudio/uni-app";

   const leftIcon = {
   	height: '100%',
   	width: '8rpx',
   	display: 'flex',
   	'align-items': 'center',
   	'margin-right': '4rpx',
   }
const labelStyle = {
		color: "#004576",
		fontSize: "28rpx",
	}
	const state = reactive({
		form: {
			name: "",
			mobile: "",
			vehiclePlate: "",
			vehiclePlateColor: "",
			vehiclePlateColorStr:"",//车牌颜色中文
		},
	})
	onLoad((option) => {
		details(option.orderNo)
	});
	const details = (orderNo) => {
		const options = {
			type: 2,
			data: {
				orderNo
			},
			method: "POST",
			showLoading: true,
		};
		requestNew(releasePlateaView, options).then((res) => {
			console.log("列表详情",res)
		});
	};
</script>

<style lang="scss" scoped>
	.bg {
		background-color: white;
		width: 88%;
		margin: 0 auto;
		margin-top: 20rpx;
		border-radius: 12px;
		border: 1px solid #FFFFFF;
		padding: 20rpx;
		overflow: hidden;

		.title {
			font-weight: 400;
			font-size: 30rpx;
			color: #01243A;
		}

		.dot_wrap {
			display: flex;
			margin: 30rpx 0;

			.dot_wrap_left {
				display: flex;
				flex-direction: column;
				align-items: center;
				margin-right: 20rpx;
				margin-top: 20rpx;

				.dot {
					width: 24rpx;
					height: 24rpx;
					background: #01243A;
					border-radius: 50%;
				}

				.line {
					height: 126rpx;
					background-color: transparent;
					border-left: 2rpx dashed #01243A;
				}
			}

			.dot_wrap_right {
				.item {
					background: #F7F7F7;
					border-radius: 12rpx;
					height: 120rpx;
					display: flex;
					padding: 10rpx 20rpx;
					box-sizing: border-box;
					width: 600rpx;
					margin-bottom: 30rpx;

					.destion {
						margin: 0 60rpx 0 20rpx;
						font-weight: 400;

						.destion1 {
							font-size: 28rpx;
							color: #01243A;
						}

						.destion2 {
							font-size: 22rpx;
							color: #999999;
							line-height: 50rpx;
						}
					}

					image {
						width: 46rpx;
						height: 47rpx;
					}
				}
			}
		}

		.des {
			font-weight: 400;
			font-size: 28rpx;
			color: #01243A;
			line-height: 56rpx;
			margin-top: 10rpx;
			text-indent: 1rem;
		}

		.cailiao {
			width: 100%;
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;

			.list {
				width: 48%;
				margin-top: 30rpx;

				view {
					text-align: center;
					margin-bottom: 15rpx;
					font-size: 28rpx;
					color: #01243A;
				}

				.icon {
					width: 100%;
					height: 190rpx;
					background-image: var(--bgimg);
					background-size: 100% 100%;
					background-repeat: no-repeat;
				}
			}
		}
	}

	.action {
		position: absolute;
		left: 0;
		height: 270rpx;
		background-color: #fff;
		border-radius: 30rpx 30rpx 0 0;
		width: 100vw;
		display: flex;
		align-items: center;
		justify-content: space-evenly;
		flex-direction: column;
		margin-top: 20rpx;
	}
</style>