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" } }) };