1. 礼物特效

This commit is contained in:
李琦
2026-08-03 13:01:08 +08:00
parent 06c57a0754
commit abcb53b88e
3 changed files with 121 additions and 2 deletions

View File

@@ -59,6 +59,8 @@ function baseFields(side) {
showInviteButton: true,
inviteButtonText: '打开请柬',
invitePath: '/',
/** 背景音乐 URL从请柬 musicList 中选择;空=不播放) */
musicUrl: '',
// split 模板字段
verticalSlogan: '吾家有喜',
subSlogan1: '佳偶天成',
@@ -263,6 +265,7 @@ export function normalizePosterConfig(raw, side = 1) {
: base.enterEffect,
invitePath: loaded.invitePath || '/',
inviteButtonText: loaded.inviteButtonText || base.inviteButtonText,
musicUrl: typeof loaded.musicUrl === 'string' ? loaded.musicUrl.trim() : '',
pageTitle: loaded.pageTitle || base.pageTitle || '',
pageDescription: loaded.pageDescription || base.pageDescription || '',
qrCenterImg: loaded.qrCenterImg || '',