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.

62 lines
1.1 KiB
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 function getCompany(params, call) {
return http.get('/retail/company',params).then(call)
}
/**
* 获取店铺
*/
export function getShop(params, call) {
return http.post('poi/store/user/shop',params).then(call)
}
6 years ago
export default {
getActivityList,
addOreditActivity,
getActivityInfo,
uploadImg,
getCompany,
getShop
6 years ago
}