ryesun's picture
initial
d757506
raw
history blame contribute delete
870 Bytes
import request from '@/axios/axios';
import api from '@/axios/apiNames';
// 搜索广告接口
export const getSearchCustomService = (key: string) => {
let params = {
url: api.searchURL,
data: {
engine: "baidu",
q: key,
api_key: '83df36ff90429072fcd39b47811df999a8ed942f4f2492225fe6a7f494a07935'
}
}
return request.get(params)
}
// 获取 item 图片
export const getItemImageCustomService = (item_id: string) => {
let params = {
url: `${api.itemFilterURL}/output-images/` ,
data: {
populate: 'images',
['filters[item_id][\$eq]']: item_id,
},
header: {
Authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjgwNDU1MTk2LCJleHAiOjE2ODMwNDcxOTZ9.aGgsBDn8uo5pxqINwms6doMU_EfF9rzkm96ZUsXuy0M'
}
}
return request.get(params)
}