From 7429558ca0985c9958d650e7ccf6210486a30e50 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 12 Mar 2025 16:29:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E8=B0=B1=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dish/menu.js | 24 ++++++++++- src/views/dish/menu/index.vue | 81 ++++++++++++++++++++++++++--------- 2 files changed, 82 insertions(+), 23 deletions(-) diff --git a/src/api/dish/menu.js b/src/api/dish/menu.js index b8e7e75e..925b9a3d 100644 --- a/src/api/dish/menu.js +++ b/src/api/dish/menu.js @@ -56,8 +56,28 @@ export function getStallByCanteenApi(data) { }) } - - +// 获取当前菜谱 +export function getCurrentRecipeListApi(data) { + return request({ + url: '/smart-canteen/api/v2/menurecipe/query/current/recipe', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } +// 获取所有菜谱-分页 +export function getPageRecipeListApi(data) { + return request({ + url: '/smart-canteen/api/v2/menurecipe/page', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } diff --git a/src/views/dish/menu/index.vue b/src/views/dish/menu/index.vue index 0efb032e..3bc5e88d 100644 --- a/src/views/dish/menu/index.vue +++ b/src/views/dish/menu/index.vue @@ -79,9 +79,24 @@ {{(queryParams.pageNum - 1) * 10 + scope.$index + 1}} + + + + + + + + + + + - -