scenic-spot.vue 968 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <CommonListPage
  3. :title="'文化文化景区'"
  4. :prevPage="{ title: '文旅融合' }"
  5. :dropDownNames="[]"
  6. :showSearch="true"
  7. :pageSize="8"
  8. :load="loadData"
  9. />
  10. </template>
  11. <script setup lang="ts">
  12. import ScenicSpotContent from '@/api/fusion/ScenicSpotContent';
  13. import { GetContentListParams } from '@/api/CommonContent';
  14. async function loadData(
  15. page: number,
  16. pageSize: number,
  17. selectedTag: number,
  18. searchText: string,
  19. dropDownValues: number[]
  20. ) {
  21. const res = await ScenicSpotContent.getContentList(new GetContentListParams()
  22. .setKeywords(searchText)
  23. .setMainBodyColumnId(260)
  24. , page, pageSize);
  25. return {
  26. page: page,
  27. total: res.total,
  28. data: res.list.map((item, index) => {
  29. return {
  30. id: item.id,
  31. title: item.title,
  32. desc: item.desc,
  33. image: item.thumbnail || item.image,
  34. addItems: [
  35. ],
  36. };
  37. }),
  38. }
  39. }
  40. </script>
  41. <style>
  42. </style>