feat: 退款政策接口获取

This commit is contained in:
2026-02-26 19:43:40 +08:00
parent 23eb9dc467
commit 2656c59475
2 changed files with 25 additions and 6 deletions

View File

@@ -265,13 +265,17 @@ const OrderList = () => {
});
}
function handleQuit(item) {
async function handleQuit(item) {
if (refundRef.current) {
refundRef.current.show(item, (result) => {
if (result) {
getOrders(item.page);
}
});
const res = await orderService.getRefundPolicy({ order_id: item.id });
refundRef.current.show(
{ ...item, refund_policy: res.data.refund_policy },
(result) => {
if (result) {
getOrders(item.page);
}
},
);
}
}