修复发布页移动端小数输入与押金下限校验

- 哈夫币/M:移动端输入框由 type="digit" 改为 type="number",
  与绝密KD 一致,iOS 可输入小数点(烽火等级保持取整不变)
- 押金:新增 handleDepositBlur,输入框失焦时若低于智能推荐额度
  (或为空/非法)自动补足到推荐值并提示,桌面与移动端均生效;
  提交时校验保留作兜底

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
yml2213
2026-06-17 03:53:01 +08:00
co-authored by Claude Opus 4.8
parent f336957391
commit ae11dd7b8d
3 changed files with 17 additions and 1 deletions
@@ -90,6 +90,7 @@ const {
handleFireLevelInput,
handleAcceleratedSaleRatioInput,
useRecommendedDeposit,
handleDepositBlur,
setQuantityMode,
clampAcceleratedSaleRatioInput,
useReferenceSaleRatio,
@@ -513,6 +514,7 @@ function selectDailyLoss(value: string | number) {
:min="0"
:controls="false"
:placeholder="priceConfig.deposit_placeholder"
@blur="handleDepositBlur"
/>
<button class="recommend-button" type="button" @click="useRecommendedDeposit">
使用推荐 ¥{{ formatMoney(recommendedDepositAmount) }}