added event for close modal

This commit is contained in:
Kostya
2023-12-20 16:32:14 +03:00
parent a8d8f27796
commit a407f85c91

View File

@@ -196,19 +196,17 @@ export default {
window.location.href = this.url window.location.href = this.url
}, },
RedirectedMethodTransferMoneyToSp() { RedirectedMethodTransferMoneyToSp() {
if(this.captchaToken !== '' && this.amountSave > 0) { setTimeout(() => {
setTimeout(() => { try {
try { WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => {
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => { console.log(`work withdraw - ${response}`)
console.log(`work withdraw - ${response}`) })
this.offBtn = false }
}) catch (e) {
} console.error(`Error in wihdrawmoney operation - ${e}`)
catch (e) { }
console.error(`Error in wihdrawmoney operation - ${e}`) }, 4000)
} return this.$emit('closemodal')
}, 4000)
}
}, },
checkBtn() { checkBtn() {
if (this.offBtn === false) { if (this.offBtn === false) {