修复婚礼红包领取:①ChatController userJoin 写入 user_id ②WeddingService 从 room:1:users Hash 读在线用户 ③新郎新娘也可领红包 ④删除结婚弹窗冗余的'举办婚礼'按钮 ⑤升级红包领取按钮为橙色渐变样式

This commit is contained in:
2026-03-01 19:27:28 +08:00
parent 0990a13c2e
commit 392b1b06bb
3 changed files with 30 additions and 34 deletions
@@ -253,15 +253,6 @@
</div>
<div style="padding:20px 24px;">
<div style="font-size:13px; color:#6b7280; margin-bottom:16px;" x-text="subText"></div>
{{-- 举办婚礼按钮(仅对新婚夫妻显示) --}}
<div x-show="isNewlywed"
style="display:none; display:flex; gap:10px; justify-content:center; margin-bottom:14px;">
<button x-on:click="openWeddingSetup(); close();"
style="padding:11px 24px; background:linear-gradient(135deg,#f59e0b,#d97706);
color:#fff; border:none; border-radius:12px; font-size:13px; font-weight:bold; cursor:pointer;">
🎊 立即举办婚礼!
</button>
</div>
<button x-on:click="close()"
style="padding:10px 32px; background:#f1f5f9; border:none; border-radius:10px;
font-size:13px; color:#6b7280; cursor:pointer;">关闭</button>
@@ -634,13 +625,17 @@
红包有效期 <strong style="color:#fcd34d;">24小时</strong>,过期自动消失
</div>
<button x-on:click="doClaim()" :disabled="claiming"
style="padding:14px 40px; border:none; border-radius:50px; font-size:16px;
font-weight:bold; cursor:pointer; transition:all .2s;"
style="display:block; width:100%; padding:14px 0; border:none;
border-radius:50px; font-size:16px; font-weight:bold;
cursor:pointer; transition:all .2s; letter-spacing:1px;
box-shadow:0 4px 20px rgba(245,158,11,.5);"
:style="claiming
?
'background:#fcd34d; color:#92400e; opacity:.7; cursor:not-allowed;' :
'background:linear-gradient(135deg,#fcd34d,#f59e0b); color:#92400e;'">
<span x-text="claiming ? '领取中…' : '🎁 点击领取'"></span>
'background:linear-gradient(135deg,#f59e0b,#d97706); color:#fff;'"
onmouseover="if(!this.disabled) this.style.transform='scale(1.04)'"
onmouseout="this.style.transform=''">
<span x-text="claiming ? '领取中…' : ' 点击领取红包'"></span>
</button>
</div>