<template>
	<view class="page pageList">
		<navbar title="美食" leftClick @leftClick="$utils.navigateBack" />
		
		<view
		style="padding: 10rpx 20rpx;">
			<uv-search
			bgColor="#fff"
			@search="getData"
			@custom="getData"
			searchIconSize="30rpx"
			placeholder="请输入搜索关键字..." 
			v-model="title"></uv-search>
		</view>
		
		<view class="list">
			<gourmetItem
			:key="index"
			v-for="(item, index) in list"
			:item="item"
			/>
		</view>
		
	</view>
</template>

<script>
	import mixinsList from '@/mixins/list.js'
	import gourmetItem from '../components/list/gourmet/gourmetItem.vue'
	export default {
		mixins: [mixinsList],
		components : {
			gourmetItem,
		},
		data() {
			return {
				mixinsListApi : 'getStorePage',
			}
		},
		methods: {
			getDataThen(list){
				list.forEach(n => {
					n.detailsImage = n.detailsImage ? n.detailsImage.split(',') : []
					n.details = n.details ? n.details.split(',') : []
				})
			},
		}
	}
</script>

<style scoped lang="scss">
.page{
	.list{
		padding: 0 20rpx;
	}
}
</style>
