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.
82 lines
1.4 KiB
82 lines
1.4 KiB
import request from "@/utils/request"; |
|
import {host} from "@/config/host"; |
|
|
|
/** |
|
* 权益卡订单 |
|
* @param card_id |
|
* @returns {Promise | Promise<unknown>} |
|
*/ |
|
export function cardOrder(card_id) |
|
{ |
|
return request({ |
|
url:`${host}/order/create-cardorder`, |
|
method: 'post', |
|
data:{ |
|
card_id |
|
} |
|
}) |
|
} |
|
|
|
/** |
|
* 订单列表 |
|
* @param data |
|
* @returns {Promise<unknown>} |
|
*/ |
|
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<unknown>} |
|
*/ |
|
export function getStoreService(data = { |
|
"address_id":"" |
|
}){ |
|
return request({ |
|
url:"order/store-service", |
|
method: 'post', |
|
data:data |
|
}) |
|
} |
|
|
|
/** |
|
* 获取价格 |
|
* @param data |
|
* @returns {Promise<unknown>} |
|
*/ |
|
export function getOrderPrice(data = { |
|
"address_id":"" |
|
}){ |
|
return request({ |
|
url:"order/get-petorderprice", |
|
method: 'post', |
|
data:data |
|
}) |
|
} |
|
/** |
|
* 创建订单 |
|
* @param data |
|
* @returns {Promise<unknown>} |
|
*/ |
|
export function createOrderPrice(data = { |
|
"address_id":"" |
|
}){ |
|
return request({ |
|
url:"order/create-petorder", |
|
method: 'post', |
|
data:data |
|
}) |
|
} |