|
@@ -8,7 +8,7 @@
|
|
|
<div class="token">
|
|
|
<div class="title">Token</div>
|
|
|
<div class="box">
|
|
|
- <img :src="withdraw_info.icon_token" alt="">
|
|
|
+ <img :src="withdraw_info.icon_token" alt="">
|
|
|
<span>{{ withdraw_info.token }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -36,7 +36,8 @@
|
|
|
<span>Balance: {{ state.balance || 0 }}</span>
|
|
|
</div>
|
|
|
<div class="box">
|
|
|
- <input type="number" placeholder="0" @input="inputText" v-model="state.input_amount" :max="state.max_amount">
|
|
|
+ <input type="number" placeholder="0" @input="inputText" v-model="state.input_amount" :max="state.max_amount"
|
|
|
+ min="0">
|
|
|
<span @click="clickWithdrawalAll">Withdrawal All</span>
|
|
|
</div>
|
|
|
<div class="error">{{ state.error_msg }}</div>
|
|
@@ -100,6 +101,9 @@ const inputWithdrawCalcFee = () => {
|
|
|
}
|
|
|
|
|
|
const inputText = () => {
|
|
|
+ if (!state.input_amount == undefined || state.input_amount < 0) {
|
|
|
+ state.input_amount = 0
|
|
|
+ }
|
|
|
if (state.input_address.trim().length == 0) {
|
|
|
state.error_msg = 'Wallet Address不能为空'
|
|
|
state.is_enter_state = false
|