You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
import utilsModel from "./utils-model";
|
|
import order from "../api/order.js";
|
|
|
|
export default {
|
|
getList: (params, version) =>
|
|
utilsModel.config(order.getList).request({
|
|
params: params,
|
|
headers: {
|
|
version: version
|
|
}
|
|
}),
|
|
getDetail: params =>
|
|
utilsModel.config(order.getDetail).request({
|
|
params: params
|
|
}),
|
|
checkOrder: data =>
|
|
utilsModel.config(order.checkOrder).request({
|
|
data: data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
}
|
|
}),
|
|
cancel: data =>
|
|
utilsModel.config(order.cancel).request({
|
|
data: data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
}
|
|
}),
|
|
addOrder: data =>
|
|
utilsModel.config(order.addOrder).request({
|
|
data: data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
}
|
|
}),
|
|
payMoney: data =>
|
|
utilsModel.config(order.payMoney).request({
|
|
data: data,
|
|
headers: {
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
}
|
|
})
|
|
};
|