From 2d0b78af5212e308caa47cc9a94bfdf9c6717ee4 Mon Sep 17 00:00:00 2001 From: 15386982806 Date: Wed, 10 Jan 2024 18:56:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E5=8C=85=E8=A3=B9?= =?UTF-8?q?=E5=BF=AB=E9=80=92=E5=B1=95=E7=A4=BA=E7=89=A9=E6=B5=81=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/trade.js | 9 +++++++++ pages.json | 6 ++++++ pages/order/orderDetail.vue | 29 ++++++++++++++++++++++++++--- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/api/trade.js b/api/trade.js index 40b740f..5d2b1a7 100644 --- a/api/trade.js +++ b/api/trade.js @@ -319,3 +319,12 @@ export function reBuy(sn) { params, }); } + +// 查看包裹列表 +export function getPackage(orderSn) { + return http.request({ + url: `/order/order/getPackage/${orderSn}`, + method: Method.GET, + needToken: true, + }); +} \ No newline at end of file diff --git a/pages.json b/pages.json index bbce918..3e324e6 100644 --- a/pages.json +++ b/pages.json @@ -718,6 +718,12 @@ "navigationBarTitleText": "订单详情" } }, + { + "path": "deliverDetail", + "style": { + "navigationBarTitleText": "物流详情" + } + }, { "path": "evaluate/evaluateDetail", "style": { diff --git a/pages/order/orderDetail.vue b/pages/order/orderDetail.vue index e4c0793..ff79680 100644 --- a/pages/order/orderDetail.vue +++ b/pages/order/orderDetail.vue @@ -10,7 +10,7 @@ - + {{ logisticsList.traces[logisticsList.traces.length - 1].AcceptStation }} @@ -23,6 +23,14 @@ 券码: {{ order.orderStatus == 'CANCELLED' ? '已失效' : order.verificationCode }} + + + 当前订单有 {{ orderPackage.length }} 个包裹快递 + +
+ 点击此处查看 +
+
{{ '暂无物流信息' }} @@ -250,7 +258,7 @@