import request from '@/utils/request' // api地址 const api = { todoCounts: 'order/todoCounts', list: 'order/list', detail: 'order/detail', express: 'order/express', cancel: 'order/cancel', extractQrcode: 'order/extractQrcode', receipt: 'order/receipt', pay: 'order/pay', del:'order/del', orderfast:'order/orderfast' } // 催单 export function orderfast(orderId, param) { return request.get(api.orderfast, { orderId, ...param }) } // 当前用户待处理的订单数量 export function todoCounts(param, option) { return request.get(api.todoCounts, param, option) } // 我的订单列表 export function list(param, option) { return request.get(api.list, param, option) } // 订单详情 export function detail(orderId, param) { return request.get(api.detail, { orderId, ...param }) } // 获取物流信息 export function express(orderId, param) { return request.get(api.express, { orderId, ...param }) } // 取消订单 export function cancel(orderId, data) { return request.post(api.cancel, { orderId, ...data }) } // 确认收货 export function receipt(orderId, data) { return request.post(api.receipt, { orderId, ...data }) } // 核销二维码 export function extractQrcode(orderId, param) { return request.get(api.extractQrcode, { orderId, ...param }) } // 核销二维码 export function del(orderId, param) { return request.get(api.del, { orderId, ...param }) } // // 删除订单 // export function delete(orderId, param) { // return request.get(api.delete, { orderId, ...param }) // }