Dining_Hall/api/advanceOrder/index.js

146 lines
2.5 KiB
JavaScript
Raw Normal View History

2025-02-19 09:34:34 +08:00
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
})
}
2025-02-21 10:03:35 +08:00
/**
* @data 移动端-预订餐清空购物车
*/
export function clearAdvancehoppingCartAPI(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/shopping-cart/clear',
method: 'post',
headers: {
"custId": uni.getStorageSync('custId'),
},
data
})
}
2025-02-19 09:34:34 +08:00
/**
* @data 移动端-获取订单详情
*/
export function getShoppingCartListAPI(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/shopping-cart/list-cust',
method: 'post',
data
})
}
2025-02-21 10:03:35 +08:00
/**
* @data 移动端-预订餐创建订单获取餐卷
*/
export function getListElectronMobileUsableAPI(data) {
return request({
url: '/smart-canteen/api/v2/mkt/coupon/list-electron-mobile-usable',
method: 'post',
data
})
}
2025-02-19 09:34:34 +08:00
2025-02-21 10:03:35 +08:00
/**
* @data 移动端-预订餐创建订单
*/
export function addReserveMealApi(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/reserve/meal/add',
method: 'post',
2025-03-14 15:15:54 +08:00
// headers: {
// "custId": uni.getStorageSync('custId'),
// "openid": uni.getStorageSync('openId'),
// "merchant-id":"378915229716713472",
// "source-type": 7,
// },
2025-02-21 10:03:35 +08:00
data
})
}
2025-02-19 09:34:34 +08:00
2025-03-14 15:15:54 +08:00
/**
* @data 订单--同步支付状态
*/
export function syncPayStateApi(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/sync-pay-state',
method: 'post',
data
})
}
2025-02-19 09:34:34 +08:00