特性:支持在后台配置结婚离婚冷静期规则,并优化冷却时间文本提示;修复全局的离婚公告事件对象接收名称不匹配问题
This commit is contained in:
@@ -167,10 +167,13 @@
|
||||
<button x-on:click="doPropose()"
|
||||
:disabled="sending || !selectedRing || rings.length === 0 || !canAfford"
|
||||
style="flex:1; padding:10px 0; border-radius:8px; font-size:13px; font-weight:bold; border:none; transition:all .2s;"
|
||||
:style="(sending || !selectedRing || rings.length === 0 || !canAfford) ?
|
||||
{ background: '#f1f5f9', color: '#94a3b8', cursor: 'not-allowed', boxShadow: 'none' } :
|
||||
{ background: 'linear-gradient(135deg,#be185d,#f43f5e,#ec4899)', color: '#fff',
|
||||
cursor: 'pointer', boxShadow: '0 4px 12px rgba(244,63,94,0.3)' }">
|
||||
:style="(sending || !selectedRing || rings.length === 0 || !canAfford) ? { background: '#f1f5f9',
|
||||
color: '#94a3b8', cursor: 'not-allowed', boxShadow: 'none' } : {
|
||||
background: 'linear-gradient(135deg,#be185d,#f43f5e,#ec4899)',
|
||||
color: '#fff',
|
||||
cursor: 'pointer',
|
||||
boxShadow: '0 4px 12px rgba(244,63,94,0.3)'
|
||||
}">
|
||||
<span x-text="sending ? '💌 发送中…' : '💍 确认求婚'"></span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -982,11 +985,11 @@
|
||||
});
|
||||
window.addEventListener('chat:marriage-divorced', (e) => {
|
||||
const {
|
||||
user_name,
|
||||
partner_name
|
||||
user_username,
|
||||
partner_username
|
||||
} = e.detail;
|
||||
if (typeof appendSystemMessage === 'function') {
|
||||
appendSystemMessage(`💔 ${user_name} 与 ${partner_name} 解除了婚姻关系。`);
|
||||
appendSystemMessage(`💔 ${user_username} 与 ${partner_username} 解除了婚姻关系。`);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user