You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-03-29 17:38:17
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-04-02 09:58:29
|
|
|
|
* @Description: file content
|
|
|
|
*/
|
|
|
|
import {ToAsyncAwait, MsbRequest} from '@/common/utils';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取订单
|
|
|
|
* @param {*} params
|
|
|
|
*/
|
|
|
|
export const ApiGetOrderList = (params) =>
|
|
|
|
ToAsyncAwait(MsbRequest.get('/app/tradeOrder/page', params));
|
|
|
|
/**
|
|
|
|
* 获取预订单
|
|
|
|
* @param {*} data
|
|
|
|
*/
|
|
|
|
export const ApiGetBeforeOrder = (data) =>
|
|
|
|
ToAsyncAwait(MsbRequest.get('/app/tradeOrder/buyAdvanceOrder', data));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 订单详情
|
|
|
|
* @param {*} id
|
|
|
|
*/
|
|
|
|
export const ApiGetOrderDetail = (id) =>
|
|
|
|
ToAsyncAwait(MsbRequest.get(`/app/tradeOrder/${id}`));
|
|
|
|
/**
|
|
|
|
* 提交订单
|
|
|
|
* @param {*} data
|
|
|
|
*/
|
|
|
|
export const ApiPostSubmitOrder = (data) =>
|
|
|
|
ToAsyncAwait(MsbRequest.post('/app/tradeOrder/submitOrder', data));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 取消订单
|
|
|
|
* @param {*} data
|
|
|
|
*/
|
|
|
|
export const ApiPutCancelOrder = (data) =>
|
|
|
|
ToAsyncAwait(MsbRequest.post('/app/tradeOrder/cancel', data));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取支付参数
|
|
|
|
* @param {*} data
|
|
|
|
*/
|
|
|
|
export const ApiPostWxPay = (data) =>
|
|
|
|
ToAsyncAwait(MsbRequest.post('/pay/wxPay/app', data));
|
|
|
|
|
|
|
|
|