<template>
	<view class="progress">
		<view class="top">
			<view class="top-t">
				<view class="top-item">
					<image src="../../static/icon/x1.png" mode=""></image>
					<view class="item-tit">1.项目创建</view>
				</view>
				<view class="top-item">
					<image src="../../static/icon/x2.png" mode=""></image>
					<view class="item-tit">2.项目审核</view>
				</view>
				<view class="top-item">
					<image src="../../static/icon/x3.png" mode=""></image>
					<view class="item-tit">3.捐赠响应</view>
				</view>
				<view class="top-item">
					<image src="../../static/icon/x4.png" mode=""></image>
					<view class="item-tit">4.捐赠审核</view>
				</view>
			</view>
			<view class="top-t">
				<view class="top-item">
					<image src="../../static/icon/x5.png" mode=""></image>
					<view class="item-tit">5.捐赠品入库</view>
				</view>
				<view class="top-item">
					<image src="../../static/icon/x6.png" mode=""></image>
					<view class="item-tit">6.捐赠品出库</view>
				</view>
				<view class="top-item">
					<image src="../../static/icon/x7.png" mode=""></image>
					<view class="item-tit">7.发往受捐者</view>
				</view>
				<view class="top-item">
					<image src="../../static/icon/x8.png" mode=""></image>
					<view class="item-tit">8.受捐者反馈</view>
				</view>
			</view>
		</view>
		<view class="main">
			<view class="item">
				<image src="" mode=""></image>
				<view class="item-info">
					<view class="item-tit">新建项目</view>
					<view class="item-time">2021年06月17日 12:20:34 夏天里的清凉</view>
				</view>
				<view class="line1"></view>
			</view>
			<view class="item">
				<image src="" mode="" ref="firstitem"></image>
				<view class="item-info">
					<view class="item-tit">
						审核时间
						<text>已通过</text>
					</view>
					<view class="item-time">2021年06月17日 12:20:34 夏天里的清凉</view>
				</view>
			</view>
			<view class="item">
				<image src="" mode=""></image>
				<view class="item-info">
					<view class="item-tit">捐赠审核</view>
					<scroll-view scroll-y="true" class="item-num">
						<view></view>
					</scroll-view>
				</view>
			</view>
			<view class="item" >
				<image src="" mode=""></image>
				<view class="item-info">
					<view class="item-tit">统计信息</view>
					<view class="all-info flex">
						<view class="">捐赠进度<text class="jd">30%</text></view>
						<view class="">捐赠笔数<text>25次</text></view>
						<view class="">总计估值<text>￥100000</text></view>
						<view class="">物流累计<text>20次</text></view>
						<view class="" style="width: 100%;">上线时间<text>2021年06月10日</text></view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			peopleList: [],
		};
	},
	mounted() {
		this.$nextTick(()=>{ 
			let a = this.$refs.firstitem.$el.offsetHeight;
			console.log(a)
		})
	},
	methods: {
		getLineHeight() {
			this.$nextTick(function(){
				console.log(this.$refs.firstitem.$el.offsetHeight)
				console.log(this.$refs.lastitem.$el.offsetHeight)
				this.height1 = this.$refs.lastitem.$el.offsetHeight - this.$refs.firstitem.$el.offsetHeight
				console.log(this.height1)
			})
		}
	}
	
};
</script>

<style lang="scss" scoped>
.top {
	padding: 40rpx 0;
	background-color: #fff;
	margin: 20rpx 0;
	.top-t {
		display: flex;
		justify-content: space-between;
		padding: 0 55rpx;
		.top-item {
			width: 160rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			margin-bottom: 30rpx;
			image {
				width: 160rpx;
				height: 160rpx;
				background: #ffffff;
				border-radius: 14px;
				margin-bottom: 15rpx;
			}
			.item-tit {
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
				line-height: 1;
			}
			
		}
	}
}
.main {
	background-color: #fff;
	padding-right: 30rpx;
	height: 100%;
	.item {
		position: relative;
		image {
			width: 45rpx;
			height: 45rpx;
			background: #FA7E67;
			border-radius: 50%;
			position: absolute;
			top: 49rpx;
			left: 39rpx;
			z-index: 2;
		}
		.item-info {
			width: 600rpx;
			position: relative;
			left: 112rpx;
			padding-bottom: 34rpx;
			border-bottom: 1px solid #ededed;
			.item-tit {
				padding-top: 39rpx;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
				line-height: 1;
				text {
					display: inline-block;
					width: 87rpx;
					height: 33rpx;
					border: 1px solid #0ec400;
					border-radius: 5rpx;
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #0ec400;
					text-align: center;
					line-height: 30rpx;
					margin-left: 10rpx;
				}
			}
			
			.item-time {
				padding-top: 17rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #bfbfbf;
				line-height: 1;
			}
			.item-num {
				margin-top: 21rpx;
				height: 392rpx;
				width: 592rpx;
				background-color: red;
			}
			.all-info {
				margin-top: 20rpx;
				width: 601rpx;
				height: 174rpx;
				border: 1px solid #CCCCCC;
				border-radius: 10rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #999999;
				align-items: center;
				flex-wrap: wrap;
				view {
					flex-shrink: 0;
					width: 50%;
					padding-left: 20rpx;
					text {
						display: inline-block;
						margin-left: 5rpx;
						color: #000000;
					}
					.jd {
						color: #E80000;
					}
				}
			}
		}
		.line1 {
			width: 2rpx;
			height: 800rpx;
			background: #FA7E67;
			// opacity: 0.3;
			position: absolute;
			left: 61rpx;
			top: 90rpx;
			z-index: 1;
		}
	}
}
</style>
