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 @@