main
fanfan 6 months ago
parent 9749648998
commit 23e341e015
  1. 22
      pages/dealer/withdraw/apply.vue

@ -20,8 +20,8 @@
<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" ref='inputClear' type="digit" name="money" @input="wordsAmount" <input class="input" v-model="inputValue" type="digit" name="money"
:placeholder="words.money_placeholder.value" /> @input="wordsAmount" :placeholder="words.money_placeholder.value" />
</view> </view>
</view> </view>
</view> </view>
@ -135,7 +135,8 @@
// //
background: undefined, background: undefined,
// //
disabled: false disabled: false,
inputValue: null
} }
}, },
@ -149,7 +150,6 @@
methods: { methods: {
wordsAmount(e) { wordsAmount(e) {
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')
@ -175,14 +175,11 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
this.$refs.inputClear.setValue() this.inputValue = ''
this.$forceUpdate(); this.$forceUpdate();
} else { } else {
if (!num) { // value,amount0, if (!num) { // value,amount0,
this.$refs.inputClear.setValue() this.inputValue = ''
this.$forceUpdate();
} else {
this.$refs.inputClear.setValue()
this.$forceUpdate(); this.$forceUpdate();
} }
} }
@ -229,9 +226,9 @@
}) { }) {
const app = this const app = this
// //
if (!app.onValidation(detail.value)) { // if (!app.onValidation(detail.value)) {
return false // return false
} // }
// //
uni.showModal({ uni.showModal({
title: '友情提示', title: '友情提示',
@ -252,7 +249,6 @@
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