第一次提交

This commit is contained in:
gxwebsoft
2023-08-04 13:04:21 +08:00
commit 7a73b38bd5
764 changed files with 166417 additions and 0 deletions

35
api/bargain/task.js Executable file
View File

@@ -0,0 +1,35 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'bargain.task/list',
partake: 'bargain.task/partake',
detail: 'bargain.task/detail',
helpList: 'bargain.task/helpList',
helpCut: 'bargain.task/helpCut'
}
// 我的砍价列表
export const list = (param) => {
return request.get(api.list, param)
}
// 创建砍价任务
export const partake = (data) => {
return request.post(api.partake, data)
}
// 获取砍价任务详情
export const detail = (taskId, param) => {
return request.get(api.detail, { taskId, ...param })
}
// 获取砍价任务好友助力榜
export const helpList = (taskId, param) => {
return request.get(api.helpList, { taskId, ...param })
}
// 帮砍一刀
export const helpCut = (taskId, data) => {
return request.post(api.helpCut, { taskId, ...data })
}