<template>
	<view>
		<oct-goods
			:lists="goodsArr"
			color="#e6576b"
			@onGoods="$Router.push({ name: 'StoreGoods', params: {id: $event.goods_id}})"
		/>
	</view>
</template>

<script>
	import { meals } from "@/apis/interfaces/store"
	export default {
		data() {
			return {
				goodsArr: []
			};
		},
		mounted(){
			meals(this.$Route.query.id).then(res => {
				uni.setNavigationBarTitle({
					title: res.title
				})
				this.goodsArr = res.items
			})
		}
	}
</script>

<style lang="scss">

</style>
