UNPKG

xlb-main-login

Version:

``` yarn install ```

59 lines (53 loc) 1.25 kB
import { locality } from './config' import { axios } from '@/utils/request' // 核销员列表 export function verifierList(params, type) { return axios({ url: locality + '/v1/shop/write/off/?type=' + type, method: 'get', params, }) } // 新增核销员 export function addVerifier(data, type) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: locality + '/v1/shop/write/off/?type=' + type, method: 'post', data, }) } // 修改核销员 export function amendVerifier(params) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: locality + '/v1/shop/write/off/', method: 'put', params, }) } // 查询二维码 export function gainCode(type) { return axios({ url: locality + '/v1/shop/write/off/qr/?type=' + type, method: 'get', }) } // 二维码回调 export function allBack(id) { return axios({ url: locality + '/v1/shop/write/off/qr/' + id + '/', method: 'get', }) } // 删除 export function deleVerifier(id) { return axios({ url: locality + '/v1/shop/write/off/' + id + '/', method: 'delete', }) }