feat: Header重排、共享配方到公共库、待审核配方、权限优化 #17

Merged
fam merged 39 commits from fix/ui-polish-round2 into main 2026-04-09 18:37:12 +00:00
Showing only changes of commit 1018c1db11 - Show all commits

View File

@@ -516,13 +516,18 @@ async function loadBrand() {
} catch {
brand.value = {}
}
// Show upload prompt if user hasn't set up brand assets yet
// Prompt QR upload at most once per month
if (showBrandHint.value) {
const ok = await showConfirm(
'上传你的专属二维码,让配方卡片更专业 ✨',
{ okText: '去上传', cancelText: '取消' }
)
if (ok) goUploadQr()
const lastPrompt = localStorage.getItem('qr_upload_prompt_time')
const oneMonth = 30 * 24 * 60 * 60 * 1000
if (!lastPrompt || Date.now() - Number(lastPrompt) > oneMonth) {
localStorage.setItem('qr_upload_prompt_time', String(Date.now()))
const ok = await showConfirm(
'上传你的专属二维码,让配方卡片更专业 ✨',
{ okText: '去上传', cancelText: '下次再说' }
)
if (ok) goUploadQr()
}
}
}