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

- 哈夫币/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
@@ -81,6 +81,7 @@ const {
handleFireLevelInput,
handleAcceleratedSaleRatioInput,
useRecommendedDeposit,
handleDepositBlur,
setQuantityMode,
clampAcceleratedSaleRatioInput,
useReferenceSaleRatio,
@@ -177,7 +178,7 @@ const screenshotGuides: Record<string, string> = {
<van-field
v-model="form.haf_coin_amount"
label="哈夫币/M"
type="digit"
type="number"
required
placeholder="只填写仓库右上角纯币数额,总资产不计算在内;100M 写 100"
class="publish-field"
@@ -578,6 +579,7 @@ const screenshotGuides: Record<string, string> = {
type="number"
inputmode="decimal"
:placeholder="priceConfig.deposit_placeholder"
@blur="handleDepositBlur"
/>
<span></span>
</div>