diff --git a/sub-operation-service/src/apis/user.js b/sub-operation-service/src/apis/user.js index 24abb98..1d5c2e7 100644 --- a/sub-operation-service/src/apis/user.js +++ b/sub-operation-service/src/apis/user.js @@ -120,7 +120,21 @@ export function orderInfoGetById(params = {}) { } //申请退款 export function refundApprove(params = {}) { - return request('/user-center/refund/refundApprove', { + return request('/user-center/refund/approve', { + method: 'POST', + data: params, + }); +} +//确认收货 +export function sureToReceive(params = {}) { + return request('/user-center/orderInfo/sureToReceive', { + method: 'POST', + data: params, + }); +} +//付款 +export function payOrder(params = {}) { + return request('/user-center/orderInfo/payOrder', { method: 'POST', data: params, }); diff --git a/sub-operation-service/src/views/userCenter/orderDetails.vue b/sub-operation-service/src/views/userCenter/orderDetails.vue index 0d85bbf..5b9e52a 100644 --- a/sub-operation-service/src/views/userCenter/orderDetails.vue +++ b/sub-operation-service/src/views/userCenter/orderDetails.vue @@ -10,7 +10,7 @@ @@ -39,22 +39,26 @@ {{ - JSON.parse(route.query.page).orderStatus == '1' + detailsData.orderStatus == '1' ? '待支付' - : JSON.parse(route.query.page).orderStatus == '2' || JSON.parse(route.query.page).orderStatus == '3' + : detailsData.orderStatus == '2' || detailsData.orderStatus == '3' ? '待发货' - : JSON.parse(route.query.page).orderStatus == '4' || JSON.parse(route.query.page).orderStatus == '5' + : detailsData.orderStatus == '4' || detailsData.orderStatus == '5' ? '已发货' - : JSON.parse(route.query.page).orderStatus == '6' + : detailsData.orderStatus == '6' ? '已收货' - : JSON.parse(route.query.page).orderStatus == '7' + : detailsData.orderStatus == '7' ? '已取消' - : JSON.parse(route.query.page).orderStatus == '8' + : detailsData.orderStatus == '8' ? '已完成' - : '' + : detailsData.orderStatus == '10' + ? '退款中' + : detailsData.orderStatus == '11' + ? '已退款' + : '' }} - 在71小时59分59秒之前发货 + 在71小时59分59秒之前发货 @@ -105,6 +109,14 @@
付款时间
{{ detailsData.paymentTime }}
+
+
退款时间
+
{{ detailsData.refundTime }}
+
+
+
退款金额
+
{{ detailsData.refundAmount }}
+
付款信息
@@ -127,7 +139,7 @@
-
+
立即付款
修改地址
+
修改地址
-
支付方式
+
支付方式
+
+ 点击模拟支付 +
{ - router.push('/sub-operation-service/paySuccess'); + payOrder({ orderId: route.query.id }).then((res) => { + router.push('/sub-operation-service/paySuccess'); + }); };