main
fanfan 7 months ago
parent ad957b2868
commit 9749648998
  1. 14
      pages/dealer/withdraw/apply.vue

@ -20,7 +20,7 @@
<view class="capital__item dis-flex flex-y-center"> <view class="capital__item dis-flex flex-y-center">
<view class="item__left">{{ words.money.value }}</view> <view class="item__left">{{ words.money.value }}</view>
<view class="item__right flex-box"> <view class="item__right flex-box">
<input class="input" type="digit" name="money" @input="wordsAmount" <input class="input" ref='inputClear' type="digit" name="money" @input="wordsAmount"
:placeholder="words.money_placeholder.value" /> :placeholder="words.money_placeholder.value" />
</view> </view>
</view> </view>
@ -149,7 +149,7 @@
methods: { methods: {
wordsAmount(e) { wordsAmount(e) {
console.log(this.words.money) console.log(this.form)
let amount = e.detail.value let amount = e.detail.value
let num = null let num = null
num = amount.replace(new RegExp('^(\\d+\\.\\d{2}).+'), '$1') num = amount.replace(new RegExp('^(\\d+\\.\\d{2}).+'), '$1')
@ -170,18 +170,19 @@
} }
if (num > Number(this.settlement.min_money)) { // value100, 100100 if (num > Number(this.settlement.min_money)) { // value100, 100100
uni.showToast({ uni.showToast({
title: this.settlement.min_money > 0 ? `最多可用${Number(this.settlement.min_money)}元, 请重新输入` : '暂无可提现金额', title: this.settlement.min_money > 0 ? `最多可用${Number(this.settlement.min_money)}元, 请重新输入` :
'暂无可提现金额',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
// this.words.money = this.settlement.min_money > 0 ? this.settlement.min_money : '' this.$refs.inputClear.setValue()
this.$forceUpdate(); this.$forceUpdate();
} else { } else {
if (!num) { // value,amount0, if (!num) { // value,amount0,
this.words.money = '' this.$refs.inputClear.setValue()
this.$forceUpdate(); this.$forceUpdate();
} else { } else {
// this.words.money = num this.$refs.inputClear.setValue()
this.$forceUpdate(); this.$forceUpdate();
} }
} }
@ -251,6 +252,7 @@
const app = this const app = this
app.disabled = true app.disabled = true
data.pay_type = app.payment data.pay_type = app.payment
console.log(data)
WithdrawApi.submit({ WithdrawApi.submit({
form: data form: data
}) })

Loading…
Cancel
Save