<template>
	<view class="content">
		<view class="shop">
			<image class="img" src="https://picsum.photos/seed/picsum/200/300" mode="aspectFill"></image>
		</view>
		<scroll-view class="scroll-view" :scroll-x="true">
			<view class="scroll-content">
				<view class="goods-item" v-for="(item, index) in 5" :key="index">
					<image class="goods-img"></image>
					<view class="goods-info">
						<view class="lf-line-1">猪大肠卖咯 5毛钱一斤咯</view>
						<view>￥0.5</view>
					</view>
				</view>
				<view class="goods-item">
					<view class="more-box">
						<text>查看更多</text>
						<text class="lf-iconfont icon--2 lf-text-vertical"></text>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				
			}
		},
		created(){
			
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped="scoped">
	.content{
		width: 750rpx;
		height: max-content;
		box-sizing: border-box;
		padding: 0rpx 32rpx;
		.shop{
			width: 100%;
			height: 245rpx;
			.img{
				width: 100%;
				height: 100%;
			}
		}
		.scroll-view{
			height: 280rpx;
			width: 100%;
			margin-top: 20rpx;
			.scroll-content{
				display: flex;
				width: 100%;
				.goods-item{
					margin-right: 15rpx;
					width: 180rpx;
				}
				.goods-img{
					width: 180rpx;
					height: 180rpx;
					background-color: #EEEEEE;
				}
				.goods-info{
					text-align: center;
					color: #222222;
					&>view:nth-child(1n){
						font-size: 24rpx;
					}
					&>view:nth-child(2n){
						font-size: 28rpx;
						font-weight: bold;
					}
				}
				.more-box{
					width: 180rpx;
					height: 180rpx;
					background-color: #EEEEEE;
					text-align: center;
					line-height: 180rpx;
					font-size: 24rpx;
				}
			}
		}
	}
</style>
