Add precision gear dimension images

This commit is contained in:
Jacky Ser
2026-08-11 17:09:33 +08:00
parent 05de730115
commit 775ccf82ab
362 changed files with 733 additions and 362 deletions

View File

@@ -7,6 +7,7 @@ export type CatalogProduct = {
name: string;
code: string;
image: string;
dimensionImage?: string;
page: number;
specs: Record<string, string>;
torqueValue: number | null;

View File

@@ -119,6 +119,10 @@ export function getCatalogProductImage(product: CatalogProduct) {
}
export function getCatalogProductDimensionImage(product: CatalogProduct) {
if (product.category === "精密齿轮配件") {
return product.dimensionImage ?? null;
}
if (product.category === "舵盘配件") {
return SOURCE_SIZE_IMAGES[product.id.replace("shop-", "")] ?? null;
}

File diff suppressed because it is too large Load Diff