UNPKG

xlb-main-login

Version:

``` yarn install ```

124 lines (112 loc) 2.8 kB
import { wei_url } from './config' import { axios } from '@/utils/request' // 模板列表 export function getTemplelist(params) { return axios({ url: wei_url + '/demo-pub/v1/template/', method: 'get', params, }) } // 微信模板 export function getwxTemplelist() { return axios({ url: wei_url + '/demo-pub/v1/wechat/template/list/', method: 'get', }) } // 店铺模板 export function getShopTemplelist(type) { return axios({ url: wei_url + '/demo-distribution/v1/shop/info/config/template/list/?type=' + type, method: 'get', }) } //获取店铺公众号 export function getShopNoPublic(type) { return axios({ url: wei_url + '/demo-distribution/v1/shop/info/config/appInfo/?type=' + type, method: 'get', }) } // 查询用户 export function wxUserSearch(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/v1/event/save', method: 'post', data, }) } // 发送模板 export function sendTempletToWx(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-pub/v1/template/push', method: 'post', data, }) } // 删除模板 export function delTemplet(id) { return axios({ url: wei_url + '/demo-pub/v1/template/' + id + '/', method: 'delete', }) } // 新增模板 export function saveTemplet(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-pub/v1/template/', method: 'post', data, }) } // 模板详情 export function editTemplet(id) { return axios({ url: wei_url + '/demo-pub/v1/template/' + id + '/', method: 'get', }) } // 更新模板 export function updateTemplet(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-pub/v1/template/', method: 'put', data, }) } // 获取标签 export function init_tag_list() { return axios({ url: wei_url + '/demo-pub/v1/wechat/user/tag/list/', method: 'get', }) } // 获取发送数量 export function getallspreadsupcount(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-pub/v1/wechat/count', method: 'post', data, }) } //获取模板消息条数 export function getTemplateInfo() { return axios({ url: wei_url + '/demo-pub/v1/record/queue/info', method: 'get', }) } //模板消息数据分析详情 export function getAnalysisDetail(params) { return axios({ url: wei_url + '/demo-pub/v1/record/', method: 'get', params, }) }