UNPKG

xlb-main-login

Version:

``` yarn install ```

114 lines (105 loc) 2.71 kB
import { wei_url, locality } from '@/api/config' import { axios } from '@/utils/request' const baseUrl = '/demo-wechat-work' //列表 export function drainageLinkList(params) { return axios({ url: wei_url + baseUrl + '/v1/wechat/work/get/flow/url', method: 'get', params, }) } // 列表 - 复制链接 export function copy(id) { return axios({ url: wei_url + baseUrl + '/v1/wechat/work/get/flow/url/path/' + id, method: 'get', }) } // 列表 - 删除 export function del(id) { return axios({ url: wei_url + baseUrl + '/v1/wechat/work/get/flow/url/' + id, method: 'delete', }) } //列表 - 开关 export function enable(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + baseUrl + '/v1/wechat/work/get/flow/url/' + data.id + '/' + data.enableSmsCheck, method: 'put', data, }) } //**************新增和编辑******************/ //新增 export function add(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + baseUrl + '/v1/wechat/work/get/flow/url', method: 'post', data, }) } //编辑 export function edit(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + baseUrl + '/v1/wechat/work/get/flow/url', method: 'put', data, }) } // 回显 export function getDetail(id) { return axios({ url: wei_url + baseUrl + '/v1/wechat/work/get/flow/url/' + id, method: 'get', }) } // 渠道活码弹框-列表 export function channelList(params) { return axios({ url: wei_url + baseUrl + '/v1/wechat/work/source/1/', method: 'get', params, }) } // 查询品牌logo export function acquireShoptype(type) { return axios({ url: locality + '/v1/shop/info/config/?type=' + type, method: 'get', }) } //导出 export function memberExports(id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/get/flow/url/' + id + '/e', method: 'get' }) } // 数据分析表格 export function getTable(params) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/get/flow/url/page', method: 'get', params }) } // 数据分析图表 export function getChart(params) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/get/flow/url/data', method: 'get', params }) } //访问次数 export function getCount(id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/get/flow/url/' + id + '/count', method: 'get' }) }