recomMendation.vue 826 B

1234567891011121314151617181920212223
  1. <script setup lang="ts">
  2. import { useRoute } from "vue-router";
  3. const route = useRoute()
  4. const emit:any = defineEmits([]);
  5. const props = defineProps({
  6. data: Object,
  7. });
  8. const data = props.data
  9. </script>
  10. <template>
  11. <div>
  12. <div class="title-tag2 text-left">相关推荐</div>
  13. <div class="relNewBox container text-left ">
  14. <a class="ustify-content-between d-flex relNewsList" :href="`${route.path}?categoryid=${item.categoryid}&id=${item.id}&isUrlId=1`" v-for="item in data" :key="item.id">
  15. <div><img width="18" height="18" src="@/assets/img/news/arrowT.svg"> {{item.title}} </div>
  16. <div>{{ item.createdate }}</div>
  17. </a>
  18. </div>
  19. </div>
  20. </template>
  21. <style lang="scss" scoped>
  22. </style>