123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <!-- 文旅融合 - 文创产品 -->
- <CommonListPage
- :title="'文创产品'"
- :prevPage="{ title: '文旅融合' }"
- :dropDownNames="[]"
- :pageSize="8"
- :load="loadData"
- :loadDetail="loadDetail"
- />
- </template>
- <script setup lang="ts">
- import { GetContentListParams } from '@/api/CommonContent';
- import ProductContent from '@/api/fusion/ProductContent';
- async function loadDetail(id: number, item: any) {
- const res = await ProductContent.getContentDetail(id);
- res.content = res.content || res.intro as string;
- res.addItems = [
- ];
- return res;
- }
- async function loadData(
- page: number,
- pageSize: number,
- selectedTag: number,
- searchText: string,
- dropDownValues: number[]
- ) {
- const res = await ProductContent.getContentList(new GetContentListParams(), page, pageSize);
- return {
- page: page,
- total: res.total,
- data: res.list.map((item, index) => {
- return {
- id: item.id,
- title: item.title,
- desc: item.desc,
- image: item.image,
- addItems: [
- ],
- };
- }),
- }
- }
- </script>
- <style>
- </style>
|