Dining_Hall/api/advanceOrder/index.js

141 lines
2.4 KiB
JavaScript

import request from '@/utils/request'
/**
* @data 预订餐(档口列表)
*/
export function getAdvanceOrderStallApi(data) {
return request({
url: '/smart-canteen/api/v2/applet/menurecipe/list/reserve/canteen/shopstall',
method: 'get',
params: data
})
}
/**
* @data 移动端-查询预订日期
*/
export function getlistReserveDateAPI(data) {
return request({
url: '/smart-canteen/api/v2/alloc/canteen/list-reserve-date',
method: 'post',
data
})
}
/**
* @data 预订餐(详情)
*/
export function getAdvanceDetailListAPI(data) {
return request({
url: '/smart-canteen/api/v2/applet/menurecipe/reserve/recipe/detail',
method: 'post',
data
})
}
/**
* @data 移动端-预订餐(加购物车)
*/
export function addAdvancehoppingCartAPI(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/shopping-cart/add',
method: 'post',
data
})
}
/**
* @data 移动端-预订餐(减购物车)
*/
export function updateAdvancehoppingCartAPI(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/shopping-cart/update',
method: 'post',
data
})
}
/**
* @data 移动端-预订餐(清空购物车)
*/
export function clearAdvancehoppingCartAPI(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/shopping-cart/clear',
method: 'post',
data
})
}
/**
* @data 移动端-获取订单详情
*/
export function getShoppingCartListAPI(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/shopping-cart/list-cust',
method: 'post',
data
})
}
/**
* @data 移动端-预订餐创建订单(获取餐卷)
*/
export function getListElectronMobileUsableAPI(data) {
return request({
url: '/smart-canteen/api/v2/mkt/coupon/list-electron-mobile-usable',
method: 'post',
data
})
}
/**
* @data 移动端-预订餐创建订单
*/
export function addReserveMealApi(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/reserve/meal/add',
method: 'post',
data
})
}
/**
* @data 订单--同步支付状态
*/
export function syncPayStateApi(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/sync-pay-state',
method: 'post',
data
})
}
//获取取餐柜/生鲜柜
export function getCounterBypageApi(data) {
return request({
url: '/smart-canteen/api/v1/applet/machine/getCounterBypage',
method: 'get',
params:data
})
}