+ {/* 右侧图片区 - 错开叠放 */}
+
+ {/* 装饰性背景点 */}
+
+ {/* 错开叠放的图片容器 */}
+
+ {/* 第一张图片 - 较大,位置偏右 */}
+
+
+
+
+
+ {/* 第二张图片 - 较小,位置偏左,覆盖第一张图片 */}
+
+
+
+
+
+
+
{/* 左侧内容区 */}
-
+
- {/* 右侧图片区 */}
-
-
-
-
-
);
}
diff --git a/public/files/0qkrqnrooo_1642a7fd.png b/public/files/0qkrqnrooo_1642a7fd.png
new file mode 100644
index 0000000..bda3096
Binary files /dev/null and b/public/files/0qkrqnrooo_1642a7fd.png differ
diff --git a/public/files/1695275377553861.jpg b/public/files/1695275377553861.jpg
new file mode 100644
index 0000000..00afa98
Binary files /dev/null and b/public/files/1695275377553861.jpg differ
diff --git a/public/files/1706767374889974.jpg b/public/files/1706767374889974.jpg
new file mode 100644
index 0000000..55716fc
Binary files /dev/null and b/public/files/1706767374889974.jpg differ
diff --git a/public/files/1706841565240700.jpg b/public/files/1706841565240700.jpg
new file mode 100644
index 0000000..f77fd55
Binary files /dev/null and b/public/files/1706841565240700.jpg differ
diff --git a/utils/data.js b/utils/data.js
index 390deb9..55d80cf 100644
--- a/utils/data.js
+++ b/utils/data.js
@@ -185,7 +185,7 @@ export async function getAllSlugs() {
}
}
-export async function fetchComponentData(componentName) {
+export async function fetchComponentData(componentName, downloadFiles = true) {
try {
const res = await axios.get(
`${BACKEND_SERVER_URL}/api/action/jsite.api.v1.get_component_data`,
@@ -193,7 +193,14 @@ export async function fetchComponentData(componentName) {
params: { component_name: componentName, site_name: BACKEND_SITE_NAME },
}
);
- return { data: res.data.message?.data || null };
+
+ let data = res.data.message?.data || null;
+
+ if (data && downloadFiles) {
+ data = await processDataItem(data, downloadFiles);
+ }
+
+ return { data };
} catch (error) {
if (
error.response &&