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.
shop-app/common/api/order.js

28 lines
654 B

/*
* @Author: ch
* @Date: 2022-03-29 17:38:17
* @LastEditors: ch
* @LastEditTime: 2022-03-30 15:25:23
* @Description: file content
*/
import {ToAsyncAwait, Request} from '@/common/utils';
import orderList from '@/mock/orderList'
const ApiGetOrderList = (params) =>
ToAsyncAwait(Request.get('/app/tradeOrder/page', params));
const ApiPostSubmitOrder = (data) =>
ToAsyncAwait(Request.post('/app/tradeOrder/submitOrder', data));
const ApiPostWxPay = (data) =>
ToAsyncAwait(Request.post('/pay/wxPay/app', data));
export {
// 获取订单列表
ApiGetOrderList,
// 提交订单
ApiPostSubmitOrder,
// 获取支付参数
ApiPostWxPay
}