[更新]
This commit is contained in:
21
api/interfaces/exchange.js
Normal file
21
api/interfaces/exchange.js
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
import {req} from "../request"
|
||||
|
||||
//兑换订单列表
|
||||
const index = (type) => req({url: "orders/index", data: {type: type}})
|
||||
|
||||
//兑换订单详情
|
||||
const show = (orderid) => req({url: "orders/show?", data: {orderid: orderid}})
|
||||
|
||||
//取消兑换订单
|
||||
const cancel = (orderid) => req({url: "orders/cancel?orderid=" + orderid , method: "POST"})
|
||||
|
||||
//兑换订单支付
|
||||
const payments = (orderid) => req({url: "payments/order?orderid=" + orderid})
|
||||
|
||||
export default({
|
||||
index,
|
||||
show,
|
||||
cancel,
|
||||
payments
|
||||
})
|
||||
Reference in New Issue
Block a user