<template>
	<view class="repair">
		<view @click="itemClick(item)" v-for="(item,index) in list" :key="index" class="repair-item">
			<view class="repair-item-left">
				<view class="">
					报修类型：{{item.repair_type_name}}
				</view>
				<view class="">
					报修时间：{{item.create_time}}
				</view>
			</view>
			<view class="repair-item-right">
				查看详情 <uni-icons color="#999" type="right" size="14"></uni-icons>
			</view>		
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			list: {
				type: Array,
				default: () => []
			}
		},
		methods:{
			itemClick(item){
				 this.$emit('click',item)
			}
		}
	}
</script>

<style scoped lang="scss">
	.repair {
		width: 100%;
	}

	.repair-item {
		width: 100%;
		box-sizing: border-box;
		padding: 32rpx;
		background-color: #fff;
		border-radius: 5.33px;
		box-shadow: 0px 0px 6.67px 0px rgba(147, 147, 147, 0.20);
		margin-bottom: 32rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.repair-item-right {
			color: #999;
		}
	}
</style>