|
@@ -31,7 +31,7 @@
|
|
|
</div>
|
|
|
|
|
|
<SimplePageContentLoader :loader="recommend1Data">
|
|
|
- <Carousel ref="carousel2Ref" v-bind="carousel2Config">
|
|
|
+ <Carousel ref="carousel5Ref" v-bind="carousel2Config">
|
|
|
<Slide
|
|
|
v-for="(item, index) in recommend1Data.content.value"
|
|
|
:key="index"
|
|
@@ -47,8 +47,8 @@
|
|
|
</SimplePageContentLoader>
|
|
|
|
|
|
<div class="simple-carousel2-left-right">
|
|
|
- <div @click="carousel2Ref?.prev()">←</div>
|
|
|
- <div @click="carousel2Ref?.next()">→</div>
|
|
|
+ <div @click="carousel5Ref?.prev()">←</div>
|
|
|
+ <div @click="carousel5Ref?.next()">→</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
@@ -91,7 +91,7 @@
|
|
|
</div>
|
|
|
|
|
|
<SimplePageContentLoader :loader="recommend3Data">
|
|
|
- <Carousel ref="carousel2Ref" v-bind="carousel2Config">
|
|
|
+ <Carousel ref="carousel6Ref" v-bind="carousel2Config">
|
|
|
<Slide
|
|
|
v-for="(item, index) in recommend3Data.content.value"
|
|
|
:key="index"
|
|
@@ -107,8 +107,8 @@
|
|
|
</SimplePageContentLoader>
|
|
|
|
|
|
<div class="simple-carousel2-left-right">
|
|
|
- <div @click="carousel2Ref?.prev()">←</div>
|
|
|
- <div @click="carousel2Ref?.next()">→</div>
|
|
|
+ <div @click="carousel6Ref?.prev()">←</div>
|
|
|
+ <div @click="carousel6Ref?.next()">→</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
@@ -212,6 +212,7 @@ import UnmoveableContent from '@/api/inheritor/UnmoveableContent';
|
|
|
import ProjectContent from '@/api/research/ProjectContent';
|
|
|
import ActivityContent from '@/api/inheritor/ActivityContent';
|
|
|
import ProductContent from '@/api/fusion/ProductContent';
|
|
|
+import ProductsContent from '@/api/inheritor/ProductsContent';
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
@@ -233,6 +234,8 @@ const carousel3Config = ref({
|
|
|
autoplay: 3000,
|
|
|
});
|
|
|
const carousel3Ref = ref<any>(null);
|
|
|
+const carousel5Ref = ref<any>(null);
|
|
|
+const carousel6Ref = ref<any>(null);
|
|
|
|
|
|
onMounted(() => {
|
|
|
if (window.innerWidth <= 435) {
|
|
@@ -253,21 +256,16 @@ const overviewData = useSimpleDataLoader(async () => {
|
|
|
}))).list[0]?.overview || NO_CONTENT_STRING
|
|
|
});
|
|
|
const recommend1Data = useSimpleDataLoader<GetContentListItem[]>(async () => {
|
|
|
- return (await UnmoveableContent.getContentList(new GetContentListParams().setSelfValues({
|
|
|
-
|
|
|
- }), 1, 6)).list;
|
|
|
+ return (await UnmoveableContent.getContentList(new GetContentListParams(), 1, 8)).list;
|
|
|
});
|
|
|
const recommend2Data = useSimpleDataLoader<GetContentListItem[]>(async () => {
|
|
|
- return (await CommonContent.getContentList(new GetContentListParams()
|
|
|
- .setModelId(3)
|
|
|
- .setMainBodyColumnId(238)
|
|
|
- , 1, 6)).list
|
|
|
+ return (await ProductsContent.getContentList(new GetContentListParams(), 1, 8)).list
|
|
|
});
|
|
|
const recommend3Data = useSimpleDataLoader<GetContentListItem[]>(async () => {
|
|
|
return (await CommonContent.getContentList(new GetContentListParams()
|
|
|
.setModelId(17)
|
|
|
.setMainBodyColumnId(273)
|
|
|
- , 1, 6)).list
|
|
|
+ , 1, 8)).list
|
|
|
});
|
|
|
const newsData = useSimpleDataLoader<GetContentListItem[]>(async () => {
|
|
|
return (await NewsIndexContent.getContentList(new GetContentListParams().setSelfValues({
|