<template>
	<view class="content">
		<view class="main" v-for="(item,index) in 10">
			<view class="main-num flex">
				<view class="main-id">订单号:9876543211025666</view>
				<view class="main-type">
					进行中
				</view>
			</view>
			<view class="main-name flex">
				<view class="main-name">产品名称</view>
				<view class="main-name">
					数量：<text class="red">230</text>
				</view>
			</view>

			<view class="main-info flex">
				<scroll-view scroll-x="true" class="main-price">
					<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 class="main-more" @click="navTo('/pages/leader/superviseDetail')">
					<view class="mainm-font">
						查看详细
					</view>
					<image class="mainm-jt" src="../../static/img/jt.png" mode=""></image>
				</view>
			</view>
			<view class="main-num flex">
				<view class="mainnum-item">
					进行阶段: <text class="bload">下料</text>
				</view>
				<view class="mainnum-item">
					预警时间：<text class="bload">2023年04月30日</text>
				</view>
			</view>
			<view class="btn-box">
				<view class="box">主材状态：正常到货</view>
				<view class="box">辅材状态：<text class="red">超时到货</text></view>
				<view class="box">包材状态：正常到货</view>
				<view class="box">订单状态：进行中</view>
			</view>
		</view>
	</view>
</template>

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

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

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

		.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-name {
			padding: 20rpx 14rpx 16rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #363636;
		}

		.main-info {
			padding: 0 14rpx;

			.main-price {
				width: 480rpx;

				.image-box {
					display: flex;
					align-items: center;

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

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

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

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

				.mainm-jt {
					width: 12rpx;
					height: 22rpx;
				}
			}
		}

		.main-num {
			padding: 24rpx 14rpx 20rpx;
			border-bottom: 1px solid #ededed;

			.mainnum-item {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;

			}
		}

		.red {
			color: #FF4C4C
		}

		.btn-box {
			display: flex;
			justify-content: space-between;
			align-items: center;
			flex-wrap: wrap;
			padding: 0 0 20rpx;

			.box {
				padding-left: 20rpx;
				margin-top: 20rpx;
				width: 50%;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
			}

		}
	}
</style>