111
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
3.5 KiB

2 years ago
import request from '@/utils/request'
const service_name = "oil-site"
const group_name = "oilSiteAppInfo"
const order_name = 'oilSiteOrderInfo'
export default {
2 years ago
getOrderDiscountInfo(data) {
2 years ago
return request({
url: `/${service_name}/${order_name}/getOrderDiscountInfo`,
2 years ago
method: 'post',
data: data
})
2 years ago
},
2 years ago
gunList(data) {
2 years ago
return request({
url: `/oil-site/xoilSiteGun/gunList`,
2 years ago
method: 'post',
data: data
})
2 years ago
},
2 years ago
plateNumberRecognition(data) { //车牌图文识别
return request({
url: `/${service_name}/oilSiteAppInfo/plateNumberRecognition`,
2 years ago
method: 'post',
data: data
2 years ago
})
2 years ago
},
initGeoHash() {
2 years ago
return request({
url: `/oil-site/oilSiteInfo/initGeoHash/initGeoHash`,
method: 'get',
2 years ago
timeout: 50000
})
},
getScanRes(data) {
return request({
url: `/${service_name}/${group_name}/scanCode`,
method: 'post',
data: data
2 years ago
})
},
// 未登录查询油站
readOnlySites(data) {
2 years ago
console.log(`/${service_name}/${group_name}/findNotLoginSiteInfoByPage`, '****')
2 years ago
return request({
url: `/${service_name}/${group_name}/findNotLoginSiteInfoByPage`,
method: 'post',
data: data
})
},
2 years ago
getSiteList(data) {
2 years ago
// debugger
2 years ago
return request({
url: `/${service_name}/${group_name}/findSiteInfoByPage`,
method: 'post',
data: data
})
},
getSiteDetails(data) {
return request({
url: `/${service_name}/${group_name}/getSiteDetails`,
method: 'post',
data: data
})
},
getCheckInfo(data) {
return request({
url: `/${service_name}/${group_name}/getCheckInfo`,
method: 'get',
data: data
})
},
getUserAuthInfo(data) {
return request({
url: `/${service_name}/${group_name}/getUserAuthInfo`,
method: 'get',
data: data
})
2 years ago
},
// 车辆认证
auth(data) {
2 years ago
return request({
url: `/${service_name}/${group_name}/auth`,
method: 'post',
data: data
})
2 years ago
},
//下单 -- 获取最新油站价格、司机、加油员相关信息
2 years ago
getNewSitePrice(channelId) {
return request({
url: `/${service_name}/${group_name}/getNewSitePrice/${channelId} `,
method: 'get'
})
}, // 获取订单核销码
2 years ago
getOrderQrCode(id) {
return request({
url: `/${service_name}/${order_name}/getOrderQrCode/${id} `,
method: 'get'
})
},
wholeStationMap(data) {
return request({
url: `/oil-site/oilSiteInfo/wholeStationMap`,
method: 'post',
2 years ago
data: data
2 years ago
})
},
//根据地址获取详细地址信息
2 years ago
getGeoByAddress(address) {
return request({
url: `/oil-interfaces/gaode/getGeoByAddress`,
method: 'get',
params: {
address
}
})
},
// 获取指定经纬度数组范围内的油站
getByPoints(points) {
return request({
url: `/${service_name}/oilSiteInfo/getByPoints`,
method: 'post',
data: points,
})
},
// 路径规划
getSiteByGeoHashNew(points) {
return request({
url: `/${service_name}/oilSiteInfo/getSiteByGeoHashNewA`,
method: 'post',
data: points,
})
},
getSiteByGeoHash(points) {
return request({
url: `/${service_name}/oilSiteInfo/getSiteByGeoHash`,
method: 'post',
data: points,
})
},
// 获取菜单
getConditionMenu() {
return request({
url: `/${service_name}/oilSiteInfo/getConditionMenu`,
method: 'get'
})
},
//获取附近十条油站
getByNearPoints(lon, lat) {
return request({
url: `/${service_name}/oilSiteInfo/getByNearPoints`,
method: 'get',
params: {
lon,
lat
}
})
},
//根据经纬度获取详情坐标
getInfoBylAndL(longitude, Latitude) {
return request({
url: `/oil-interfaces/gaode/getInfoBylAndL`,
method: 'get',
params: {
longitude,
Latitude
}
})
},
2 years ago
}