diff --git a/app/screens/ProductCard.tsx b/app/screens/ProductCard.tsx index abef686..41e9b19 100644 --- a/app/screens/ProductCard.tsx +++ b/app/screens/ProductCard.tsx @@ -132,7 +132,7 @@ const ProductCard: React.FC = ({ category_id: product?.category_id || 0, price: item.offer_price || price || 0, all_price: totalPrice || 0, - currency: currency || "", + currency: product.currency || "", sku_id: item?.sku_id || 0, quantity: (item?.size as number) || 0, product_name: product?.subject || "", @@ -176,7 +176,7 @@ const ProductCard: React.FC = ({ category_id: product?.category_id || 0, price: item.offer_price || price || 0, all_price: totalPrice || 0, - currency: currency || "", + currency: product.currency || "", sku_id: item?.sku_id || 0, quantity: (item?.size as number) || 0, product_name: product?.subject || "", @@ -263,7 +263,7 @@ const ProductCard: React.FC = ({ {price} - {currency} + {product.currency} @@ -760,7 +760,7 @@ const ProductCard: React.FC = ({ 总价: - {totalPrice.toFixed(2)} {currency} + {totalPrice.toFixed(2)} {product.currency} diff --git a/app/services/api/productApi.ts b/app/services/api/productApi.ts index 1102af1..abd7f74 100644 --- a/app/services/api/productApi.ts +++ b/app/services/api/productApi.ts @@ -56,6 +56,7 @@ export type Products = Product[] "value_trans_en": string, "sku_image_url": string, 'has_color'?: boolean, + currency:string size?:number, list:Sku[], @@ -85,6 +86,7 @@ export type Products = Product[] export interface ProductDetailParams { "offer_id": 0, + currency:string "category_id": 0, "price": number | string, "subject": "string",