From 6dbae8ea52eb02af1f848b629e9140be003feced Mon Sep 17 00:00:00 2001 From: Hera Zhao Date: Wed, 8 Apr 2026 22:30:41 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20header=E9=87=8D=E6=8E=92=E3=80=81?= =?UTF-8?q?=E5=95=86=E4=B8=9A=E8=AE=A4=E8=AF=81=E6=A0=87=E8=AF=86=E3=80=81?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E9=85=8D=E6=96=B9=E3=80=81=E5=BE=85=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E3=80=81=E6=9D=83=E9=99=90=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Header: - 登录按钮固定右侧,适配各屏幕 - 登录后不显示版本号,用户名在原位 - 商业认证用户名前显示🏢 emoji - 响应式布局(手机端字号缩小) 配方共享: - 个人配方卡片加📤共享按钮 - 共享到公共配方库,非管理员需管理员审核 管理配方: - 待审核栏显示配方名、来源、精油列表 - 采纳调用 /api/recipes/{id}/adopt - 拒绝=删除(带确认) - 从recipes列表动态计算pending(不依赖不存在的API) 权限: - senior_editor可编辑精油价目和公共配方(auth.canEdit已包含) Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/App.vue | 119 ++++++++++++++++++++------- frontend/src/views/RecipeManager.vue | 48 +++++------ frontend/src/views/RecipeSearch.vue | 37 +++++++++ 3 files changed, 149 insertions(+), 55 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 4e69697..c822e4c 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -2,38 +2,23 @@
⚠️ 预览环境 · PR #{{ prId }} · 数据为生产副本,修改不影响正式环境
-
-
-
🌿
-
-

- doTERRA 配方计算器 - v2.2.0 - - - - - -

-

- 查询配方 - · - 计算成本 - · - 自制配方 - · - 导出卡片 - · - 精油知识 -

+
+
+
+
🌿
+
+

doTERRA 配方计算器

+

查询配方 · 计算成本 · 自制配方 · 导出卡片 · 精油知识

+
+
+
+ +
@@ -141,3 +126,73 @@ onMounted(async () => { }, 15000) }) + + diff --git a/frontend/src/views/RecipeManager.vue b/frontend/src/views/RecipeManager.vue index 3679a9a..a304c47 100644 --- a/frontend/src/views/RecipeManager.vue +++ b/frontend/src/views/RecipeManager.vue @@ -7,10 +7,15 @@
- {{ r.name }} - {{ r._owner_name }} - - +
+ {{ r.name }} + 来自 {{ r._owner_name }} + {{ r.ingredients.map(i => i.oil).join('、') }} +
+
+ + +
@@ -196,7 +201,7 @@