From 2983036388042c4dae3bed7416f6119ea55da9f5 Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Wed, 8 Apr 2026 20:44:57 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8C=BA=E5=88=86=E6=88=91=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E6=96=B9(diary)=E5=92=8C=E5=85=AC=E5=85=B1=E9=85=8D?= =?UTF-8?q?=E6=96=B9=E5=BA=93(recipes)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配方查询页: - 我的配方 → /api/diary (user_diary表),左绿色边框区分 - 收藏配方 → 收藏的公共配方 - 公共配方库 → /api/recipes (recipes表),所有公共配方 - 搜索同时过滤个人和公共配方 管理配方页: - 我的配方 → diary store,支持搜索/标签过滤 - 公共配方库 → 所有公共配方,所有用户可见 - 管理员创建的公共配方不再误归为"我的配方" Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/views/RecipeManager.vue | 71 ++++++++++------ frontend/src/views/RecipeSearch.vue | 123 ++++++++++++++++++++++----- 2 files changed, 145 insertions(+), 49 deletions(-) diff --git a/frontend/src/views/RecipeManager.vue b/frontend/src/views/RecipeManager.vue index 29d538f..3679a9a 100644 --- a/frontend/src/views/RecipeManager.vue +++ b/frontend/src/views/RecipeManager.vue @@ -58,40 +58,33 @@ - +

📖 我的配方 ({{ myRecipes.length }})

- -
- {{ r.name }} +
+ {{ d.name }} - {{ t }} + {{ t }} - {{ oils.fmtPrice(oils.calcCost(r.ingredients)) }} + {{ oils.fmtPrice(oils.calcCost(d.ingredients || [])) }}
- - + +
暂无个人配方
- -
+ +

🌿 公共配方库 ({{ publicRecipes.length }})