shuxueList.vue 610 B

12345678910111213141516171819202122232425
  1. <template>
  2. <view class="sx-card-list" v-if="list.length">
  3. <template v-for="{chanpin,value:item} in list">
  4. <cp1 v-if="chanpin == 'tujiemuti'" :item="item" :key="item.chanpinId"></cp1>
  5. <cp2 v-if="chanpin == 'jisuantexun'" :item="item" :key="item.chanpinId"></cp2>
  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 cp1 from '../cp1/card.vue';
  16. import cp2 from '../cp2/card.vue';
  17. const props = defineProps({
  18. list: {
  19. type: Array
  20. }
  21. })
  22. </script>