|
|
@ -45,6 +45,7 @@ import CheckIcon from "../../components/CheckIcon"; |
|
|
|
import payMap from "../../utils/payMap"; |
|
|
|
import payMap from "../../utils/payMap"; |
|
|
|
import PhoneNumberInputModal from "../../screens/BalanceScreen/PhoneNumberInputModal"; |
|
|
|
import PhoneNumberInputModal from "../../screens/BalanceScreen/PhoneNumberInputModal"; |
|
|
|
import { cartApi } from "../../services/api/cart"; |
|
|
|
import { cartApi } from "../../services/api/cart"; |
|
|
|
|
|
|
|
import { getOrderTransLanguage } from "../../utils/languageUtils"; |
|
|
|
// 定义选项类型
|
|
|
|
// 定义选项类型
|
|
|
|
interface PaymentOption { |
|
|
|
interface PaymentOption { |
|
|
|
id: string; |
|
|
|
id: string; |
|
|
@ -666,7 +667,7 @@ export const OrderDetails = () => { |
|
|
|
<View style={styles.productItemInfo}> |
|
|
|
<View style={styles.productItemInfo}> |
|
|
|
<View style={styles.productItemInfoName}> |
|
|
|
<View style={styles.productItemInfoName}> |
|
|
|
<Text style={styles.productItemInfoNameText}> |
|
|
|
<Text style={styles.productItemInfoNameText}> |
|
|
|
{item.product_name} |
|
|
|
{getOrderTransLanguage(item) || item.product_name_fr} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View style={styles.productItemInfoSku}> |
|
|
|
<View style={styles.productItemInfoSku}> |
|
|
@ -738,7 +739,7 @@ export const OrderDetails = () => { |
|
|
|
{t("order.platform_shipping")} |
|
|
|
{t("order.platform_shipping")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text style={styles.orderIdText1}> |
|
|
|
<Text style={styles.orderIdText1}> |
|
|
|
{orderDetails.domestic_shipping_fee} |
|
|
|
{orderDetails.domestic_shipping_fee} {orderDetails.currency} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View style={styles.orderId}> |
|
|
|
<View style={styles.orderId}> |
|
|
@ -746,21 +747,21 @@ export const OrderDetails = () => { |
|
|
|
{t("order.international_shipping")} |
|
|
|
{t("order.international_shipping")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text style={styles.orderIdText1}> |
|
|
|
<Text style={styles.orderIdText1}> |
|
|
|
{orderDetails.shipping_fee} |
|
|
|
{orderDetails.shipping_fee} {orderDetails.currency} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View style={styles.dottedLine}></View> |
|
|
|
<View style={styles.dottedLine}></View> |
|
|
|
<View style={styles.orderId}> |
|
|
|
<View style={styles.orderId}> |
|
|
|
<Text style={styles.TotalText}>{t("order.total")}</Text> |
|
|
|
<Text style={styles.TotalText}>{t("order.total")}</Text> |
|
|
|
<Text style={styles.TotalPrice}> |
|
|
|
<Text style={styles.TotalPrice}> |
|
|
|
{orderDetails.total_amount} |
|
|
|
{orderDetails.total_amount} {orderDetails.currency} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View> |
|
|
|
<View> |
|
|
|
<Text style={styles.orderRemakeText}> |
|
|
|
<Text style={styles.orderRemakeText}> |
|
|
|
+ ${orderDetails.shipping_fee}{" "} |
|
|
|
+ {orderDetails.shipping_fee}{" "} |
|
|
|
{t("order.estimated_shipping")} |
|
|
|
{t("order.estimated_shipping")} |
|
|
|
(COD) |
|
|
|
({orderDetails.currency}) |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|