付款打折限制仅数字输入

This commit is contained in:
2024-10-30 14:55:36 +08:00
parent b6d79c9319
commit 3173fcddc4

View File

@@ -11,7 +11,7 @@
<view class="u-m-t-40 u-flex "> <view class="u-m-t-40 u-flex ">
<view>实收金额</view> <view>实收金额</view>
<view class="u-m-l-32 border u-p-l-10 u-p-r-10 u-flex-1"> <view class="u-m-l-32 border u-p-l-10 u-p-r-10 u-flex-1">
<uni-easyinput style="digit" @input="currentPriceInput" @change="currentPriceChange" paddingNone :inputBorder="false" <uni-easyinput type="number" @input="currentPriceInput" @change="currentPriceChange" paddingNone :inputBorder="false"
v-model="form.currentPrice" v-model="form.currentPrice"
placeholder="输入实际金额"></uni-easyinput> placeholder="输入实际金额"></uni-easyinput>
</view> </view>
@@ -20,7 +20,7 @@
<view>优惠折扣</view> <view>优惠折扣</view>
<view class="u-m-l-32 u-flex-1 u-flex border u-p-l-10 u-p-r-10"> <view class="u-m-l-32 u-flex-1 u-flex border u-p-l-10 u-p-r-10">
<view class="u-flex-1"> <view class="u-flex-1">
<uni-easyinput @input="discountInput" @change="discountChange" style="digit" paddingNone :inputBorder="false" <uni-easyinput type="number" @input="discountInput" @change="discountChange" paddingNone :inputBorder="false"
v-model="form.discount" v-model="form.discount"
placeholder="输入折扣"></uni-easyinput> placeholder="输入折扣"></uni-easyinput>
</view> </view>