import request from '@/utils/request' import config from '@/utils/baseConfig' import qs from 'qs' // 渣土车辆信息数据 export function fetchCarInfo () { return request({ baseURL: config.baseUrl, url: 'car/info', method: 'get' }) } export function fetchCarPostion (params) { return request({ baseURL: config.baseUrl, url: 'car/postion', method: 'get', params, paramsSerializer: params => { return qs.stringify(params, { indices: false }) } }) } export function fetchFeatureInfo (code, key) { return request({ baseURL: config.jingyiService, url: 'services/resource/singleSearch/' + code, params: { 'F-Auth-Key': key }, data: {}, method: 'post' }) }