123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import axios from '@/libs/axios.js';
- // 根据字典code查询选项
- export const getLookUpDatas = (params) => {
- return axios.request({
- url: `lookup/findByLookup/${params.type}`,
- method: 'get'
- })
- }
- // 查询所有数据字典
- export const listLookUp = (params) => {
- let url = `lookup/findAll`
- return axios.request({
- url: url,
- method: 'post'
- }).then(res => res)
- }
- // 用户信息保存
- export const userInfoSave = (params) => {
- return axios.request({
- url: `reserve/user/info/saveMould`,
- method: 'post',
- data:params
- })
- }
- // 预约保存
- export const orderInfoSave = (params) => {
- return axios.request({
- url: `reserve/save`,
- method: 'post',
- data:params
- })
- }
- // 查询用户信息
- export const userDetail = (params) => {
- return axios.request({
- url: `reserve/user/info/findNewMould`,
- method: 'get',
- })
- }
- // 查询附近有无骑手可接单
- export const searchRider = (params) => {
- return axios.request({
- url: `userExt/queryNearRiderInfo`,
- method: 'post',
- data: params
- })
- }
|