From 7030dd107c4f270fea7ee9606b16439565953258 Mon Sep 17 00:00:00 2001 From: YoYo Date: Tue, 7 Apr 2026 21:58:17 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E6=96=B9=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E4=B8=8A=E4=BC=A0=E4=B8=AA=E4=BA=BA=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - RecipeDetailOverlay: 未上传二维码/背景图时,卡片上方显示提示横幅,下方出现「上传我的二维码」按钮,点击跳转到 MyDiary 品牌设置页并记录来源配方 - MyDiary: 新增二维码图片上传区域(直接上传图片文件,存为 base64 → PUT /api/brand qr_code 字段);上传成功后若有待返回配方则自动跳回配方卡片;修复 loadBrandSettings 字段名与后端不一致的问题 - RecipeSearch: 支持 ?openRecipe= 查询参数,页面挂载时自动打开指定配方卡片,实现从 MyDiary 上传后无缝返回 Co-Authored-By: Claude Sonnet 4.6 --- .../src/components/RecipeDetailOverlay.vue | 69 ++++++++++++++++- frontend/src/views/MyDiary.vue | 75 +++++++++++++++---- frontend/src/views/RecipeSearch.vue | 26 ++++++- 3 files changed, 152 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index 897f16d..588132a 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -5,7 +5,7 @@
-
+
@@ -36,6 +36,12 @@ >English
+ +
+ + 上传你的专属二维码,生成属于自己的配方卡片 +
+
@@ -122,10 +128,15 @@ +
@@ -342,6 +353,7 @@