xlb-main-login
Version:
``` yarn install ```
184 lines (165 loc) • 4.29 kB
JavaScript
import { img_url, modal_url } from './config'
import { axios } from '@/utils/request'
const baseWork = '/demo-wechat-work'
// 节日活动列表
export function getholidaylist(params) {
return axios({
url: modal_url + '/demo-wx-sys/v1/festival/',
method: 'get',
params,
})
}
//节日活动模板
export function getholidaylist_all(params) {
return axios({
url: modal_url + '/demo-wx-sys/v1/festival/template/list',
method: 'get',
params,
})
}
// 删除列表
export function delholiday(id) {
return axios({
url: modal_url + '/demo-wx-sys/v1/festival/' + id + '/',
method: 'delete',
})
}
// 保存列表
export function saveholiday(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: modal_url + '/demo-wx-sys/v1/festival/',
method: 'post',
data,
})
}
// 更新活动
export function updateholiday(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: modal_url + '/demo-wx-sys/v1/festival/',
method: 'put',
data,
})
}
// 节日签详情
export function detailholiday(id) {
return axios({
url: modal_url + '/demo-wx-sys/v1/festival/' + id + '/',
method: 'get',
})
}
//上传封面图
export function uploadFormLitpics(data) {
return axios({
headers: { 'Content-Type': 'multipart/form-data' },
url: img_url + '/demo-utils/v1/file/dis/h/file/',
method: 'post',
data,
})
}
//状态
export function stateholiday(id, state) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: img_url + '/demo-wx-sys/v1/festival/' + id + '/' + state + '/update',
method: 'put',
})
}
//上传海报
export function uploadSpreadBackgroundCards(data) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: img_url + '/demo-utils/v1/file/sys/bg/file/',
method: 'post',
data,
})
}
//新增群获客
export function wechatGroup(data) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: modal_url + baseWork + '/v1/wechat/work/event/4',
method: 'post',
data,
})
}
//编辑群裂变
export function compileGroup(data) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: modal_url + baseWork + '/v1/wechat/work/event/4',
method: 'put',
data,
})
}
/*企业微信节日签*/
//企业微信节日签列表
export function wechatfestivallist(params) {
return axios({
url: modal_url + '/demo-wechat-work/v1/wechat/work/festival',
method: 'get',
params,
})
}
//企业微信新增节日签
export function wechatfestivaladd(data) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: modal_url + '/demo-wechat-work/v1/wechat/work/festival',
method: 'post',
data,
})
}
//企业微信更新节日签
export function wechatfestivalupload(data) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: modal_url + '/demo-wechat-work/v1/wechat/work/festival',
method: 'put',
data,
})
}
//企业微信节日签详情
export function wechatfestivaldetail(id) {
return axios({
url: modal_url + '/demo-wechat-work/v1/wechat/work/festival/' + id,
method: 'get',
})
}
//企业微信节日签删除
export function wechatfestivaldelete(id) {
return axios({
url: modal_url + '/demo-wechat-work/v1/wechat/work/festival/' + id,
method: 'delete',
})
}
//企业微信节日签二维码
export function wechatfestivalqrcode(id) {
return axios({
url: modal_url + '/demo-wechat-work/v1/wechat/work/festival/' + id + '/qr',
method: 'get',
})
}
export function wechatfestivalstatus(id, state) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: modal_url + '/demo-wechat-work/v1/wechat/work/festival/' + id + '/state/' + state,
method: 'put',
})
}
/*企业微信节日签*/