|
@@ -72,13 +72,18 @@ let withdraw_info = inject('withdraw_info')
|
|
|
withdraw_info.source = 'confirm'
|
|
|
withdraw_info.state_page = {}
|
|
|
let state = reactive({
|
|
|
- img_enter_state: false
|
|
|
+ img_enter_state: false,
|
|
|
+ withdrawing: false
|
|
|
})
|
|
|
|
|
|
const clickBtn = () => {
|
|
|
if (!state.img_enter_state) {
|
|
|
return
|
|
|
}
|
|
|
+ if(state.withdrawing) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ state.withdrawing = true;
|
|
|
withdrawRequest({
|
|
|
params: {
|
|
|
"amountValue": withdraw_info.data.input_amount,
|
|
@@ -87,6 +92,7 @@ const clickBtn = () => {
|
|
|
"withdrawReceiveAccount": withdraw_info.data.input_address
|
|
|
}
|
|
|
}).then((res) => {
|
|
|
+ state.withdrawing = false;
|
|
|
switch (res.code.toString()) {
|
|
|
case '0':
|
|
|
withdraw_info.state_page.txt = ['Estimated completion with a few minutes', 'View history for the latest updates']
|
|
@@ -98,6 +104,8 @@ const clickBtn = () => {
|
|
|
default:
|
|
|
message.error(res.code);
|
|
|
}
|
|
|
+ }).catch(err => {
|
|
|
+ state.withdrawing = false;
|
|
|
})
|
|
|
|
|
|
}
|