<template>
	<view class="content">
		<view class="info">该类商品需购满300乐豆才能下单哦！</view>
		<view v-if="goodsList.length">
			<uni-coods :list="goodsList"></uni-coods>
		</view>
		<!-- 购物车 -->
		<uni-cart-fix></uni-cart-fix>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				clsId: '',
				goodsList:[
					{
						id: 21312312321,
						name: '啊撒旦解放拉萨酱豆腐爱丽丝反对萨拉地方就',
						src: '/static/goods.png',
						price: 50,
						status: 0
					},
					{
						id: 6465465465,
						name: '啊撒旦解放拉萨酱豆腐爱丽丝反对萨拉地方就',
						src: '/static/goods.png',
						price: 50,
						status: 1
					},
					{
						id: 234324,
						name: '啊撒旦解放拉萨酱豆腐爱丽丝反对萨拉地方就',
						src: '/static/goods.png',
						price: 50,
						status: 0
					},
					{
						id: 4453455,
						name: '啊撒旦解放拉萨酱豆腐爱丽丝反对萨拉地方就',
						src: '/static/goods.png',
						price: 50,
						status: 0
					},
					{
						id: 22222,
						name: '啊撒旦解放拉萨酱豆腐爱丽丝反对萨拉地方就',
						src: '/static/goods.png',
						price: 50,
						status: 0
					},
					{
						id: 345,
						name: '啊撒旦解放拉萨酱豆腐爱丽丝反对萨拉地方就',
						src: '/static/goods.png',
						price: 50,
						status: 0
					},
					{
						id: 456456,
						name: '啊撒旦解放拉萨酱豆腐爱丽丝反对萨拉地方就',
						src: '/static/goods.png',
						price: 50,
						status: 0
					}
				]
			};
		},
		onLoad(opts) {
			this.clsId = opts.id
		}
	}
</script>

<style lang="scss">
   .content {
		.goods{
			padding: 20upx 0;
		}
		.goods-list{
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			padding: 20upx 20upx 0;
			background: #FFFFFF;
			>view{
				margin-bottom: 20upx;
			}
		}
		.info{
			text-align: center;
			color: #DD524D;
			margin-bottom: 20upx;
		}
	}
</style>
