Add precision gear dimension images
This commit is contained in:
@@ -7,6 +7,7 @@ export type CatalogProduct = {
|
||||
name: string;
|
||||
code: string;
|
||||
image: string;
|
||||
dimensionImage?: string;
|
||||
page: number;
|
||||
specs: Record<string, string>;
|
||||
torqueValue: number | null;
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user