From 9139108744da9c3307bac17ece87302ec69e24c8 Mon Sep 17 00:00:00 2001 From: lkddi Date: Sun, 1 Mar 2026 15:56:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=B1=82=E5=A9=9A?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=BC=82=E6=80=A7=E5=88=A4=E6=96=AD=EF=BC=8C?= =?UTF-8?q?mySex=20=E5=AD=98=E5=85=A5=20Alpine=20data=20=E9=81=BF=E5=85=8D?= =?UTF-8?q?=20x-show=20=E5=86=85=20window=20=E8=AE=BF=E9=97=AE=E5=A4=B1?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/chat/partials/user-actions.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/views/chat/partials/user-actions.blade.php b/resources/views/chat/partials/user-actions.blade.php index 6bd38be..125f5a7 100644 --- a/resources/views/chat/partials/user-actions.blade.php +++ b/resources/views/chat/partials/user-actions.blade.php @@ -116,6 +116,7 @@ // 婚姻状态 targetMarriage: null, // 对方婚姻状态 { status, partner_name, marriage_id } marriageLoading: false, + mySex: window.chatContext?.userSex ?? '', // 当前用户性别(用于求婚异性判断) // 自定义弹窗:直接代理到全局 window.chatDialog $alert: (...args) => window.chatDialog.alert(...args), @@ -714,8 +715,8 @@ x-show="!marriageLoading && (!targetMarriage || targetMarriage.status === 'none') && userInfo.sex - && window.chatContext.userSex - && userInfo.sex !== window.chatContext.userSex" + && mySex + && userInfo.sex !== mySex" style="flex:1; padding: 7px 10px; border-radius: 5px; font-size: 12px; font-weight: bold; cursor: pointer; background: linear-gradient(135deg,#f43f5e,#ec4899); color:#fff; border:none;" x-on:click="showUserModal = false; openProposeModal(userInfo.username)">