import request from "@/utils/request"; import {host} from "@/config/host"; /** * 权益卡订单 * @param card_id * @returns {Promise | Promise} */ export function cardOrder(card_id) { return request({ url:`${host}/order/create-cardorder`, method: 'post', data:{ card_id } }) } /** * 订单列表 * @param data * @returns {Promise} */ export function getOrderList(data = { "page": 1, "limit": 110, "is_worker": 0, "status": 0, "start_time": "", "end_time": "" }){ return request({ url:"pet/order-list", method: 'post', data:data }) } /** * 匹配宠物店铺服务 * @param data * @returns {Promise} */ export function getStoreService(data = { "address_id":"" }){ return request({ url:"order/store-service", method: 'post', data:data }) } /** * 获取价格 * @param data * @returns {Promise} */ export function getOrderPrice(data = { "address_id":"" }){ return request({ url:"order/get-petorderprice", method: 'post', data:data }) } /** * 创建订单 * @param data * @returns {Promise} */ export function createOrderPrice(data = { "address_id":"" }){ return request({ url:"order/create-petorder", method: 'post', data:data }) }