zyejMAll-mobile/sheep/api/pay/order.js

23 lines
397 B
JavaScript
Raw Permalink Normal View History

2024-08-07 10:31:42 +08:00
import request from '@/sheep/request';
const PayOrderApi = {
// 获得支付订单
getOrder: (id) => {
return request({
url: '/pay/order/get',
method: 'GET',
2024-08-07 21:40:27 +08:00
params: { id },
2024-08-07 10:31:42 +08:00
});
},
// 提交支付订单
submitOrder: (data) => {
return request({
url: '/pay/order/submit',
method: 'POST',
2024-08-07 21:40:27 +08:00
data,
2024-08-07 10:31:42 +08:00
});
2024-08-07 21:40:27 +08:00
},
2024-08-07 10:31:42 +08:00
};
export default PayOrderApi;