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.
|
|
|
/**
|
|
|
|
* 登录 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)
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据活动池新建/编辑实例
|
|
|
|
*/
|
|
|
|
export function saveActivityData(params, call) {
|
|
|
|
return http.post('activity/instance/save',params).then(call)
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 活动实例分页列表
|
|
|
|
*/
|
|
|
|
export function getActivityTableData(params, call) {
|
|
|
|
return http.get('activity/instance/list',params).then(call)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
getActivityList,
|
|
|
|
addOreditActivity,
|
|
|
|
getActivityInfo,
|
|
|
|
uploadImg,
|
|
|
|
getCompany,
|
|
|
|
getShop,
|
|
|
|
getActivityTableData,
|
|
|
|
saveActivityData
|
|
|
|
}
|