第一次提交

This commit is contained in:
gxwebsoft
2023-08-04 13:04:21 +08:00
commit 7a73b38bd5
764 changed files with 166417 additions and 0 deletions

35
api/cashier/index.js Executable file
View File

@@ -0,0 +1,35 @@
import request from '@/utils/request'
// api地址
const api = {
orderInfo: 'cashier/orderInfo',
orderPay: 'cashier/orderPay',
tradeQuery: 'cashier/tradeQuery',
}
/**
* 获取支付订单的信息
* @param {Number} orderId
* @param {Object} param
*/
export function orderInfo(orderId, param) {
return request.get(api.orderInfo, { orderId, ...param })
}
/**
* 确认支付
* @param {Number} orderId
* @param {Object} data
*/
export function orderPay(orderId, data) {
return request.post(api.orderPay, { orderId, ...data })
}
/**
* 交易查询
* 查询第三方支付订单是否付款成功
* @param {Object} param
*/
export function tradeQuery(param) {
return request.get(api.tradeQuery, param)
}