1234567891011121314151617181920212223242526272829 |
- import request from '@/sheep/request';
- const PayOrderApi = {
- // 获得支付订单
- getOrder: (id) => {
- return request({
- url: '/pay/order/get',
- method: 'GET',
- params: { id }
- });
- },
- getPayOrder: (tradeOrderId) => {
- return request({
- url: '/pay/order/getPayOrder',
- method: 'GET',
- params: { tradeOrderId }
- });
- },
- // 提交支付订单
- submitOrder: (data) => {
- return request({
- url: '/pay/order/submit',
- method: 'POST',
- data
- });
- }
- };
- export default PayOrderApi;
|