From 78bb47f8fcade30916fd9b73015aa622d55e52c7 Mon Sep 17 00:00:00 2001 From: ch Date: Mon, 18 Apr 2022 17:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=94=B6=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/order.js | 11 ++++- pages.json | 7 +++ pages/order/detail/components/Operation.vue | 23 ++++++++-- pages/order/logisitcsInfo.vue | 5 +-- pages/order/orderSuccess.vue | 48 +++++++++++++++++++++ pages/order/saleAfter/saleAfterApply.vue | 4 +- pages/order/saleAfter/saleAfterSelect.vue | 18 ++++++-- 7 files changed, 103 insertions(+), 13 deletions(-) create mode 100644 pages/order/orderSuccess.vue diff --git a/common/api/order.js b/common/api/order.js index f67f408..123d286 100644 --- a/common/api/order.js +++ b/common/api/order.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-03-29 17:38:17 * @LastEditors: ch - * @LastEditTime: 2022-04-18 15:37:05 + * @LastEditTime: 2022-04-18 17:42:52 * @Description: file content */ import {ToAsyncAwait, MsbRequestTk} from '@/common/utils'; @@ -21,6 +21,7 @@ export const ApiGetOrderList = (params) => */ export const ApiGetBeforeOrder = (data) => ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/tradeOrder/buyAdvanceOrder`, data)); + /** * 获取购物车预订单 * @param {*} data @@ -44,10 +45,16 @@ export const ApiGetOrderProductDetail = ({orderProductId}) => /** * 获取物流信息 - * @param {*} orderProductId + * @param {*} orderId */ export const ApiGetOrderLogistics = ({orderId}) => ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/tradeOrder/logistics/${orderId}`)); +/** + * 确认收货 + * @param {*} orderId + */ +export const ApiPutOrderReceive = (params) => + ToAsyncAwait(MsbRequestTk.put(`${BASE_URL}/app/tradeOrder/receive`, params)); /** * 提交订单 * @param {*} data diff --git a/pages.json b/pages.json index ae74b09..622e390 100644 --- a/pages.json +++ b/pages.json @@ -162,6 +162,13 @@ "navigationBarBackgroundColor" : "#F8F8F8" } }, + { + "path": "pages/order/orderSuccess", + "aliasPath" : "/orderSuccess", + "style": { + "navigationBarTitleText": "交易成功" + } + }, { "path": "pages/order/paySuccess", "aliasPath" : "/paySuccess", diff --git a/pages/order/detail/components/Operation.vue b/pages/order/detail/components/Operation.vue index 4d2419a..bef4b73 100644 --- a/pages/order/detail/components/Operation.vue +++ b/pages/order/detail/components/Operation.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-04-15 17:46:10 * @LastEditors: ch - * @LastEditTime: 2022-04-18 16:16:26 + * @LastEditTime: 2022-04-18 17:41:55 * @Description: file content -->