<template>
	<view class="task-box">
		<view class="task-item" v-for="item in 10" :key="item">
			<view class="task-info">
				<view class="info-title">
					<text class="info-tag">新人</text>
					<text class="info-title-text hide_1">币王合约大神 币王合约大神币王合约大神</text>
				</view>
				<view class="info-content">
					<image class="info-icon" src="@/static/logo.png" mode="aspectFit"></image>
					<view class="info">
						<view class="info-nums">
							<text class="info-nums-name hide_1">交易量</text>
							<text class="info-nums-num">5000000 / 5000000</text>
						</view>
						<view class="info-ratio">
							<text class="info-ratio-bg" style="width: 70%;"></text>
						</view>
						<view class="info-times">
							<text class="info-time hide_1">2023.01.01- 2024.01.01</text>
							<view class="info-detail">
								<text class="detail-text">详情</text>
								<image class="detail-icon" src="../../../static/logo.png" mode="aspectFit"></image>
							</view>
						</view>
					</view>
				</view>
			</view>
			<view :class="['task-btns' , activeTask ? '' : 'active-task-btn']">
				<text class="task-btn-nums">200</text>
				<text class="task-btn-tag">USDT</text>
				<text class="task-btn-text">待完成</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			activeTask:{
				type:Boolean,
				default:false
			}
		},
		data() {
			return {
				 
			};
		}
	}
</script>

<style lang="scss" scoped>
	.task-box {
		width: 100%;
		padding: 18rpx $pages-padding 0;
		
		.task-item {
			margin-bottom: 14rpx;
			width: 100%;
			background-color: #fff;
			display: flex;
			align-items: stretch;

			.task-info {
				width: calc(100% - 215rpx);
				height: 252rpx;
				padding: 20rpx 0;

				.info-title {
					width: 100%;
					display: flex;
					align-items: center;

					.info-tag {
						flex-shrink: 0;
						min-width: 75rpx;
						line-height: 25rpx;
						padding: 3rpx 20rpx;
						background: #05c175;
						border-radius: 0px 16rpx 16rpx 0px;

						font-size: 18rpx;
						font-family: PingFang SC, PingFang SC-Regular;
						font-weight: 400;
						color: #ffffff;
						letter-spacing: -0.36rpx;
					}

					.info-title-text {
						width: 100%;
						padding-left: 40rpx;
						font-size: 28rpx;
						font-family: PingFang SC, PingFang SC-Regular;
						font-weight: 400;
						color: #333333;
						letter-spacing: -0.56rpx;
					}
				}

				.info-content {
					padding-top: 47rpx;
					padding-left: 8rpx;
					display: flex;
					align-items: center;

					.info-icon {
						width: 90rpx;
						height: 90rpx;
					}

					.info {
						width: calc(100% - 90rpx);
						padding: 0 36rpx 0 22rpx;

						.info-nums {
							width: 100%;
							display: flex;
							justify-content: space-between;
							align-items: center;

							.info-nums-name {
								line-height: 40rpx;
								font-size: 28rpx;
								font-family: PingFang SC, PingFang SC-Regular;
								font-weight: 400;
								text-align: left;
								color: #808080;
								letter-spacing: -0.56rpx;
							}

							.info-nums-num {
								flex-shrink: 0;
								line-height: 30rpx;
								font-size: 22rpx;
								font-family: PingFang SC, PingFang SC-Regular;
								font-weight: 400;
								text-align: left;
								color: #fe9d04;
								letter-spacing: -0.44rpx;

							}
						}

						.info-ratio {
							width: 100%;
							height: 10rpx;
							background: #D0D0D0;
							border-radius: 5rpx;
							display: flex;
							.info-ratio-bg {
								display: inline-block;
								
								height: 10rpx;
								border-radius: 5rpx;
								background: #0abd76;
							}
						}

						.info-times {
							padding-top: 12rpx;
							display: flex;
							align-items: center;
							justify-content: space-between;

							.info-time {

								font-size: 22rpx;
								font-family: PingFang SC, PingFang SC-Regular;
								font-weight: 400;
								color: #808080;
								letter-spacing: -0.44rpx;
								line-height: 30rpx;
							}

							.info-detail {
								flex-shrink: 0;
								display: flex;
								align-items: center;
								margin-right: -20rpx;

								.detail-text {
									flex-shrink: 0;
									font-size: 22rpx;
									font-family: PingFang SC, PingFang SC-Regular;
									font-weight: 400;
									color: #0abd76;
									letter-spacing: -0.44rpx;
									line-height: 30rpx;
									padding-right: 10rpx;
								}

								.detail-icon {
									flex-shrink: 0;
									width: 10rpx;
									height: 13rpx;
								}
							}
						}
					}
				}

			 


			}

			.task-btns {
				background-color: #202135;
				width: 215rpx;
				border-radius: 6rpx;
				display: flex;
				flex-direction: column;
				color: #fff;
				justify-content: center;
				align-items: center;
				.task-btn-nums{
				 
					font-size: 42rpx;
					font-family: PingFang SC, PingFang SC-Bold;
					font-weight: 700;
					color: #ffffff;
					letter-spacing: 0.84rpx;
				}
				.task-btn-tag{ 
					font-size: 24rpx;
					font-family: PingFang SC, PingFang SC-Regular;
					font-weight: 400; 
					color: #ffffff;
					// letter-spacing: 0.48rpx;
				}
				.task-btn-text{
					min-width: 176rpx;
					height: 60rpx;
					padding:0 10rpx;
					background: #4c4d5f;
					border-radius: 6px;
					text-align: center;
					line-height: 60rpx;
					margin-top: 36rpx;
				}
				// <text class="task-btn-nums">200</text>
				// 	<text class="task-btn-tag">USDT</text>
				// 	<text class="task-btn-text">待完成</text>
				// </view>
			}
			.active-task-btn{
			 
				background: #d2d3d7; 
				
				.task-btn-text{
					background: #c3c3cd;
				}
				
			}
		}
	}
</style>