12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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 }
- });
- },
- // 获得支付后的订单条件2 实际用的
- getByStatus2: (id) => {
- return request({
- url: '/trade/order/getPayOrderByStatus2',
- method: 'GET',
- params: { id }
- });
- },
- // 富友微信jsapi支付成功
- getFuYouPayOrderByStatus: (payOrderNo) => {
- return request({
- url: '/trade/order/getFuYouPayOrderByStatus',
- method: 'GET',
- params: { payOrderNo }
- });
- },
- 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;
|