<template>
	<view class="top-hint">
		<view class="txt">
			<image :src="`${$imgUrl}common/icon-tips.png`" mode="aspectFill" class="imgs"></image>
			<view>
				<text>使用场景：</text>
				<view class="grey-txt">车牌号被上任车主办理的黔通智联发行的ETC设备占用，无法新办ETC。</view>
			</view>
		</view>
		
	</view>
	
	<view class="have-gradient" style="margin-top: -20rpx;">
		<view class="have-gradient-inside">
			<view class="title"> 需要准备的材料 </view>
			<view class="cailiao">
				<view class="list" v-for="(item,index) in list">
					<view>{{item.name}}</view>
					<image class="icon" :src="`${$imgUrl}${item.img}`"
						:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
					</image>
				</view>
			</view>
			<view class="user-type">个人</view>
			<view class="cailiao">
				<view class="list" v-for="(item,index) in person">
					<view>{{item.name}}</view>
					<image class="icon" :src="`${$imgUrl}${item.img}`"
						:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
					</image>
				</view>
			</view>
			<view class="user-type">单位</view>
			<view class="cailiao">
				<view class="list" v-for="(item,index) in company">
					<view>{{item.name}}</view>
					<image class="icon" :src="`${$imgUrl}${item.img}`"
						:style="{'--bgimg':`url(${$imgUrl}issuance/bg-border.png)`}">
					</image>
				</view>
			</view>
		</view>
	</view>
	
	<FixedFooter>
		<button type="default" class="ui-btn" style="margin-bottom: 12rpx;" @click="savaHandle()">
			解除车牌占用申请
		</button>
	</FixedFooter>
	
</template>

<script setup lang="ts">
	import {navTo} from "@/utils/utils";
	import {
		ref
	} from "vue";
	import FixedFooter from "@/components/common/FixedFooter.vue";
    const list=ref([
		{'name':"车辆行驶证主页",'img':"issuance/xz.png"},
		{'name':"车辆行驶证副页",'img':"issuance/xf.png"},
	])
	
	const person = ref([
		{'name':"车主身份证人像面",'img':"issuance/sfz.png"},
		{'name':"车主身份证国徽面",'img':"issuance/sff.png"},
		{'name':"授权书",'img':"issuance/weituo.png"},
	])
	
	const company = ref([
		{'name':"营业执照",'img':"applyCard/zhizhao.png"},
		{'name':"授权书",'img':"issuance/weituo.png"},
	])
	const savaHandle = () => {
       navTo(`/subpackage/after-sale/rescind-carId/rescind-carId-select`)
	}
	const progressQuery = () => {
	   navTo(`/subpackage/after-sale/rescind-carId/rescind-carId-select-list`)
	}
	
</script>

<style lang="scss" scoped>
	.bg {
		background-color: white;
		margin: 20rpx 30rpx 0;
		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;
	}
	.user-type{
		color: #01243A;
		margin-top: 24rpx;
		.line{
			color: #999999;
		}
	}
</style>