<template>
	<view class="">
		<view class="headers"></view>
		<view class="wab">
			<!-- <view class="wab_query heng1" @click="addcar()">
				<view class="shu">
					<u-icon name="plus-circle" color="#2979ff" size="100">
					</u-icon>
					<text>添加我的爱车</text>
				</view>
			</view> -->
			<view class="wab_query shu">
				<view class=" car">
					<view>晋TF6F14
						<u-icon name="arrow-down" size="20" style="margin-left: 20rpx;">
						</u-icon>
					</view>
					<u-icon name="edit-pen" color="#8c9093" size="40"  @click="edit()">
					</u-icon>
				</view>
				<view class="nianjian">
					<view class="shu1">
						<u-tag text="六年免检" style="width: 140rpx;" mode="dark" bg-color="#000" shape="circleRight" />
						<view class="ts">距年检到期还有 <text>1</text> 天</view>
					</view>
					<u-tag text="可办理" />
				</view>
			</view>
			<view class="wab_data ">
				<view class="data_top">
					<view>
						<u-icon name="bookmark-fill" color="#E2E2E4" size="30" class="icon_photo">
						</u-icon>
						<text>支持办理</text>
					</view>
					<view style="padding: 30rpx;">
						<u-subsection :list="list" :current="current" height="60" :active-color="activeColor"
							@change="sectionChange"></u-subsection>
					</view>
				</view>
			</view>
			<view class="data_btn heng" :style="transform">
				<view class="data_flow">
					<view class="heng" style="padding: 0 40rpx;box-sizing: border-box;">
						<view class="shu">
							<view class="yuan heng1">
								<u-icon name="file-text-fill" color="#fff" size="40">
								</u-icon>
							</view>
							<text style="font-size: 12px;">下单付款</text>
						</view>
						<u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
						</u-icon>
						<view class="shu">
							<view class="yuan heng1">
								<u-icon name="camera-fill" color="#fff" size="40">
								</u-icon>
							</view>
							<text style="font-size: 12px;">上传资料</text>
						</view>
						<u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
						</u-icon>
						<view class="shu">
							<view class="yuan heng1">
								<u-icon name="rewind-right-fill" color="#fff" size="40">
								</u-icon>
							</view>
							<text style="font-size: 12px;">等待代办完成</text>
						</view>
						<u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
						</u-icon>
						<view class="shu">
							<view class="yuan heng1">
								<u-icon name="email-fill" color="#fff" size="40">
								</u-icon>
							</view>
							<text style="font-size: 12px;">接收标志</text>
						</view>
					</view>
					<view class="data_condition shu1" style="height: 230px;">
						<view>
							<u-icon name="bookmark-fill" color="#E2E2E4" size="35" class="icon_photo">
							</u-icon>
							<text style="color: #3F4D5A;">六年免检办理条件</text>
						</view>
						<text>1. 使用性质：非营运</text>
						<text>2. 核定载人数：九人及以下</text>
						<text>3. 注册登记日期在2017年9月1日（含）之后</text>
						<text>4. 免检期间未发生过致人伤亡事故的车辆</text>
						<text>5. 已处理完车辆的所有违章</text>
					</view>
				</view>
				<view class="data_flow">
					<view class="heng" style="padding: 0 40rpx;box-sizing: border-box;">
						<view class="shu">
							<view class="yuan heng1">
								<u-icon name="file-text-fill" color="#fff" size="40">
								</u-icon>
							</view>
							<text style="font-size: 12px;">下单付款</text>
						</view>
						<u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
						</u-icon>
						<view class="shu">
							<view class="yuan heng1">
								<u-icon name="camera-fill" color="#fff" size="40">
								</u-icon>
							</view>
							<text style="font-size: 12px;">准备资料</text>
						</view>
						<u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
						</u-icon>
						<view class="shu">
							<view class="yuan heng1">
								<u-icon name="rewind-right-fill" color="#fff" size="40">
								</u-icon>
							</view>
							<text style="font-size: 12px;">代驾或自驾检测</text>
						</view>
						<u-icon name="arrow-right" color="#69b3f0" size="20" style="margin-top: 30rpx;">
						</u-icon>
						<view class="shu">
							<view class="yuan heng1">
								<u-icon name="email-fill" color="#fff" size="40">
								</u-icon>
							</view>
							<text style="font-size: 12px;">检测完成</text>
						</view>
					</view>
					<view class="data_condition shu1">
						<view>
							<u-icon name="bookmark-fill" color="#E2E2E4" size="35" class="icon_photo">
							</u-icon>
							<text style="color: #3F4D5A;">上线检测办理条件</text>
						</view>
						<text>1. 外观与行驶证照片中车辆保持一致，保持车身整洁、漆面完整</text>
						<text>2. 不可以私自改装灯光系统，保证各灯光正常工作</text>
						<text>3. 前排侧窗后视镜位置的三角区域不允许贴膜</text>
						<text>4. 同轴轮胎花纹应一致，胎面磨损不严重，尺寸与原车一致</text>
						<text>5. 灭火器和三角警告牌是必备物品</text>
						<text>5. 已处理完车辆的所有违章</text>
					</view>
				</view>
			</view>
		</view>
		<view class="shu color">
			<view class="heng1 " style="margin: 30px 0;font-size: 16px;">
				<text @click="issue()" style="cursor: pointer;">优惠券</text>
				<view style="width: 2rpx;height: 40rpx;margin: 0 50rpx;background-color: #E9EAEE;"></view>
				<text @click="order()" style="cursor: pointer;">我的订单</text>
			</view>
			<view class="shu">
				<view class="heng1">
					<view class="logo"></view>
					<view>本服务由晋掌柜提供</view>
				</view>
				<text>客服电话：020-62936789</text>
			</view>
		</view>
		<view class="flexd heng1">
			<view style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
				<u-icon name="checkmark-circle" color="#6b6d6a" size="30">
				</u-icon>
				<text style="color: #6b6d6a">我已办理</text>
			</view>
			<view class="heng1" @click="banli()">
				<text style="font-weight: bold;font-size: 36rpx;color: #fff;">立即办理</text>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				list: [{
						name: '六年免检'
					},
					{
						name: '上线检测'
					},
				],
				current: 0,
				activeColor: this.$u.color['primary'],
				transform: "transform:translateX(0)",
			}
		},
		onLoad() {

		},
		methods: {
			sectionChange(index) {
				this.current = index;
				if (index == 1) {
					this.transform = "transform:translateX(-55%)";
				} else if (index == 0) {
					this.transform = "transform:translateX(0)";
				}
			},
			addcar() {
				uni.navigateTo({
					url: "/pages/caragent/addcar"
				})
			},
			issue() {
				uni.navigateTo({
					url: "/pages/ticket/issue"
				})
			},
			order() {
				uni.navigateTo({
					url: "/pages/ticket/order"
				})
			},
			banli() {
				uni.navigateTo({
					url: "/pages/caragent/confirmorder"
				})
			},
			edit(){
				uni.navigateTo({
					url: "/pages/caragent/editcar"
				})
			}
		}
	}
