Browse Source

refactor: 移除订单详情显示并修改按钮文本

main
Your Name 3 weeks ago committed by Your Name (aider)
parent
commit
198ea93ba6
  1. 48
      app/screens/previewOrder/perviewOrder.tsx

48
app/screens/previewOrder/perviewOrder.tsx

@ -45,30 +45,9 @@ export const PreviewOrder = () => {
<Text style={styles.titleHeading}></Text>
</View>
{/* Order Details */}
<View style={styles.section}>
<Text style={styles.sectionTitle}></Text>
<View style={styles.detailItem}>
<Text style={styles.detailLabel}>:</Text>
<Text style={styles.detailValue}>{orderData?.address || "请选择地址"}</Text>
</View>
<View style={styles.detailItem}>
<Text style={styles.detailLabel}>:</Text>
<Text style={styles.detailValue}>{orderData?.amount || "N/A"}</Text>
</View>
<View style={styles.detailItem}>
<Text style={styles.detailLabel}>:</Text>
<Text style={styles.detailValue}>{orderData?.shipping_fee || "N/A"}</Text>
</View>
<View style={styles.detailItem}>
<Text style={styles.detailLabel}>WhatsApp :</Text>
<Text style={styles.detailValue}>{orderData?.whatsapp_phone || "N/A"}</Text>
</View>
</View>
{/* Payment Details */}
<View style={styles.section}>
{showPhoneInput && (
<View style={styles.phoneInputContainer}>
<Text style={styles.phoneInputLabel}></Text>
@ -82,7 +61,7 @@ export const PreviewOrder = () => {
</View>
)}
</View>
<View style={styles.submitButtonContainer}>
<TouchableOpacity
style={[
@ -92,7 +71,7 @@ export const PreviewOrder = () => {
onPress={handleSubmit}
disabled={showPhoneInput && !phoneNumber}
>
<Text style={styles.buttonText}></Text>
<Text style={styles.buttonText}></Text>
</TouchableOpacity>
</View>
</View>
@ -203,25 +182,4 @@ const styles = StyleSheet.create({
fontSize: 16,
backgroundColor: "#f9f9f9",
},
detailItem: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 6,
borderBottomWidth: 1,
borderBottomColor: '#f0f0f0', // Lighter separator line
},
detailLabel: {
fontSize: 15,
color: '#333333',
fontFamily: "PingFang SC",
fontWeight: '500',
},
detailValue: {
fontSize: 15,
color: '#666666',
fontFamily: "PingFang SC",
textAlign: 'right',
flexShrink: 1, // Allow text to shrink if needed
},
});

Loading…
Cancel
Save