yuwenList.vue 481 B

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