<template>
	<!-- 考场 -->
	<view class="consultItem">
		<view class="top_row">
			<view class="flex">
				<view class="schoolName">{{item.studentName}} {{item.studentPhone}}</view>
			</view>
			<view class="status">
				<text class="text red" v-if="item.refundStatus==-1">取消{{item.refundStatus}}</text>
				<view class="text" v-else :class="{red: item.refundStatus==2}">{{stateTxt[item.refundStatus]}}</view>
				<view class="icon">
					<u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
				</view>
			</view>
		</view>
		<view class="target">
			<view class="row">
				<view class="iconImg">
					<image src="@/static/images/index/timerIcon.png" mode="widthFix"></image>
				</view>
				<view class="name">报名时间：{{$u.timeFormat(item.createTime, 'yyyy/mm/dd')}}</view>
			</view>
			<view class="row">
				<view class="iconImg">
					<image src="@/static/images/index/carIcon.png" mode="widthFix"></image>
				</view>
				<view class="name">学驾车型：{{item.tranType}}</view>
			</view>
			<view class="row">
				<view class="iconImg">
					<image src="@/static/images/index/carNum.png" mode="widthFix"></image>
				</view>
				<view class="name">报名班型：{{item.className}}</view>
			</view>
		</view>
		<view class="border_bottom">
			<view class="row">
				<view class="lab">不通过原因</view>
				<view class="val hui">{{ item.auditFailReason }}</view>
			</view>
		</view>
		<view class="border_bottom">
			<view class="row">
				<view class="lab">申请退款金额</view>
				<view class="val">￥{{ $u.utils.priceTo(item.refundAmount)}}</view>
			</view>
			<slot ></slot>
		</view>
		
	</view>
</template>

<script>
	export default {
		props: ['item'],
		data() {
			return {
				stateTxt: ['待审核','审核通过', '审核不通过'],//0、待审核，1、审核通过，-1、取消，2、审核不通过,示例值(2)	
			}
		}
	}
</script>

<style lang="scss" scoped>
	.consultItem {
			width: 100%;
			.top_row {
				display: flex;
				width: 100%;
				height: 116rpx;
				border-bottom: 2rpx dashed #E8E9EC;
				justify-content: space-between;
				align-items: center;
				.tag {
					// width: 176rpx;
					height: 60rpx;
					background: rgba(250, 149, 25, 0.1);
					border-radius: 8rpx;
					text-align: center;
					font-size: 28rpx;
					color: #FA7919;
					margin-right: 24rpx;
					padding: 10rpx 18rpx;
				}
				.schoolName {
					font-size: 28rpx;
					font-weight: 550;
					color: #333;
					margin-left: 20rpx;
				}
				.status {
					display: flex;
					align-items: center;
					.text {
						font-size: 28rpx;
						color: $themC;
						&.red {
							color: red;
						}
					}
				}
			}
			.target {
				padding: 20rpx 0;
			}
			.row {
				padding: 16rpx 0;
				display: flex;
				align-items: center;
				.iconImg {
					width: 28rpx;
				}
				.name {
					font-size: 28rpx;
					color: #333;
					padding-left: 20rpx;
				}
			}
		}
		.border_bottom {
			border-top: 2rpx dashed #E8E9EC;
			.row {
				padding: 28rpx 0;
				display: flex;
				align-items: center;
				justify-content: space-between;
				.val {
					color: $themC;
					&.hui {
						color: #999;
					}
				}
			}
			
		}
</style>