<template>
	<view class="wf-item-page">

		<image :src="item.image[0]" mode="widthFix" class="item-img" />
	
		<view class="title">{{item.title}}</view>
		<view class="tag">
			<view class="tag-one">
				自营商品
			</view>
			<view class="tag-two">

				<text class="tag-twoa">折</text>
				<text class="tag-twob">满20包邮</text>
			</view>

		</view>
		<view class="relase">
			<view class="relase-one">
				3.0
			</view>
			<view class="relase-two">
				3000+评论
			</view>
		</view>
		<view class="price">
			<span>￥</span>10.<text>00</text>
		</view>
		<view class="item-info">
			<view class="info-title">
				通滩镇综合供销中心...
			</view>
			<view class="info-img">
				<image src="@/static/images/you.png" mode="aspectFill"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				require: true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wf-item-page {
		background: #fff;
		overflow: hidden;
		border-radius: 5px;

	}

	.item-img {
		width: 100%;
	}

	.item-info {}

	.title {
		font-size: 30rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
		margin: 12px 0;
		width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		padding: 0 5px;
		margin-left: 21rpx;
	}

	.tag {
		display: flex;
		margin-left: 21rpx;

		.tag-one {
			
			text-align: center;
			padding: 2rpx 9rpx;
			border-radius: 11rpx 11rpx 11rpx 11rpx;
			border: 1px solid #3274F9;
			font-size: 19rpx;
			font-family: PingFang SC-Regular, PingFang SC;
			font-weight: 400;
			margin-right: 15rpx;
		}

		.tag-two {

			.tag-twoa {
				width: 130rpx;
				text-align: center;
				padding-left: 15rpx;
				padding-right: 7rpx;
				border-radius: 11rpx 0px 0px 0rpx;
				border: 1px solid #F84221;
				font-size: 19rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				font-weight: 400;
			}

			.tag-twob {
				width: 130rpx;
				text-align: center;
				padding: 2rpx 9rpx;
				border-radius: 0px 11rpx 11rpx 0px;
				border: 1px solid #F84221;
				font-size: 19rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				font-weight: 400;
			}
		}
	}
.relase {
		display: flex;

		margin-left: 21rpx;
		margin-top: 12rpx;

		.relase-one {
			font-size: 26rpx;
			font-family: SF Pro Display-Regular Italic, SF Pro Display;
			font-weight: normal;
			color: #FF6D20;
		}

		.relase-two {
			font-size: 23rpx;
			font-family: PingFang SC-Regular, PingFang SC;
			font-weight: 400;
			color: #B3B3B3;
			margin-left: 13rpx;
		}
	}

	.price {
		margin-left: 21rpx;
		margin-bottom: 10rpx;
		color: #F84221;
		font-size: 44rpx;

		span {
			color: #F84221;
			font-size: 30rpx;
		}

		text {
			color: #F84221;
			font-size: 37rpx;
		}
	}

	.item-info {
		margin-left: 21rpx;
		margin-bottom: 25rpx;
		display: flex;
		justify-content: space-between;
		width: 280rpx;
		height: 39rpx;
		line-height: 39rpx;
		background: #F4F7FE;
		border-radius: 19rpx 19rpx;
		opacity: 1;
		font-size: 23rpx;
		padding-left: 11rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #737373;

		.info-img {
			width: 10rpx;
			height: 21rpx;
			margin-top: 5rpx;
			margin-right: 11rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}
	}
</style>