</script>

<style>
	.ts {
		font-size: 40rpx;
		font-weight: bold;
	}

	.ts>text {
		color: #fc8908;
		margin: 0 10rpx;
	}

	.car {
		width: 100%;
		font-size: 40rpx;
		font-weight: bold;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.nianjian {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.nianjian>text {
		border: 2rpx solid #17A2B8;
		font-size: 20rpx;
		color: #007AFF;
		padding: 2rpx;
		box-sizing: border-box;
	}

	.flexd {
		height: 100rpx;
		position: fixed;
		left: 36rpx;
		right: 36rpx;
		bottom: 20rpx;
		border-radius: 60rpx;
		box-shadow: 0 0px 3px 0px #7d7d7d;
	}

	.flexd>view:nth-child(1) {
		width: 30%;
		height: 100%;
		background-color: #fff;
		border-top-left-radius: 60rpx;
		border-bottom-left-radius: 60rpx;
	}

	.flexd>view:nth-child(2) {
		width: 70%;
		height: 100%;
		background-color: #007BFF;
		border-top-right-radius: 60rpx;
		border-bottom-right-radius: 60rpx;
	}

	.color {
		margin-bottom: 150rpx;
		color: #696A6E;
	}

	.logo {
		width: 40rpx;
		height: 40rpx;
		border-radius: 50%;
		background-image: url(../../static/bigLogo.png);
		background-size: 100% 100%;
	}

	.data_condition {
		width: 100%;
		height: 320px;
		background: #F5F9FC;
		margin-top: 40px;
		padding: 20rpx;
		box-sizing: border-box;
	}

	.data_condition>text {
		margin-left: 40rpx;
		color: #686C6F;
	}

	.yuan {
		width: 70rpx;
		height: 70rpx;
		border-radius: 50%;
		background-image: linear-gradient(#aad9f5, #69b3f0);
	}

	.headers {
		width: 100%;
		height: 240rpx;
		background-image: url(../../static/image/claim/claimtop.png);
		background-size: 100% 100%;
	}

	.wab {
		width: 100%;
		height: auto;
		padding: 0 36rpx 30rpx 36rpx;
		box-sizing: border-box;
	}

	.wab_query {
		width: 100%;
		height: 250rpx;
		border-radius: 15rpx;
		background-color: #FFFFFF;
		box-shadow: 0 0 10px 0 #a8bbca;
		margin-top: -40px;
		padding: 20rpx 40rpx;
	}

	.heng {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;

	}

	.heng1 {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.shu {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
	}

	.shu1 {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.wab_data {
		width: 100%;
		height: auto;
		padding: 60rpx 40rpx;
		box-sizing: border-box;

	}

	.data_top {
		font-size: 32rpx;
		color: #3F4D5A;
	}

	.data_btn {
		width: 220%;
		height: auto;
		transition: all 0.5s ease;
	}

	.data_flow {
		width: 45%;
		height: auto;
	}
</style>
