This commit is contained in:
jeremygan2021
2026-02-10 22:31:00 +08:00
parent 15c3954e75
commit 0ea5975c68
3 changed files with 23 additions and 4 deletions

View File

@@ -49,9 +49,12 @@ const ProductDetail = () => {
quantity: values.quantity,
customer_name: values.customer_name,
phone_number: values.phone_number,
// 如果是自提,手动设置地址,否则使用表单中的地址
shipping_address: isPickup ? '线下自提' : values.shipping_address,
ref_code: refCode
};
console.log('提交订单数据:', orderData); // 调试日志
const response = await nativePay(orderData);
message.success('订单已创建,请完成支付');
navigate(`/payment/${response.data.order_id}`, {