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.
102 lines
2.1 KiB
102 lines
2.1 KiB
const { request } = require("../../../utils/request")
|
|
const BASEURL = require("../../../utils/config").getProductionBaseUrl()
|
|
module.exports = {
|
|
getDemandList,
|
|
getDemandCategoryList,
|
|
getLatestOrder,
|
|
getMyDemandList,
|
|
demandSubmit,
|
|
getMyDemandDetail,
|
|
getDemandDetail,
|
|
demandCancel,
|
|
demandTakeOrder,
|
|
demandEvaluate,
|
|
demandFinish
|
|
}
|
|
// 获取需求列表
|
|
// type: unprocessed / processing / finished
|
|
function getDemandList (params) {
|
|
return request("heart/residemand/list-hall", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 需求可预约分类列表
|
|
function getDemandCategoryList () {
|
|
return request("heart/icresidemanddict/category-list", {
|
|
method: "POST"
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 最近使用的预约列表
|
|
function getLatestOrder () {
|
|
return request("heart/icresidemanddict/latest-order", {
|
|
method: "POST"
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 我的需求列表
|
|
// type: unprocessed / processing / finished / canceled
|
|
function getMyDemandList (params) {
|
|
return request("heart/residemand/mydemand", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 提交需求
|
|
function demandSubmit (params) {
|
|
return request("heart/residemand/submit", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 我的需求详情
|
|
function getMyDemandDetail (params) {
|
|
return request("heart/residemand/my-detail", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 需求详情
|
|
function getDemandDetail (params) {
|
|
return request("heart/residemand/detail-hall", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 取消需求
|
|
function demandCancel (params) {
|
|
return request("heart/residemand/cancel", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 接单
|
|
function demandTakeOrder (params) {
|
|
return request("heart/residemand/takeorder", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 需求评价
|
|
function demandEvaluate (params) {
|
|
return request("heart/residemand/evaluate", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|
|
// 需求完成
|
|
function demandFinish (params) {
|
|
return request("heart/residemand/finish", {
|
|
method: "POST",
|
|
data: params
|
|
}, BASEURL)
|
|
}
|
|
|