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', headers: { "custId": uni.getStorageSync('custId'), }, 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', // headers: { // "custId": uni.getStorageSync('custId'), // "openid": uni.getStorageSync('openId'), // "merchant-id":"378915229716713472", // "source-type": 7, // }, data }) } /** * @data 订单--同步支付状态 */ export function syncPayStateApi(data) { return request({ url: '/smart-canteen/api/v2/mobile/order/sync-pay-state', method: 'post', data }) }