added event listener for notification money withdraw

This commit is contained in:
Kostya
2023-12-20 16:53:19 +03:00
parent a407f85c91
commit 33d40cc65a
2 changed files with 32 additions and 31 deletions

View File

@@ -195,8 +195,8 @@ export default {
console.log(`From /profile to - ${this.url} url`)
window.location.href = this.url
},
RedirectedMethodTransferMoneyToSp() {
setTimeout(() => {
async RedirectedMethodTransferMoneyToSp() {
setTimeout(async () => {
try {
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => {
console.log(`work withdraw - ${response}`)
@@ -205,8 +205,8 @@ export default {
catch (e) {
console.error(`Error in wihdrawmoney operation - ${e}`)
}
await this.$emit('notifacetionmoney')
}, 4000)
return this.$emit('closemodal')
},
checkBtn() {
if (this.offBtn === false) {