From 80dee791a2d55cba2916e22c246dcf6b2e897b68 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 9 Jan 2025 14:14:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=88=86=E9=A1=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/refund/apply.vue | 2 +- src/sheep/api/refund.ts | 6 +++--- src/sheep/hooks/use-page.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/refund/apply.vue b/src/pages/refund/apply.vue index c048abf..4480179 100644 --- a/src/pages/refund/apply.vue +++ b/src/pages/refund/apply.vue @@ -93,7 +93,7 @@ const doSubmit = async () => { const _pa = { way: applyForm.way, refundPrice: state.detail.practicalTotalPrice, - orderItemId: state.detailId, + orderId: state.detailId, images: [], applyReason: applyForm.reasonStr, applyDescription: applyForm.remark, diff --git a/src/sheep/api/refund.ts b/src/sheep/api/refund.ts index 709c16b..428adbf 100644 --- a/src/sheep/api/refund.ts +++ b/src/sheep/api/refund.ts @@ -10,21 +10,21 @@ export default { }, cancel: (params: any) => { return request({ - url: "/hard/trade-after-sale/app/cancel", + url: "/hard/hard-after-sale/app/cancel", method: "GET", params, }); }, get: (params: any) => { return request({ - url: "/hard/trade-after-sale/app/detail-by-order-id", + url: "/hard/hard-after-sale/app/detail-by-order-id", method: "GET", params, }); }, history: (params: any) => { return request({ - url: "/hard/trade-after-sale/app/history", + url: "/hard/hard-after-sale/app/history", method: "GET", params, }); diff --git a/src/sheep/hooks/use-page.ts b/src/sheep/hooks/use-page.ts index d7c91c7..aa404ab 100644 --- a/src/sheep/hooks/use-page.ts +++ b/src/sheep/hooks/use-page.ts @@ -50,8 +50,8 @@ export const usePage = ( return state; } const _data = { - pageNo: page, - pagesize: pagesize, + current: page, + size: pagesize, ...query, }; try {