<template>
	<view class="shop-card-list" v-if="list.length">
    <template  v-for="{chanpin,value:item} in list">
      <cardVue v-if="chanpin == 'ziranpindu'" :item="item" :key="item.chanpinId"></cardVue>
      <cardVue2 v-if="chanpin == 'chaojidanci'" :item="item" :key="item.chanpinId"></cardVue2>
    </template>

	</view>
	<view class="ezy-no-sj" v-else>
		<icon></icon>
		<text>暂无数据</text>
	</view>
</template>

<script setup>
import cardVue from '../cp4/card.vue';
import cardVue2 from '../cp3/card.vue';

	const props = defineProps({
		list: {
			type: Array
		}
	})
</script>