【订单详情】

1、接入确认收货接口
pull/1/MERGE
YunaiV 2023-08-13 20:26:58 +08:00
parent d68b24445a
commit cf73be8270
2 changed files with 4 additions and 3 deletions

View File

@ -32,8 +32,8 @@ 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 receiveOrder(id) {
return request.put("app-api/trade/order/receive?id=" + id, {});
}
export function cancelOrder(id) {

View File

@ -305,6 +305,7 @@
import { mapGetters } from "vuex";
import dayjs from '@/plugin/dayjs/dayjs.min.js';
import * as Util from '@/utils/util.js';
import {receiveOrder} from "../../api/trade/order";
export default {
components: {
payment,
@ -434,7 +435,7 @@
if (!res.confirm) {
return
}
OrderApi.takeOrder(this.orderInfo.id).then(res => {
OrderApi.receiveOrder(this.orderInfo.id).then(res => {
return this.$util.Tips({
title: '收货成功',
icon: 'success'