feat: 管理配方加共享按钮+状态+贡献统计

- 我的配方每行加📤共享按钮
- 显示共享状态:已共享(绿)/等待审核(橙)
- 已共享的隐藏共享按钮
- 非管理员显示"已贡献 X 条"统计
- 配方查询页去掉共享按钮(移到管理配方)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-10 09:01:45 +00:00
parent cf07f6b60d
commit 6f9c5732eb
2 changed files with 66 additions and 1 deletions

View File

@@ -64,7 +64,6 @@
/>
<span v-if="getDiaryShareStatus(d) === 'shared'" class="share-status shared">已共享</span>
<span v-else-if="getDiaryShareStatus(d) === 'pending'" class="share-status pending">审核中</span>
<button v-else class="share-btn" @click.stop="shareDiaryToPublic(d)" title="共享到公共配方库">📤</button>
</div>
<div v-if="myDiaryRecipes.length === 0" class="empty-hint">暂无个人配方</div>
</div>