|
|
|
@ -54,15 +54,7 @@ import { cartApi } from "../../services/api/cart";
|
|
|
|
|
import IconComponent from "../../components/IconComponent"; |
|
|
|
|
import AsyncStorage from "@react-native-async-storage/async-storage"; |
|
|
|
|
import { CountryList } from "../../constants/countries"; |
|
|
|
|
|
|
|
|
|
// 定义本地存储的国家数据类型
|
|
|
|
|
interface LocalCountryData { |
|
|
|
|
code: string; |
|
|
|
|
flag: string; |
|
|
|
|
name: string; |
|
|
|
|
phoneCode: string; |
|
|
|
|
userCount: number; |
|
|
|
|
} |
|
|
|
|
import { getOrderTransLanguage } from "../../utils/languageUtils"; |
|
|
|
|
|
|
|
|
|
// 定义选项类型
|
|
|
|
|
interface PaymentOption { |
|
|
|
@ -78,6 +70,15 @@ interface TabType {
|
|
|
|
|
options: PaymentOption[]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 定义本地存储的国家数据类型
|
|
|
|
|
interface LocalCountryData { |
|
|
|
|
code: string; |
|
|
|
|
flag: string; |
|
|
|
|
name: string; |
|
|
|
|
phoneCode: string; |
|
|
|
|
userCount: number; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type Styles = { |
|
|
|
|
safeArea: ViewStyle; |
|
|
|
|
safeAreaContent: ViewStyle; |
|
|
|
@ -970,7 +971,7 @@ export const OrderDetails = () => {
|
|
|
|
|
<View style={styles.productItemInfo}> |
|
|
|
|
<View style={styles.productItemInfoName}> |
|
|
|
|
<Text style={styles.productItemInfoNameText}> |
|
|
|
|
{item.product_name} |
|
|
|
|
{getOrderTransLanguage(item) || item.product_name_fr} |
|
|
|
|
</Text> |
|
|
|
|
</View> |
|
|
|
|
<View style={styles.productItemInfoSku}> |
|
|
|
@ -1042,7 +1043,7 @@ export const OrderDetails = () => {
|
|
|
|
|
{t("order.platform_shipping")} |
|
|
|
|
</Text> |
|
|
|
|
<Text style={styles.orderIdText1}> |
|
|
|
|
{orderDetails.domestic_shipping_fee} |
|
|
|
|
{orderDetails.domestic_shipping_fee} {orderDetails.currency} |
|
|
|
|
</Text> |
|
|
|
|
</View> |
|
|
|
|
<View style={styles.orderId}> |
|
|
|
@ -1050,21 +1051,21 @@ export const OrderDetails = () => {
|
|
|
|
|
{t("order.international_shipping")} |
|
|
|
|
</Text> |
|
|
|
|
<Text style={styles.orderIdText1}> |
|
|
|
|
{orderDetails.shipping_fee} |
|
|
|
|
{orderDetails.shipping_fee} {orderDetails.currency} |
|
|
|
|
</Text> |
|
|
|
|
</View> |
|
|
|
|
<View style={styles.dottedLine}></View> |
|
|
|
|
<View style={styles.orderId}> |
|
|
|
|
<Text style={styles.TotalText}>{t("order.total")}</Text> |
|
|
|
|
<Text style={styles.TotalPrice}> |
|
|
|
|
{orderDetails.total_amount} |
|
|
|
|
{orderDetails.total_amount} {orderDetails.currency} |
|
|
|
|
</Text> |
|
|
|
|
</View> |
|
|
|
|
<View> |
|
|
|
|
<Text style={styles.orderRemakeText}> |
|
|
|
|
+ ${orderDetails.shipping_fee}{" "} |
|
|
|
|
+ {orderDetails.shipping_fee}{" "} |
|
|
|
|
{t("order.estimated_shipping")} |
|
|
|
|
(COD) |
|
|
|
|
({orderDetails.currency}) |
|
|
|
|
</Text> |
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|