From 52776c97dae454b4acfc3624163cf02014554c5c Mon Sep 17 00:00:00 2001 From: puhui999 Date: Mon, 28 Aug 2023 17:18:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=94=AE=E5=90=8E=E5=88=97?= =?UTF-8?q?=E8=A1=A8=EF=BC=9A=E5=88=9D=E5=A7=8B=E5=8C=96=E5=94=AE=E5=90=8E?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 8a51c9c771472ebe7ccf21ad986d03c4e4b354e4) --- src/api/mall/trade/afterSale/index.ts | 13 +- src/router/modules/remaining.ts | 8 +- .../mall/trade/afterSale/detail/index.vue | 190 ++++++++++++++++++ src/views/mall/trade/afterSale/index.vue | 55 +++-- 4 files changed, 245 insertions(+), 21 deletions(-) create mode 100644 src/views/mall/trade/afterSale/detail/index.vue diff --git a/src/api/mall/trade/afterSale/index.ts b/src/api/mall/trade/afterSale/index.ts index cc97d628..8eb673b1 100644 --- a/src/api/mall/trade/afterSale/index.ts +++ b/src/api/mall/trade/afterSale/index.ts @@ -40,15 +40,12 @@ export interface ProductPropertiesVO { valueName?: string // 属性值的名称 } -// 获得交易售后 -export function getAfterSale(id) { - return request({ - url: '/trade/after-sale/get?id=' + id, - method: 'get' - }) -} - // 获得交易售后分页 export const getAfterSalePage = async (params) => { return await request.get({ url: `/trade/after-sale/page`, params }) } + +// 获得交易售后详情 +export const getAfterSale = async (id) => { + return await request.get({ url: `/trade/after-sale/get-detail?id=${id}` }) +} diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 690b5c3c..0681e166 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -401,10 +401,16 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, children: [ { - path: 'detail/:orderId(\\d+)', + path: 'orderDetail/:orderId(\\d+)', component: () => import('@/views/mall/trade/order/detail/index.vue'), name: 'TradeOrderDetail', meta: { title: '订单详情', icon: '', activeMenu: '/trade/trade/order' } + }, + { + path: 'afterSaleDetail/:orderId(\\d+)', + component: () => import('@/views/mall/trade/afterSale/detail/index.vue'), + name: 'TradeAfterSaleDetail', + meta: { title: '退款详情', icon: '', activeMenu: '/trade/trade/after-sale' } } ] }, diff --git a/src/views/mall/trade/afterSale/detail/index.vue b/src/views/mall/trade/afterSale/detail/index.vue new file mode 100644 index 00000000..d651db8a --- /dev/null +++ b/src/views/mall/trade/afterSale/detail/index.vue @@ -0,0 +1,190 @@ + + + diff --git a/src/views/mall/trade/afterSale/index.vue b/src/views/mall/trade/afterSale/index.vue index b96fc93d..fcde9b04 100644 --- a/src/views/mall/trade/afterSale/index.vue +++ b/src/views/mall/trade/afterSale/index.vue @@ -91,19 +91,32 @@ - - - - - - - - - + + + + + + @@ -124,8 +137,8 @@ -