From 06b4e6b01ea4d19fd20f68e72c0ea58a074e4964 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 14 Dec 2023 23:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E8=AE=A2=E5=8D=95=E7=89=A9?= =?UTF-8?q?=E6=B5=81=EF=BC=9A=E6=8E=A5=E5=85=A5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 10 ---- pages/order/detail.vue | 10 ++-- pages/order/express/list.vue | 104 ----------------------------------- pages/order/express/log.vue | 86 +++++++++++++---------------- pages/order/list.vue | 8 +-- sheep/api/trade/order.js | 28 ++-------- 6 files changed, 51 insertions(+), 195 deletions(-) delete mode 100644 pages/order/express/list.vue diff --git a/pages.json b/pages.json index 74ed57a9..9b831895 100644 --- a/pages.json +++ b/pages.json @@ -260,16 +260,6 @@ "auth": true, "title": "物流轨迹" } - }, - { - "path": "express/list", - "style": { - "navigationBarTitleText": "订单包裹" - }, - "meta": { - "auth": true, - "title": "订单包裹" - } } ] }, diff --git a/pages/order/detail.vue b/pages/order/detail.vue index 1a3828e3..52998739 100644 --- a/pages/order/detail.vue +++ b/pages/order/detail.vue @@ -299,10 +299,10 @@ }); } - // 查看物流 TODO 芋艿:待测试 - async function onExpress(orderId) { - sheep.$router.go('/pages/order/express/list', { - orderId, + // 查看物流 + async function onExpress(id) { + sheep.$router.go('/pages/order/express/log', { + id, }); } @@ -376,7 +376,7 @@ merchant_trade_no: state.merchantTradeNo, }); } else { - res = await sheep.$api.order.detail(id); + res = await OrderApi.getOrder(id); } if (res.code === 0) { state.orderInfo = res.data; diff --git a/pages/order/express/list.vue b/pages/order/express/list.vue deleted file mode 100644 index 5e285a27..00000000 --- a/pages/order/express/list.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - diff --git a/pages/order/express/log.vue b/pages/order/express/log.vue index 1dd80910..0292dbf3 100644 --- a/pages/order/express/log.vue +++ b/pages/order/express/log.vue @@ -2,65 +2,46 @@