UNPKG

xlb-main-login

Version:

``` yarn install ```

170 lines (153 loc) 3.98 kB
import { wei_url } from './config' import { axios } from '@/utils/request' //获取个人号列表 export function getcommunitylist(params) { return axios({ url: wei_url + '/demo-random-code/v1/random/code/single/', method: 'get', params, }) } //个人号详情 export function editcommunitys(id) { return axios({ url: wei_url + '/demo-random-code/v1/random/code/single/' + id + '/', method: 'get', }) } //标签列表 export function gettag(config_id) { return axios({ url: wei_url + '/demo-random-code/v1/random/code/single/' + config_id + '/tag/list/', method: 'get', }) } //二维码列表 export function getqrcode(config_id) { return axios({ url: wei_url + '/demo-random-code/v1/random/code/single/' + config_id + '/tag/qr/', method: 'get', }) } //删除二维码 export function deleteqrcode(config_id, id) { return axios({ url: wei_url + '/demo-random-code/v1/random/code/single/' + config_id + '/tag/qr/' + id + '/', method: 'delete', }) } //修改二维码状态 export function editstatusqrcode(id, state) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-random-code/v1/random/code/single/' + id + '/' + state + '/update/', method: 'put', }) } //新增二维码 export function setqrcode(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-random-code/v1/random/code/single/', method: 'post', data, }) } //修改二维码 export function editqrcode(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-random-code/v1/random/code/single/', method: 'put', data, }) } //新增活码 export function setcommunity(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-random-code/v1/random/code/single/', method: 'post', data, }) } //修改活码 export function editcommunity(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-random-code/v1/random/code/single/', method: 'put', data, }) } //修改活码状态 export function editstatuscommunity(id, status) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-random-code/v1/random/code/single/' + id + '/' + status + '/update', method: 'put', }) } //删除活码状态 export function deletecommunity(id) { return axios({ url: wei_url + '/demo-random-code/v1/random/code/single/' + id + '/', method: 'delete', }) } //活动头图上传图片 export function uploadHeadImage(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-utils/v1/file/random/h/file/', method: 'post', data, }) } //客服二维码上传图片 export function uploadKefuImage(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-utils/v1/file/random/s/file/', method: 'post', data, }) } //群二维码上传图片 export function uploadQrocdeImage(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-utils/v1/file/random/qr/file/', method: 'post', data, }) } //群二维码上传详情图 export function uploadQrocdeImagedetail(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: wei_url + '/demo-utils/v1/file/random/qr/file/', method: 'post', data, }) }