yingyuList.vue 641 B

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