|
@@ -141,13 +141,17 @@ import { Carousel, Slide, Pagination, Navigation } from 'vue3-carousel'
|
|
import { onMounted, ref } from 'vue';
|
|
import { onMounted, ref } from 'vue';
|
|
import { useRouter } from 'vue-router';
|
|
import { useRouter } from 'vue-router';
|
|
import { useSimpleDataLoader } from '@/composeable/SimpleDataLoader';
|
|
import { useSimpleDataLoader } from '@/composeable/SimpleDataLoader';
|
|
-import { GetContentListParams, type GetContentListItem } from '@/api/CommonContent';
|
|
|
|
|
|
+import CommonContent, { GetContentListParams, type GetContentListItem } from '@/api/CommonContent';
|
|
import NewsIndexContent from '@/api/news/NewsIndexContent';
|
|
import NewsIndexContent from '@/api/news/NewsIndexContent';
|
|
import ImageTitleBlock from '@/components/parts/ImageTitleBlock.vue';
|
|
import ImageTitleBlock from '@/components/parts/ImageTitleBlock.vue';
|
|
import SimplePageContentLoader from '@/components/content/SimplePageContentLoader.vue';
|
|
import SimplePageContentLoader from '@/components/content/SimplePageContentLoader.vue';
|
|
import IndexContent from '@/api/introduction/IndexContent';
|
|
import IndexContent from '@/api/introduction/IndexContent';
|
|
import { NO_CONTENT_STRING } from '@/common/ConstStrings';
|
|
import { NO_CONTENT_STRING } from '@/common/ConstStrings';
|
|
import SimpleRemoveRichHtml from '@/components/display/SimpleRemoveRichHtml.vue';
|
|
import SimpleRemoveRichHtml from '@/components/display/SimpleRemoveRichHtml.vue';
|
|
|
|
+import UnmoveableContent from '@/api/inheritor/UnmoveableContent';
|
|
|
|
+import ProjectContent from '@/api/research/ProjectContent';
|
|
|
|
+import ActivityContent from '@/api/inheritor/ActivityContent';
|
|
|
|
+import ProductContent from '@/api/fusion/ProductContent';
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
|
|
|
@@ -189,9 +193,22 @@ const overviewData = useSimpleDataLoader(async () => {
|
|
}))).list[0]?.overview || NO_CONTENT_STRING
|
|
}))).list[0]?.overview || NO_CONTENT_STRING
|
|
});
|
|
});
|
|
const recommendData = useSimpleDataLoader<GetContentListItem[]>(async () => {
|
|
const recommendData = useSimpleDataLoader<GetContentListItem[]>(async () => {
|
|
- return (await NewsIndexContent.getContentList(new GetContentListParams().setSelfValues({
|
|
|
|
|
|
+ const list = [];
|
|
|
|
+
|
|
|
|
+ list.push(...(await UnmoveableContent.getContentList(new GetContentListParams().setSelfValues({
|
|
flag: 'recommend',
|
|
flag: 'recommend',
|
|
- }), 1, 6)).list
|
|
|
|
|
|
+ }), 1, 2)).list);
|
|
|
|
+ list.push(...(await ProductContent.getContentList(new GetContentListParams().setSelfValues({
|
|
|
|
+ flag: 'recommend',
|
|
|
|
+ }), 1, 2)).list);
|
|
|
|
+ list.push(...(await ProjectContent.getContentList(new GetContentListParams().setSelfValues({
|
|
|
|
+ flag: 'recommend',
|
|
|
|
+ }), 1, 2)).list);
|
|
|
|
+ list.push(...(await ActivityContent.getContentList(new GetContentListParams().setSelfValues({
|
|
|
|
+ flag: 'recommend',
|
|
|
|
+ }), 1, 2)).list);
|
|
|
|
+
|
|
|
|
+ return list;
|
|
});
|
|
});
|
|
const newsData = useSimpleDataLoader<GetContentListItem[]>(async () => {
|
|
const newsData = useSimpleDataLoader<GetContentListItem[]>(async () => {
|
|
return (await NewsIndexContent.getContentList(new GetContentListParams().setSelfValues({
|
|
return (await NewsIndexContent.getContentList(new GetContentListParams().setSelfValues({
|