Browse Source

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

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

44
app/screens/previewOrder/perviewOrder.tsx

@ -45,27 +45,6 @@ export const PreviewOrder = () => {
<Text style={styles.titleHeading}></Text> <Text style={styles.titleHeading}></Text>
</View> </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 */} {/* Payment Details */}
<View style={styles.section}> <View style={styles.section}>
@ -92,7 +71,7 @@ export const PreviewOrder = () => {
onPress={handleSubmit} onPress={handleSubmit}
disabled={showPhoneInput && !phoneNumber} disabled={showPhoneInput && !phoneNumber}
> >
<Text style={styles.buttonText}></Text> <Text style={styles.buttonText}></Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
@ -203,25 +182,4 @@ const styles = StyleSheet.create({
fontSize: 16, fontSize: 16,
backgroundColor: "#f9f9f9", 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