Browse Source

fix(提现): 修正提现金额输入类型和最小金额验证

将提现金额输入框类型改为digit以限制数字输入,并将最小提现金额验证从1元调整为0.3元
v1
前端-胡立永 3 weeks ago
parent
commit
d29bc07048
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      pages/subcomponent/withdraw.vue

+ 4
- 3
pages/subcomponent/withdraw.vue View File

@ -34,7 +34,8 @@
<view class="divider"></view>
<view class="form-group">
<view class="form-label">提现金额</view>
<input class="form-input" v-model="amount" placeholder="请输入" placeholder-class="input-placeholder" />
<input class="form-input" v-model="amount" type="digit" placeholder="请输入"
placeholder-class="input-placeholder" />
</view>
</view>
@ -150,8 +151,8 @@ export default {
}
//
if (amountNum < 1) {
uni.showToast({ title: '单笔提现不能低于1元', icon: 'none' })
if (amountNum <= 0.3) {
uni.showToast({ title: '单笔提现不能低于等于0.3元', icon: 'none' })
return
}


Loading…
Cancel
Save