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

<script>
	import mixinsList from '@/mixins/list.js'
	import scenicSpotItem from '../components/list/scenicSpot/scenicSpotItem.vue'
	export default {
		mixins: [mixinsList],
		components : {
			scenicSpotItem,
		},
		data() {
			return {
				mixinsListApi : 'getScenicPage',
			}
		},
		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>
