|
|
|
var fly = require("../../../utils/request.js")
|
|
|
|
module.exports = {
|
|
|
|
getSdsList,
|
|
|
|
getSdsDetail,
|
|
|
|
sdsUpdate,
|
|
|
|
sdsDelete,
|
|
|
|
sdsCall,
|
|
|
|
getGroupBuyList,
|
|
|
|
getGroupBuyDetail,
|
|
|
|
groupBuyUpdate,
|
|
|
|
groupBuyDelete,
|
|
|
|
groupBuyCall,
|
|
|
|
getImgUrl,
|
|
|
|
getVolunteerVerify,
|
|
|
|
getMyGroupBuyJoin,
|
|
|
|
getMyGroupBuyPublish,
|
|
|
|
getEvaluationList,
|
|
|
|
evaluation,
|
|
|
|
updateStatus,
|
|
|
|
getGroupBuySignUpList,
|
|
|
|
tradeConfirmation,
|
|
|
|
signUpOrCancel,
|
|
|
|
getResidentConfig,
|
|
|
|
noticelist,
|
|
|
|
noticeDetail,
|
|
|
|
getVolunteerUnionList,
|
|
|
|
getVolunteerUnionDetail,
|
|
|
|
getTeamTypeList,
|
|
|
|
getAppTeamListByType,
|
|
|
|
getAppTeamDetail,
|
|
|
|
getTeamVolunteerList,
|
|
|
|
joinTeam,
|
|
|
|
getVolunteerUnionActList,
|
|
|
|
getVolunteerUnionActDetail
|
|
|
|
}
|
|
|
|
|
|
|
|
//顺道捎-首页列表
|
|
|
|
function getSdsList ({ type, pageIndex, pageSize }) {
|
|
|
|
return fly.get("custom/sds/getSdsList", {
|
|
|
|
type,
|
|
|
|
pageIndex,
|
|
|
|
pageSize
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
//顺道捎-我需要捎我可以捎详情接口
|
|
|
|
function getSdsDetail (id) {
|
|
|
|
return fly.get(`custom/sds/getSdsDetail/${id}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
//顺道捎-发布/修改
|
|
|
|
function sdsUpdate (para) {
|
|
|
|
return fly.post("custom/sds/publishOrUpdate", para)
|
|
|
|
}
|
|
|
|
|
|
|
|
//顺道捎-删除
|
|
|
|
function sdsDelete (id) {
|
|
|
|
return fly.get(`custom/sds/delete/${id}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
//顺道捎-拨打电话次数
|
|
|
|
function sdsCall (id) {
|
|
|
|
return fly.get(`custom/sds/callMobile/${id}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-首页列表
|
|
|
|
function getGroupBuyList ({ pageIndex, pageSize }) {
|
|
|
|
return fly.get("custom/groupBuy/getGroupBuyList", {
|
|
|
|
pageIndex,
|
|
|
|
pageSize
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-详情接口
|
|
|
|
function getGroupBuyDetail (id) {
|
|
|
|
return fly.get(`custom/groupBuy/getGroupBuyDetail/${id}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-发布/修改
|
|
|
|
function groupBuyUpdate (para) {
|
|
|
|
return fly.post("custom/groupBuy/publishOrUpdate", para)
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-删除
|
|
|
|
function groupBuyDelete (id) {
|
|
|
|
return fly.get(`custom/groupBuy/delete/${id}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-拨打电话次数
|
|
|
|
function groupBuyCall (id) {
|
|
|
|
return fly.get(`custom/groupBuy/callMobile/${id}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获取配置图片
|
|
|
|
function getImgUrl (imgType) {
|
|
|
|
return fly.get(`imgConfig/getImgUrl/${imgType}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获取志愿者认证标志
|
|
|
|
function getVolunteerVerify () {
|
|
|
|
return fly.get(`app-user/user/volunteerVerify`)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//拼团购-我的参与
|
|
|
|
function getMyGroupBuyJoin ({ pageIndex, pageSize }) {
|
|
|
|
return fly.get("custom/groupBuy/getMyGroupBuyJoin", {
|
|
|
|
pageIndex,
|
|
|
|
pageSize
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-我的发布
|
|
|
|
function getMyGroupBuyPublish ({ pageIndex, pageSize }) {
|
|
|
|
return fly.get("custom/groupBuy/getMyGroupBuyPublish", {
|
|
|
|
pageIndex,
|
|
|
|
pageSize
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-评价列表
|
|
|
|
function getEvaluationList ({ groupBuyId, pageIndex, pageSize }) {
|
|
|
|
return fly.get("custom/groupBuy/getEvaluationList", {
|
|
|
|
groupBuyId,
|
|
|
|
pageIndex,
|
|
|
|
pageSize
|
|
|
|
})
|
|
|
|
}
|
|
|
|
//拼团购-评价
|
|
|
|
function evaluation (para) {
|
|
|
|
return fly.post("custom/groupBuy/evaluation", para)
|
|
|
|
}
|
|
|
|
//拼团购-我的发布取消/结束
|
|
|
|
function updateStatus (para) {
|
|
|
|
return fly.post("custom/groupBuy/updateStatus", para)
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-交易确认列表
|
|
|
|
function getGroupBuySignUpList ({ id, pageIndex, pageSize }) {
|
|
|
|
return fly.get("custom/groupBuy/getGroupBuySignUpList", {
|
|
|
|
id,
|
|
|
|
pageIndex,
|
|
|
|
pageSize
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-交易确认
|
|
|
|
function tradeConfirmation (para) {
|
|
|
|
return fly.post("custom/groupBuy/tradeConfirmation", para)
|
|
|
|
}
|
|
|
|
|
|
|
|
//拼团购-报名/取消报名
|
|
|
|
function signUpOrCancel (para) {
|
|
|
|
return fly.post("custom/groupBuy/signUpOrCancel", para)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获取居民端配置
|
|
|
|
function getResidentConfig () {
|
|
|
|
return fly.get("residentConfig/getResidentConfig")
|
|
|
|
}
|
|
|
|
|
|
|
|
// 通知列表(通)
|
|
|
|
function noticelist (params) {
|
|
|
|
return fly.get("news/v2/notice/list", params)
|
|
|
|
}
|
|
|
|
// 通知详情
|
|
|
|
function noticeDetail (noticeId) {
|
|
|
|
return fly.get(`news/notice/detail/${noticeId}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 共建联盟-列表
|
|
|
|
function getVolunteerUnionList ({ pageIndex, pageSize }) {
|
|
|
|
return fly.get("heart/volunteer/getVolunteerUnionList", {
|
|
|
|
pageIndex,
|
|
|
|
pageSize
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 共建联盟-详情
|
|
|
|
function getVolunteerUnionDetail ({ id }) {
|
|
|
|
return fly.get("heart/volunteer/getVolunteerUnionDetail", {
|
|
|
|
id
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 共建联盟-下属活动-列表
|
|
|
|
function getVolunteerUnionActList ({ pageIndex, pageSize, unionActId }) {
|
|
|
|
return fly.get("heart/volunteer/getVolunteerUnionActList", {
|
|
|
|
pageIndex,
|
|
|
|
pageSize,
|
|
|
|
unionActId
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 共建联盟-下属活动-详情
|
|
|
|
function getVolunteerUnionActDetail (id) {
|
|
|
|
return fly.get(`heart/volunteer/getVolunteerUnionActDetail/${id}`)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 志愿团队类别-列表
|
|
|
|
function getTeamTypeList ({ pageIndex, pageSize, teamId }) {
|
|
|
|
return fly.get("heart/volunteer/getTeamTypeList", {
|
|
|
|
pageIndex,
|
|
|
|
pageSize,
|
|
|
|
teamId
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 志愿团队-列表
|
|
|
|
function getAppTeamListByType ({ pageIndex, pageSize, typeCode }) {
|
|
|
|
return fly.get("heart/volunteer/getAppTeamListByType", {
|
|
|
|
pageIndex,
|
|
|
|
pageSize,
|
|
|
|
typeCode
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 志愿团队-详情
|
|
|
|
function getAppTeamDetail ({ id }) {
|
|
|
|
return fly.get("heart/volunteer/getAppTeamDetail", {
|
|
|
|
id
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 志愿团队-详情-成员列表
|
|
|
|
function getTeamVolunteerList ({ pageIndex, pageSize, id }) {
|
|
|
|
return fly.get("heart/volunteer/getTeamVolunteerList", {
|
|
|
|
pageIndex,
|
|
|
|
pageSize,
|
|
|
|
id
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 志愿团队-加入团队
|
|
|
|
function joinTeam (para) {
|
|
|
|
return fly.post("heart/volunteer/joinTeam", para)
|
|
|
|
}
|