jyy-canteen-h5/api/advanceOrder/index.js

164 lines
2.5 KiB
JavaScript
Raw Normal View History

2025-04-03 11:24:37 +08:00
import request from '@/utils/request'
2025-04-18 18:35:12 +08:00
2025-04-03 11:24:37 +08:00
/**
2025-04-18 18:35:12 +08:00
* @data 食堂列表
*/
export function getCanteenListApi(data) {
return request({
url: '/smart-canteen/alloc_canteen/list',
method: 'get',
params: data
})
}
/**
* @data 菜谱列表
2025-04-03 11:24:37 +08:00
*/
export function getAdvanceOrderStallApi(data) {
return request({
2025-04-18 18:35:12 +08:00
url: '/smart-canteen/menu_app_recipe/reserve/canteen/shopstall/list',
2025-04-03 11:24:37 +08:00
method: 'get',
params: data
})
}
/**
* @data 移动端-查询预订日期
*/
export function getlistReserveDateAPI(data) {
return request({
2025-04-18 18:35:12 +08:00
url: '/smart-canteen/menu_app_recipe/reserve-date/list',
2025-04-03 11:24:37 +08:00
method: 'post',
data
})
}
/**
* @data 预订餐详情
*/
export function getAdvanceDetailListAPI(data) {
return request({
2025-04-18 18:35:12 +08:00
url: '/smart-canteen/menu_app_recipe/reserve/recipe/detail',
2025-04-03 11:24:37 +08:00
method: 'post',
data
})
}
/**
* @data 移动端-预订餐加购物车
*/
export function addAdvancehoppingCartAPI(data) {
return request({
2025-04-18 18:35:12 +08:00
url: '/smart-canteen/shopping_cart/add',
2025-04-03 11:24:37 +08:00
method: 'post',
data
})
}
/**
* @data 移动端-预订餐减购物车
*/
export function updateAdvancehoppingCartAPI(data) {
return request({
2025-04-18 18:35:12 +08:00
url: '/smart-canteen/shopping_cart/edit',
2025-04-03 11:24:37 +08:00
method: 'post',
data
})
}
/**
* @data 移动端-预订餐清空购物车
*/
export function clearAdvancehoppingCartAPI(data) {
return request({
2025-04-18 18:35:12 +08:00
url: '/smart-canteen/shopping_cart/remove',
2025-04-03 11:24:37 +08:00
method: 'post',
headers: {
"custId": uni.getStorageSync('custId'),
},
data
})
}
/**
2025-04-18 18:35:12 +08:00
* @data 移动端-获取购物车
2025-04-03 11:24:37 +08:00
*/
export function getShoppingCartListAPI(data) {
return request({
2025-04-18 18:35:12 +08:00
url: '/smart-canteen/shopping_cart/list',
2025-04-03 11:24:37 +08:00
method: 'post',
data
})
}
/**
* @data 移动端-预订餐创建订单
*/
export function addReserveMealApi(data) {
return request({
2025-04-18 18:35:12 +08:00
url: '/smart-canteen/order/add',
2025-04-03 11:24:37 +08:00
method: 'post',
// headers: {
// "custId": uni.getStorageSync('custId'),
// "openid": uni.getStorageSync('openId'),
// "merchant-id":"378915229716713472",
// "source-type": 7,
// },
data
})
}
2025-04-18 18:35:12 +08:00
/**
* @data 移动端-预订餐创建订单获取餐卷
*/
export function getListElectronMobileUsableAPI(data) {
return request({
url: '/smart-canteen/api/v2/mkt/coupon/list-electron-mobile-usable',
method: 'post',
data
})
}
2025-04-03 11:24:37 +08:00
/**
* @data 订单--同步支付状态
*/
export function syncPayStateApi(data) {
return request({
url: '/smart-canteen/api/v2/mobile/order/sync-pay-state',
method: 'post',
data
})
}