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.

128 lines
2.2 KiB

import request from '@/sheep/request';
const mapnvueApi = {
searchCart: (data) => {
return request({
url: `/share/vehicle/appointment/{${data}}`,
method: 'GET'
});
},
//查询最近一次订单
queryLastOrder: () => {
return request({
url: `/share/ride-order/queryLastOrder`,
method: 'GET'
});
},
//正在骑行的订单数据
ingRide: (data) => {
return request({
url: `share/ride-order/ingRide/${data}`,
method: 'GET'
});
},
// 获取附近的车辆
nearByVehicles: (data) => {
return request({
url: `/share/vehicle/nearByVehicles`,
method: 'POST',
data
});
},
// 获取商品列表
spupage: (data) => {
return request({
url: `/product/spu/page`,
method: 'GET',
data
});
},
// 预约车辆
appointment: (data) => {
return request({
url: `/share/vehicle/appointment/${data}`,
method: 'GET'
});
},
// 新增骑行id
ride_order_add: (data) => {
return request({
url: `/share/ride-order/add`,
method: 'POST',
data
});
},
// 开始骑行
startRide: (data) => {
return request({
url: `share/ride-order/startRide/${data}`,
method: 'GET'
});
},
// 查询是否需要调度费用
operate_scope: (data) => {
return request({
url: `share/operate-scope/operate-scope/count?longitude=${data.log}&latitude=${data.lng}`,
method: 'GET'
});
},
// 结束行程
finishRide: (data) => {
return request({
url: `share/ride-order/finishRide/${data}`,
method: 'GET'
});
},
// 生成支付单
business_pay: (data) => {
return request({
url: `share/ride-order/business/pay`,
method: 'POST',
data
});
},
// 获取骑行配置信息
riding_billing: () => {
return request({
url: `share/riding-billing/get`,
method: 'GET'
});
},
// 创建预支付单
order_create: (data) => {
return request({
url: `trade/order/create`,
method: 'POST',
data
});
},
// 获取spu明细
spu_get_detail: (data) => {
return request({
url: `product/spu/get-detail?id=${data}`,
method: 'GET'
});
},
// 取消订单
cancelRide: (data) => {
return request({
url: `share/ride-order/cancelRide/${data}`,
method: 'GET'
});
},
}
export default mapnvueApi;