import https from '@/plugins/luch-request_0.0.7/request' /** * 发货与收货地址 */ export const address = data => { return https.post('/delivery/address', data) } /** * 获取配送平台报价 */ export const getDeliveryQuotes = data => { return https.post('/delivery/all-delivery-quotes', data) //?XDEBUG_SESSION_START=PHPSTORM } /** * 批发快捷开单 -- 获取跑腿配送报价 */ export const quickOrderAllDeliveryQuotes = data => { return https.post('/delivery/quick-order-delivery-quotes', data) } /** * 创建配送单 */ export const createDeliveryOrder = data => { return https.post('/delivery/create-order', data) } /** * 获取配送单详情 */ export const deliveryOrderDetail = data => { return https.get('/delivery/order-detail', data) } /** * 取消配送单 */ export const cancelDeliveryOrder = data => { return https.post('/delivery/cancel-order', data) } /** * 获取可用订单取消原因 */ export const getCancelReason = data => { return https.post('/delivery/cancel-reason', data) } /** * 获取平台列表 */ export const getPlatformList = data => { return https.get('/delivery/list') } /** * 获取指定平台的授权链接 */ export const getAuthUrl = (platformId) => { return https.get(`/delivery/get-auth-url?platformId=${platformId}`) } /** * 取消授权 */ export const cancelAuth = data => { return https.get('/delivery/cancel-auth', data) } /** * 添加小费 */ export const addTip = data => { return https.post('/delivery/add-tip', data) }