|
|
|
@ -45,29 +45,6 @@ export const PreviewOrder = () => {
|
|
|
|
|
<Text style={styles.titleHeading}>立即支付</Text> |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
{/* Order Details Card */} |
|
|
|
|
<View style={styles.card}> |
|
|
|
|
<Text style={styles.cardTitle}>订单详情</Text> |
|
|
|
|
<View style={styles.detailRow}> |
|
|
|
|
<Text style={styles.detailLabel}>收货地址:</Text> |
|
|
|
|
<Text style={styles.detailValue} numberOfLines={2} ellipsizeMode="tail">{orderData?.address || "请选择地址"}</Text> |
|
|
|
|
</View> |
|
|
|
|
<View style={styles.detailRow}> |
|
|
|
|
<Text style={styles.detailLabel}>订单金额:</Text> |
|
|
|
|
<Text style={styles.detailValue}>{orderData?.amount ? `${orderData.currency || ''} ${orderData.amount}` : "N/A"}</Text> |
|
|
|
|
</View> |
|
|
|
|
<View style={styles.detailRow}> |
|
|
|
|
<Text style={styles.detailLabel}>运费:</Text> |
|
|
|
|
<Text style={styles.detailValue}>{orderData?.shipping_fee ? `${orderData.currency || ''} ${orderData.shipping_fee}` : "N/A"}</Text> |
|
|
|
|
</View> |
|
|
|
|
{orderData?.whatsapp_phone && ( |
|
|
|
|
<View style={styles.detailRow}> |
|
|
|
|
<Text style={styles.detailLabel}>WhatsApp:</Text> |
|
|
|
|
<Text style={styles.detailValue}>{orderData.whatsapp_phone}</Text> |
|
|
|
|
</View> |
|
|
|
|
)} |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
{/* Payment Details */} |
|
|
|
|
<View style={styles.section}> |
|
|
|
|
|
|
|
|
@ -83,6 +60,29 @@ export const PreviewOrder = () => {
|
|
|
|
|
/> |
|
|
|
|
</View> |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
{/* Order Details Card */} |
|
|
|
|
<View style={styles.card}> |
|
|
|
|
<Text style={styles.cardTitle}>订单详情</Text> |
|
|
|
|
<View style={styles.detailRow}> |
|
|
|
|
<Text style={styles.detailLabel}>收货地址:</Text> |
|
|
|
|
<Text style={styles.detailValue} numberOfLines={2} ellipsizeMode="tail">{orderData?.address || "请选择地址"}</Text> |
|
|
|
|
</View> |
|
|
|
|
<View style={styles.detailRow}> |
|
|
|
|
<Text style={styles.detailLabel}>订单金额:</Text> |
|
|
|
|
<Text style={styles.detailValue}>{orderData?.amount ? `${orderData.currency || ''} ${orderData.amount}` : "N/A"}</Text> |
|
|
|
|
</View> |
|
|
|
|
<View style={styles.detailRow}> |
|
|
|
|
<Text style={styles.detailLabel}>运费:</Text> |
|
|
|
|
<Text style={styles.detailValue}>{orderData?.shipping_fee ? `${orderData.currency || ''} ${orderData.shipping_fee}` : "N/A"}</Text> |
|
|
|
|
</View> |
|
|
|
|
{orderData?.whatsapp_phone && ( |
|
|
|
|
<View style={styles.detailRow}> |
|
|
|
|
<Text style={styles.detailLabel}>WhatsApp:</Text> |
|
|
|
|
<Text style={styles.detailValue}>{orderData.whatsapp_phone}</Text> |
|
|
|
|
</View> |
|
|
|
|
)} |
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<View style={styles.submitButtonContainer}> |
|
|
|
|