优化移动端押金 ui

This commit is contained in:
yml2213
2026-06-12 21:32:35 +08:00
parent 7c2f5e34c3
commit c8b8922c8d
2 changed files with 120 additions and 52 deletions
@@ -532,28 +532,27 @@ function selectRadio<T extends string>(value: T, setter: (value: T) => void) {
<div class="form-section">
<h2 class="section-title">押金与价格</h2>
<van-field
v-model="form.depositAmountYuan"
label="押金"
type="number"
required
:placeholder="priceConfig.deposit_placeholder"
suffix="元"
class="publish-field"
>
<template #label>
<span
class="hint-label deposit-label"
:data-hint="priceConfig.deposit_placeholder"
tabindex="0"
>
押金<em v-if="priceConfig.deposit_hint">{{ priceConfig.deposit_hint }}</em>
</span>
</template>
</van-field>
<button class="deposit-recommend-btn" type="button" @click="useRecommendedDeposit">
推荐押金 ¥{{ formatMoney(recommendedDepositAmount) }}
</button>
<div class="deposit-card">
<label class="deposit-heading">
<span>押金<b>*</b></span>
<em v-if="priceConfig.deposit_hint">{{ priceConfig.deposit_hint }}</em>
</label>
<div class="deposit-input-wrap">
<input
v-model="form.depositAmountYuan"
type="number"
inputmode="decimal"
:placeholder="priceConfig.deposit_placeholder"
/>
<span></span>
</div>
<p v-if="priceConfig.deposit_placeholder" class="deposit-help">
{{ priceConfig.deposit_placeholder }}
</p>
<button class="deposit-recommend-btn" type="button" @click="useRecommendedDeposit">
推荐押金 ¥{{ formatMoney(recommendedDepositAmount) }}
</button>
</div>
<van-field label="每日损耗" required class="publish-field">
<template #input>
<div class="radio-group">