yingyuList.vue 592 B

123456789101112131415161718192021222324
  1. <template>
  2. <view class="shop-card-list" v-if="list.length">
  3. <template v-for="{chanpin,value:item} in list">
  4. <cardVue v-if="chanpin == 'ziranpindu'" :item="item" :key="item.chanpinId"></cardVue>
  5. <cardVue2 v-if="chanpin == 'chaojidanci'" :item="item" :key="item.chanpinId"></cardVue2>
  6. </template>
  7. </view>
  8. <view class="ezy-no-sj" v-else>
  9. <icon></icon>
  10. <text>暂无数据</text>
  11. </view>
  12. </template>
  13. <script setup>
  14. import cardVue from '../cp3/card.vue';
  15. import cardVue2 from '../cp4/card.vue';
  16. const props = defineProps({
  17. list: {
  18. type: Array
  19. }
  20. })
  21. </script>