feat: 名片支持展示存款信息并适配弹窗宽度

This commit is contained in:
2026-03-21 08:29:29 +08:00
parent 7bf9d18b33
commit 60cec0276b
3 changed files with 9 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ class UserController extends Controller
if ($operator && ($operator->user_level >= $targetUser->user_level || $operator->id === $targetUser->id)) {
$data['exp_num'] = $targetUser->exp_num ?? 0;
$data['jjb'] = $targetUser->jjb ?? 0;
$data['bank_jjb'] = $targetUser->bank_jjb ?? 0;
$data['meili'] = $targetUser->meili ?? 0;
}

View File

@@ -470,7 +470,7 @@ a:hover {
background: white;
border: 2px solid var(--border-blue);
border-radius: 8px;
width: 340px;
width: 420px;
max-width: 90vw;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
overflow: hidden;

View File

@@ -645,6 +645,13 @@
<span x-text="userInfo.jjb"
style="font-weight: 700; color: #d97706; font-size: 14px;"></span>
</div>
<!-- 存款 -->
<div
style="flex: 1; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 6px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; justify-content: center;">
<span style="color: #047857; font-size: 11px; margin-bottom: 2px;">存款</span>
<span x-text="userInfo.bank_jjb"
style="font-weight: 700; color: #059669; font-size: 14px;"></span>
</div>
<!-- 魅力 -->
<div
style="flex: 1; background: #fdf2f8; border: 1px solid #fbcfe8; border-radius: 6px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; justify-content: center;">