功能:婚姻系统第12步(前端交互)
chat.js: - 监听婚姻全局广播(MarriageAccepted/Divorced/WeddingCelebration) - initMarriagePrivateChannel() 监听私人频道 (求婚/拒绝/过期/离婚申请/红包领取) frame.blade.php: - chatContext.marriage 注入所有婚姻 API URL - 引入 marriage-modals.blade.php 弹窗组件 marriage-modals.blade.php(新建): - 求婚弹窗(选戒指→求婚) - 收到求婚弹窗(接受/拒绝) - 结婚成功公告弹窗(可跳转婚礼设置) - 婚礼设置弹窗(档位/支付方式/立即OR定时) - 婚礼红包领取弹窗 - 所有 WebSocket 事件处理 user-actions.blade.php: - 名片加「💍 求婚」按钮(对方未婚时) - 名片加「💑 已婚状态」标签(对方已婚时) - fetchUser 同步拉取对方婚姻状态 MarriageController: - targetStatus 返回增加 status/partner_name/marriage_id - myRings 返回增加 status/intimacy_bonus/charm_bonus
This commit is contained in:
@@ -60,7 +60,22 @@
|
||||
appointUrl: "{{ route('chat.appoint.appoint') }}",
|
||||
revokeUrl: "{{ route('chat.appoint.revoke') }}",
|
||||
rewardUrl: "{{ route('command.reward') }}",
|
||||
rewardQuotaUrl: "{{ route('command.reward_quota') }}"
|
||||
rewardQuotaUrl: "{{ route('command.reward_quota') }}",
|
||||
// ─── 婚姻系统 ──────────────────────────────
|
||||
marriage: {
|
||||
proposeUrl: "{{ route('marriage.propose') }}",
|
||||
statusUrl: "{{ route('marriage.status') }}",
|
||||
targteStatusUrl: "/marriage/target",
|
||||
myRingsUrl: "{{ route('marriage.rings') }}",
|
||||
acceptUrl: (id) => `/marriage/${id}/accept`,
|
||||
rejectUrl: (id) => `/marriage/${id}/reject`,
|
||||
divorceUrl: (id) => `/marriage/${id}/divorce`,
|
||||
confirmDivorceUrl: (id) => `/marriage/${id}/confirm-divorce`,
|
||||
weddingTiersUrl: "/wedding/tiers",
|
||||
weddingSetupUrl: (id) => `/wedding/${id}/setup`,
|
||||
claimEnvelopeUrl: (id, ceremonyId) => `/wedding/${id}/claim`,
|
||||
envelopeStatusUrl: (id) => `/wedding/${id}/envelope-status`,
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js', 'resources/js/chat.js'])
|
||||
@@ -113,6 +128,8 @@
|
||||
@include('chat.partials.toast-notification')
|
||||
{{-- ═══════════ 聊天室交互脚本(独立文件维护) ═══════════ --}}
|
||||
@include('chat.partials.user-actions')
|
||||
{{-- ═══════════ 婚姻系统弹窗组件 ═══════════ --}}
|
||||
@include('chat.partials.marriage-modals')
|
||||
|
||||
{{-- 全屏特效系统:管理员烟花/下雨/雷电/下雪 --}}
|
||||
<script src="/js/effects/effect-sounds.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user