UNPKG

xlb-main-login

Version:

``` yarn install ```

92 lines (81 loc) 1.9 kB
import { axios } from '@/utils/request' import { default_api } from './config' export const locality = default_api + '/demo-wx-config' // 渠道码列表 export function ditchList(params) { return axios({ url: locality + '/v1/source', method: 'get', params, }) } //新增渠道码 export function addDitch(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: locality + '/v1/source', method: 'post', data, }) } //删除渠道码 export function removeDitch(id) { return axios({ url: locality + '/v1/source/' + id, method: 'delete', }) } //下载渠道码 export function downDitch(id) { return axios({ url: locality + '/v1/source/' + id + '/img', method: 'get', }) } //查找渠道码 export function findDitch(id) { return axios({ url: locality + '/v1/source/' + id, method: 'get', }) } //编辑渠道码 export function redactDitch(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: locality + '/v1/source', method: 'put', data, }) } //渠道码卡片数据 export function ditchHead(id) { return axios({ url: locality + '/v1/source/' + id + '/analysis/info', method: 'get', }) } //渠道码列表 export function ditchTrend(id, params) { return axios({ url: locality + '/v1/source/' + id + '/analysis/list', method: 'get', params, }) } //渠道码用户列表 export function userlistdata(id, params) { return axios({ url: locality + '/v1/source/' + id + '/user/list', method: 'get', params, }) } //渠道码用户列表导出 export function userListexport(id, params) { return axios({ url: locality + '/v1/source/' + id + '/user/list/e', method: 'get', params, }) }