You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
863 B
JavaScript
46 lines
863 B
JavaScript
6 years ago
|
/**
|
||
|
* 登录 server层
|
||
|
* @author yuankai
|
||
|
* @date 2020/05/19
|
||
|
*/
|
||
|
|
||
|
import http from '../CommonHttp'
|
||
|
|
||
|
/**
|
||
|
* 活动池列表
|
||
|
* @param params 参数
|
||
|
* @param call 成功的回调
|
||
|
* @returns {Promise<any>} 返回Promise对象
|
||
|
*/
|
||
|
export function getActivityList(params, call) {
|
||
|
return http.get('/activity/schedule/list/all', params).then(call)
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 新增或修改活动池
|
||
|
*/
|
||
|
export function addOreditActivity(params, call) {
|
||
|
return http.post('/activity/schedule/save',params).then(call)
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取活动池详情
|
||
|
*/
|
||
|
export function getActivityInfo(params, call) {
|
||
|
return http.get('/activity/schedule/detail',params).then(call)
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 上传图片
|
||
|
*/
|
||
|
export function uploadImg(params, call) {
|
||
|
return http.post('/upload',params).then(call)
|
||
|
}
|
||
|
|
||
|
export default {
|
||
|
getActivityList,
|
||
|
addOreditActivity,
|
||
|
getActivityInfo,
|
||
|
uploadImg
|
||
|
}
|