<template>
	<view class="list" @click="goDetails">
	  <image class="car" :src='`${$imgUrl}issuance/car.png`' mode=""></image>
	  <view class="content">
	  	<view class="content-top">
			<text class="vehiclePlate">贵A12345</text>
			<text class="statusdsh">待审核</text>
		</view>
	  	<view  class="content-time">申请时间：2025年02月21日</view>
	  </view>
	  <image class="arrow" :src='`${$imgUrl}issuance/arrow.png`' mode=""></image>
	</view>
	<view class="list" @click="goDetails">
	  <image class="car" src="/static/image/myx.png" mode=""></image>
	  <view class="content">
	  	<view class="content-top">
			<text class="vehiclePlate">贵A12345</text>
			<text class="statusbtg">审核不通过</text>
		</view>
	  	<view  class="content-time">申请时间：2025年02月21日</view>
	  </view>
	  <image class="arrow" src="/static/image/myx.png" mode=""></image>
	</view>
	<view class="list" @click="goDetails">
	  <image class="car" src="/static/image/myx.png" mode=""></image>
	  <view class="content">
	  	<view class="content-top">
			<text class="vehiclePlate">贵A12345</text>
			<text class="statusywc">已完成</text>
		</view>
	  	<view  class="content-time">申请时间：2025年02月21日</view>
	  </view>
	  <image class="arrow" src="/static/image/myx.png" mode=""></image>
	</view>
</template>

<script setup lang="ts">
	import {navTo} from "@/utils/utils";
	import {releasePlateaList} from "@/utils/network/api.js";
	import {ref} from "vue";
	import {requestNew} from "@/utils/network/request.js";
    import { onLoad } from "@dcloudio/uni-app";
	onLoad(() => {
		list()
	});
	const list = () => {
		const options = {
			type: 2,
			data: {},
			method: "POST",
			showLoading: true,
		};
		requestNew(releasePlateaList, options).then((res) => {
			console.log("列表",res)
		});
	};
	
	const goDetails = () => {
       navTo(`/subpackage/after-sale/rescind-carId/rescind-carId-select-details`)
	}
</script>

<style lang="scss" scoped>
	.list{
		background: #FFFFFF;
		border-radius: 12rpx;
		border: 1px solid #FFFFFF;
		width: 90%;
		margin: 30rpx auto;
		padding: 20rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		.content{
			font-weight: 400;
			width: 76%;
			margin-left: 20rpx;
			.content-top{
				margin-bottom: 20rpx;
				.vehiclePlate{
					font-size: 30rpx;
					color: #01243A;
				}
				// 待审核
				.statusdsh{
					font-size: 24rpx;
					color: #1458E5;
					background: #E3ECFF;
					border-radius: 6rpx;
					border: 1px solid #1458E5;
					margin-left: 20rpx;
					padding: 2rpx 4rpx;
				}
				// 不通过
				.statusbtg{
					font-size: 24rpx;
					color: #C2A760;
					background: #F8F4E7;
					border-radius: 6rpx;
					border: 1px solid #C2A760;
					margin-left: 20rpx;
					padding: 2rpx 4rpx;
				}
				// 已完成
				.statusywc{
					font-size: 24rpx;
					color: #42D175;
					background: #E6FFEF;
					border-radius: 6rpx;
					border: 1px solid #42D175;
					margin-left: 20rpx;
					padding: 2rpx 4rpx;
				}
			}
			.content-time{
				font-size: 26rpx;
				color: #999999;
			}
		}
		.car{
			width: 100rpx;
			height: 100rpx;
		}
		.arrow{
			width: 18rpx;
			height: 34rpx;
		}
	}
</style>