From ef5276b55d72398293956819fdbee34f4e167155 Mon Sep 17 00:00:00 2001
From: Cx330 <1487537121@qq.com>
Date: Sat, 22 Nov 2025 15:38:21 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B1=86=E5=8C=85AI=E5=88=9B=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 1651 ++++++++++++++++++++++++++++++++++++++++++++++++++++
menu.json | 62 ++
2 files changed, 1713 insertions(+)
create mode 100644 index.html
create mode 100644 menu.json
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..d9839bf
--- /dev/null
+++ b/index.html
@@ -0,0 +1,1651 @@
+
+
+
+
+ 今天吃什么 - 随机菜单抽取器
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 成功!
+ 已从menu.json加载菜品数据
+
+
+
+
+
+
+
+
+
+
+
+ 菜品管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 随机抽取
+
+
+
+
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
抽取结果
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
使用帮助
+
+
+
+
+
+
1. 添加菜品
+
您可以通过以下三种方式添加菜品:
+
+ - 单个添加:点击"添加菜品"按钮,填写菜品名称、分类和备注信息
+ - 批量添加:点击"批量添加"按钮,在文本框中每行输入一个菜品名称
+ - 导入JSON:点击"导入JSON"按钮,选择包含菜品数据的JSON文件
+ - 自动加载:页面会自动加载同目录下的menu.json文件
+
+
JSON文件支持两种格式:
+
+ - 简单格式:
["菜品1", "菜品2", "菜品3"]
+ - 对象格式:
[{"name": "菜品1", "category": "分类", "note": "备注"}, ...]
+
+
对象格式支持的字段包括:name/title/dish/food(名称)、category/type/kind(分类)、note/remark/description(备注)
+
+
+
+
2. 菜单管理
+
导入菜单后,您可以:
+
+ - 使用搜索框搜索菜品
+ - 使用分类筛选器筛选菜品
+ - 点击"添加菜品"按钮手动添加菜品
+ - 点击菜品卡片上的编辑或删除按钮修改或删除菜品
+
+
+
+
+
3. 随机抽取
+
设置抽取数量后,点击以下按钮之一进行抽取:
+
+ - 随机抽取:完全随机地从菜单中抽取指定数量的菜品
+ - 智能推荐:基于历史抽取记录,优先推荐较少出现的菜品
+
+
抽取结果将显示在右侧的结果区域,您可以保存或分享结果。
+
+
+
+
4. 数据存储
+
本应用使用浏览器的本地存储功能保存您的菜单数据和历史记录,数据仅存储在您的设备上,不会上传到服务器。
+
清除浏览器缓存或使用隐私模式可能会导致数据丢失,请定期备份您的 Excel 文件。
+
+
+
+
+
+
+
+
+
+
+
+
编辑菜品
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
分享结果
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/menu.json b/menu.json
new file mode 100644
index 0000000..3259ce0
--- /dev/null
+++ b/menu.json
@@ -0,0 +1,62 @@
+[
+ {
+ "name": "宫保鸡丁",
+ "category": "荤菜",
+ "note": "经典川菜,口味麻辣"
+ },
+ {
+ "name": "西红柿炒鸡蛋",
+ "category": "素菜",
+ "note": "家常菜,酸甜可口"
+ },
+ {
+ "name": "红烧肉",
+ "category": "荤菜",
+ "note": "传统名菜,肥而不腻"
+ },
+ {
+ "name": "麻婆豆腐",
+ "category": "素菜",
+ "note": "川菜代表,麻辣鲜香"
+ },
+ {
+ "name": "糖醋排骨",
+ "category": "荤菜",
+ "note": "酸甜口味,开胃下饭"
+ },
+ {
+ "name": "清炒西兰花",
+ "category": "素菜",
+ "note": "营养健康,清淡爽口"
+ },
+ {
+ "name": "鱼香肉丝",
+ "category": "荤菜",
+ "note": "川菜,酸甜辣口味"
+ },
+ {
+ "name": "酸辣土豆丝",
+ "category": "素菜",
+ "note": "家常菜,酸辣开胃"
+ },
+ {
+ "name": "番茄蛋汤",
+ "category": "汤品",
+ "note": "酸甜开胃,营养丰富"
+ },
+ {
+ "name": "米饭",
+ "category": "主食",
+ "note": "传统主食"
+ },
+ {
+ "name": "馒头",
+ "category": "主食",
+ "note": "北方传统面食"
+ },
+ {
+ "name": "面条",
+ "category": "主食",
+ "note": "传统面食"
+ }
+]
\ No newline at end of file