jstxCard.vue 580 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <!-- 数学-计算特训card -->
  3. <view class="card" @click="handleClick(item)">
  4. <image :src="item.cover" mode="aspectFill" class="cover" />
  5. <view class="name">{{ item.name }}</view>
  6. </view>
  7. </template>
  8. <script setup>
  9. import ezyActiveVue from "@/components/ezyActive/ezyActive.vue";
  10. const porps = defineProps({
  11. item: {
  12. type: Object
  13. }
  14. })
  15. // 跳转详情页面
  16. function handleClick(item) {
  17. console.log('item',item.ziliaoId);
  18. /*uni.navigateTo({
  19. url: `/pages/chanpinZiliao/shuxue/jstxInfo?ziliaoId=${item.ziliaoId}`
  20. })*/
  21. }
  22. </script>
  23. <style>
  24. </style>