优化:确认发放按钮风格改为与全局弹窗一致

- 输入框+按钮回到同一行(align-items:stretch)
- 按钮完全复刻 global-dialog 确认按钮样式:
  padding:9px, border-radius:6px, font-size:13px, font-weight:bold
- 背景色 #f59e0b(与弹窗标题栏橙色对应)
- :style 仅控制 opacity,background 两分支都明确写入
This commit is contained in:
2026-03-01 12:07:12 +08:00
parent 5180526821
commit 9da0d83914
@@ -1001,29 +1001,27 @@
</div>
</div>
</div>
{{-- 输入区 --}}
{{-- 输入区(同一行) --}}
<div style="padding:14px 20px 16px;">
{{-- 输入框独占一行 --}}
<input type="number" x-model.number="amount"
:placeholder="quota.max_once ? '最多 ' + quota.max_once + ' 金币' : '请输入发放金额'"
:max="quota.max_once || 999999" min="1" x-on:keydown.enter="send()"
style="display:block; width:100%; height:46px; padding:0 14px;
border:2px solid #fcd34d; border-radius:10px; font-size:15px;
color:#92400e; outline:none; box-sizing:border-box; margin-bottom:10px;">
{{-- 确认按钮:全宽大圆角,类似弹窗确定按钮 --}}
<button x-on:click="send()"
style="display:block; width:100%; height:48px; border:none;
border-radius:10px; font-size:16px; font-weight:bold;
color:#fff; letter-spacing:2px; transition:opacity .15s;"
:style="(sending || !amount) ?
'background:#f59e0b; opacity:.45; cursor:not-allowed;' :
'background:#f59e0b; box-shadow:0 4px 14px rgba(245,158,11,.45); opacity:1; cursor:pointer;'"
:disabled="sending || !amount">
<span x-text="sending ? '发放中…' : '🎉 确认发放'"></span>
</button>
<p style="margin:8px 0 0; font-size:10px; color:#b45309; opacity:.75; text-align:center;">
<div style="display:flex; gap:10px; align-items:stretch; margin-bottom:8px;">
<input type="number" x-model.number="amount"
:placeholder="quota.max_once ? '最多 ' + quota.max_once + ' 金币' : '请输入发放金额'"
:max="quota.max_once || 999999" min="1" x-on:keydown.enter="send()"
style="flex:1; padding:9px 14px; border:2px solid #fcd34d;
border-radius:6px; font-size:13px; color:#92400e;
outline:none; box-sizing:border-box;">
<button x-on:click="send()"
style="padding:9px 20px; border:none; border-radius:6px;
font-size:13px; font-weight:bold; color:#fff;
cursor:pointer; transition:opacity .15s; white-space:nowrap;"
:style="(sending || !amount) ?
'background:#f59e0b; opacity:.45; cursor:not-allowed;' :
'background:#f59e0b; opacity:1;'"
:disabled="sending || !amount">
<span x-text="sending ? '发放中…' : '确认发放'"></span>
</button>
</div>
<p style="margin:0; font-size:10px; color:#b45309; opacity:.75; text-align:center;">
金币凭空产生并直接发放给对方,本操作记入你的履职记录。
</p>
</div>