1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import request from '@/sheep/request';
- const PayOrderApi = {
- // 获得支付订单
- getOrder: (id) => {
- return request({
- url: '/pay/order/get',
- method: 'GET',
- params: { id }
- });
- },
- // 获得支付后的订单条件
- getByStatus: (id) => {
- return request({
- url: '/trade/order/getPayOrderByStatus',
- method: 'GET',
- params: { id }
- });
- },
- // 获得支付后的订单条件
- getByStatus2: (id) => {
- return request({
- url: '/trade/order/getPayOrderByStatus2',
- method: 'GET',
- params: { id }
- });
- },
- getPayOrder: (tradeOrderId) => {
- return request({
- url: '/trade/order/getPayOrder',
- method: 'GET',
- params: { tradeOrderId }
- });
- },
- // 提交支付订单
- submitOrder: (data) => {
- return request({
- url: '/pay/order/submit',
- method: 'POST',
- data
- });
- },
- // 第三方富友支付
- fuYouSubmitOrder: (data) => {
- return request({
- url: '/fuYou/pay/order/submit',
- method: 'POST',
- data
- });
- }
- };
- export default PayOrderApi;
|