<template>
	<view class="goods-item">
		<image src="@/static/image/home1/logo.png" mode="aspectFill"></image>
		<view class="goods-info">
			<view class="goods-name">史士昊老师四神汤健脾消食疗法史士昊老师四神汤健脾消食疗法</view>
			<view class="price-box">
				<text class="price-box-unit">￥</text>
				<text class="price-box-integer">300</text>
				<text class="price-box-decimal">.00</text>
				<text class="price-box-text">/日</text>
				<text class="buynum">5920 人已购</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "goodsItem",
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.goods-item {
		width: 342rpx;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		overflow: hidden;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 28rpx;
		color: #000000;
		image {
			width: 342rpx;
			height: 342rpx;
		}
		.goods-info {
			padding: 12rpx 20rpx 32rpx 20rpx;
		}
		.goods-name {
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 2;
			-webkit-box-orient: vertical;
		}
		.price-box {
			font-family: Roboto, Roboto;
			font-weight: bold;
			font-size: 36rpx;
			color: #FF5C03;
			margin: 22rpx 0;
			&-unit {
				font-weight: 600;
				font-size: 20rpx;
			}
			&-integer {
				font-size: 26rpx;
			}
			&-decimal {
				font-weight: 600;
				font-size: 20rpx;
			}
			&-text {
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 22rpx;
			}
			.buynum {
				font-weight: 400;
				font-size: 22rpx;
				color: #757575;
				line-height: 22rpx;
				margin-left: 16rpx;
			}
		}
	}
</style>