|
|
@@ -32,6 +32,7 @@
|
|
|
v-for="(item, i) in category.data.content.value"
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
+ :titleBox="item.titleBox"
|
|
|
:desc="item.desc"
|
|
|
:tags="(item.bottomTags as string[])"
|
|
|
@click="category.detailsPage(item)"
|
|
|
@@ -46,6 +47,7 @@
|
|
|
title1
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
+ :titleBox="Boolean(item.titleBox)"
|
|
|
:desc="item.desc"
|
|
|
:image="item.image"
|
|
|
:tags="(item.bottomTags as string[])"
|
|
|
@@ -64,6 +66,7 @@
|
|
|
title1
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
+ :titleBox="Boolean(item.titleBox)"
|
|
|
:desc="item.desc"
|
|
|
:image="item.image"
|
|
|
:tags="(item.bottomTags as string[])"
|
|
|
@@ -83,6 +86,7 @@
|
|
|
fixSize
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
+ :titleBox="Boolean(item.titleBox)"
|
|
|
:desc="item.desc"
|
|
|
:image="item.thumbnail || item.image"
|
|
|
:tags="(item.bottomTags as string[])"
|
|
|
@@ -100,6 +104,7 @@
|
|
|
fixSize
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
+ :titleBox="Boolean(item.titleBox)"
|
|
|
:desc="item.desc"
|
|
|
:image="item.image"
|
|
|
:tags="(item.bottomTags as string[])"
|
|
|
@@ -140,6 +145,7 @@
|
|
|
fixSize
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
+ :titleBox="Boolean(item.titleBox)"
|
|
|
:desc="item.desc"
|
|
|
:showImage="false"
|
|
|
:tags="(item.bottomTags as string[])"
|
|
|
@@ -153,6 +159,7 @@
|
|
|
fixSize
|
|
|
:key="i"
|
|
|
:title="item.title"
|
|
|
+ :titleBox="Boolean(item.titleBox)"
|
|
|
:desc="item.desc"
|
|
|
:image="item.image"
|
|
|
:tags="(item.bottomTags as string[])"
|
|
|
@@ -234,9 +241,12 @@ const categoryDatas = computed(() => props.categoryDefine.map(item => {
|
|
|
if (item.morePage) {
|
|
|
navTo(item.morePage, {});
|
|
|
} else {
|
|
|
+ let mainBodyColumnId : any = content.mainBodyColumnId;
|
|
|
+ if (item.data.type === 'serializedApi' && item.data.params?.mainBodyColumnId)
|
|
|
+ mainBodyColumnId = item.data.params.mainBodyColumnId;
|
|
|
navCommonList({
|
|
|
title: item.title,
|
|
|
- mainBodyColumnId: content.mainBodyColumnId,
|
|
|
+ mainBodyColumnId: mainBodyColumnId,
|
|
|
modelId: content.modelId,
|
|
|
detailsPage: item.detailsPage,
|
|
|
dataSolve: item.dataSolve || [],
|
|
|
@@ -244,8 +254,11 @@ const categoryDatas = computed(() => props.categoryDefine.map(item => {
|
|
|
}
|
|
|
},
|
|
|
data: useSimpleDataLoader(async () => {
|
|
|
+ const params = new GetContentListParams();
|
|
|
+ if (item.data.type === 'serializedApi' && item.data.params?.mainBodyColumnId)
|
|
|
+ params.setMainBodyColumnId(item.data.params.mainBodyColumnId);
|
|
|
let res = (await (item.content as CommonContentApi)
|
|
|
- .getContentList(new GetContentListParams(), 1, item.count || 4))
|
|
|
+ .getContentList(params, 1, item.count || 4))
|
|
|
.list;
|
|
|
return resolveCommonContentSolveProps(res, item.dataSolve || []);;
|
|
|
}, false)
|