diff --git a/api/trade/delivery.js b/api/trade/delivery.js index 35888474..a8d86997 100644 --- a/api/trade/delivery.js +++ b/api/trade/delivery.js @@ -9,3 +9,10 @@ export function getDeliveryConfig() { export function getDeliveryPickUpStoreList(data) { return request.get("app-api/trade/delivery/pick-up-store/list", data); } + +// 获得自提门店 +export function getDeliveryPickUpStore(id) { + return request.get("app-api/trade/delivery/pick-up-store/get", { + id + }); +} diff --git a/api/trade/order.js b/api/trade/order.js index 1048f7c8..faca6294 100644 --- a/api/trade/order.js +++ b/api/trade/order.js @@ -32,6 +32,10 @@ export function getOrderPage(data) { return request.get("app-api/trade/order/page", data); } +export function takeOrder(id) { + return request.put("app-api/trade/order/take?id=" + id, {}); +} + export function cancelOrder(id) { return request.delete("app-api/trade/order/cancel?id=" + id, {}); } diff --git a/pages/order_details/index.vue b/pages/order_details/index.vue index 86c37be5..49a7efa2 100644 --- a/pages/order_details/index.vue +++ b/pages/order_details/index.vue @@ -67,7 +67,7 @@ - + 核销信息 @@ -79,11 +79,11 @@ - {{orderInfo.verifyCode}} - + {{ orderInfo.verifyCode }} + - 核销时间 + 核销时间 每日:{{orderInfo.systemStore.dayTime.replace(',','-')}} @@ -97,27 +97,27 @@ - + 自提地址信息 - 查看位置 + 查看位置 - + + {{ system_store.name }} + {{ system_store.phone }} + + + {{ system_store.areaName }} {{ system_store.detailAddress }} + + {{ orderInfo.receiverName }} {{ orderInfo.receiverMobile }} {{ orderInfo.receiverAreaName }} {{ orderInfo.receiverDetailAddress}} - - - {{orderInfo.systemStore?orderInfo.systemStore.name:''}}{{orderInfo.systemStore?orderInfo.systemStore.phone:''}} - {{orderInfo.systemStore?orderInfo.systemStore.detailedAddress:''}} - - + 配送方式: 发货 + 快递公司: - {{orderInfo.deliveryName || ''}} + {{ orderInfo.deliveryName || ''}} 快递号: - {{orderInfo.deliveryId || ''}} + {{ orderInfo.deliveryId || ''}} - + 配送方式: - 送货 - - - 配送人姓名: - {{orderInfo.deliveryName || ''}} - - - 联系电话: - {{orderInfo.deliveryId || ''}}拨打 + 门店自提 - + 虚拟发货: 已发货,请注意查收 @@ -309,13 +301,9 @@