<template>
	<view class="content">
		<view class="main" v-for="(item,index) in 10">
			<view class="main-title flex">
				<view class="main-id">产品货号:987654321025666</view>
				<view class="main-type">待检验</view>
			</view>
			<view class="main-info">
				<view class="main-name flex">
					<view>
						产品名称
					</view>
				</view>
				<scroll-view scroll-x="true">
					<view class="image-box">
						<view class="image-item" v-for="(itm,ind) in 10">
							<image src="../../static/img/user-item2.png" mode=""></image>
						</view>
					</view>
				</scroll-view>
			</view>
			<view class="main-info flex">
				<view class="main-name">
					下料待检验:
				</view>
				<view class="btn-box">
					<view class="btn gray" @click="navTo('/pages/order/record?type=1')">检验记录</view>
					<view class="btn red" @click="navTo('/pages/order/Addgaps?type=1')">缺漏</view>
					<view class="btn red" @click="navTo('/pages/order/Addcheckout?type=1')">添加检验</view>
				</view>
			</view>
			<view class="main-info flex">
				<view class="main-name">
					备料待检验:
				</view>
				<view class="btn-box">
					<view class="btn gray" @click="navTo('/pages/order/record?type=2')">检验记录</view>
					<view class="btn red" @click="navTo('/pages/order/Addgaps?type=2')">缺漏</view>
					<view class="btn red" @click="navTo('/pages/order/Addcheckout?type=2')">添加检验</view>
				</view>
			</view>
			<view class="main-info flex">
				<view class="main-name">
					针车待检验:
				</view>
				<view class="btn-box">
					<view class="btn gray" @click="navTo('/pages/order/record?type=3')">检验记录</view>
					<view class="btn red" @click="navTo('/pages/order/Addgaps?type=3')">缺漏</view>
					<view class="btn red" @click="navTo('/pages/order/Addcheckout?type=3')">添加检验</view>
				</view>
			</view>
			<view class="main-info flex">
				<view class="main-name">
					成型待检验:
				</view>
				<view class="btn-box">
					<view class="btn gray" @click="navTo('/pages/order/record?type=4')">检验记录</view>
					<view class=" btn red" @click="navTo('/pages/order/Addgaps?type=4')">缺漏</view>
					<view class="btn red" @click="navTo('/pages/order/Addcheckout?type=4')">添加检验</view>
				</view>
			</view>
			<view class="main-info flex" @click="navTo('/pages/leader/image')">
				<view class="main-name">
					查看参考图:
				</view>
				<view class="main-more">
					<view class="main-font">
						查看详细
					</view>
					<image class="jt" src="../../static/img/jt.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		onLoad() {},
		onShow() {},
		onReachBottom() {},
		onReady() {},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url
				})
			}
		}
	};
</script>

<style lang="scss">
	page,
	.content {
		min-height: 100%;
		height: auto;
	}

	.main {
		padding: 34rpx 20rpx 0;
		margin: 20rpx auto;
		width: 700rpx;
		background: #FFFFFF;
		border-radius: 24rpx;

		.main-title {
			padding: 0 14rpx 30rpx;

			.main-id {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
			}

			.main-type {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #FF2D2D;
			}
		}

		.main-info {
			padding: 14rpx 0;
			border-top: 1px solid #EAECED;

			.main-name {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #363636;
			}

			.image-box {
				padding: 16rpx 10rpx 8rpx;
				display: flex;
				align-items: center;

				.image-item {
					margin-left: 10rpx;
					width: 110rpx;
					height: 110rpx;
					flex-shrink: 0;

					image {
						width: 100%;
						height: 100%;
					}
				}
			}

			.btn-box {
				display: flex;
				justify-content: flex-end;
				align-items: center;

				.btn {
					margin-left: 10rpx;
					background: #FFFFFF;
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					padding: 6rpx 16rpx;
					border-radius: 60rpx;
				}

				.gray {
					color: #999999;
					border: 2px solid #EBEBEB;
				}

				.red {
					color: #FF2D2D;
					border: 2px solid #FF2D2D;
				}
			}

			.main-more {
				display: flex;
				align-items: center;

				.main-font {
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #333333;
					margin-right: 10rpx;
				}

				.jt {
					width: 12rpx;
					height: 22rpx;
				}
			}
		}
	}
</style>