changed logic

This commit is contained in:
Kostya
2023-12-19 18:14:55 +03:00
parent 77d918e659
commit 8f88e9beb9

View File

@@ -138,20 +138,9 @@ export default {
console.log(`save amount = ${this.amountSave}`) console.log(`save amount = ${this.amountSave}`)
} }
}, },
captchaToken(TokenClaim) { captchaToken(newAmount) {
if(TokenClaim !== '' && this.amountSave > 0) { if (newAmount !== '' && this.amountSave > 0 && this.card !== '') {
this.offBtn = true
setTimeout(() => {
try {
WithdrawMoneyOperation(this.amountSave, this.card.toString(), TokenClaim, GetCookie('SearchToken'), GetCookie('AUTHTOKEN')).then((response) => {
console.log(`work withdraw - ${response}`)
this.offBtn = false this.offBtn = false
})
}
catch (e) {
console.error(`Error in wihdrawmoney operation - ${e}`)
}
}, 4000)
} }
} }
}, },
@@ -172,7 +161,21 @@ export default {
console.log(`From /profile to - ${this.url} url`) console.log(`From /profile to - ${this.url} url`)
window.location.href = this.url window.location.href = this.url
}, },
RedirectedMethodTransferMoneyToSp() {}, RedirectedMethodTransferMoneyToSp() {
if(this.captchaToken !== '' && this.amountSave > 0) {
setTimeout(() => {
try {
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken, GetCookie('SearchToken'), GetCookie('AUTHTOKEN')).then((response) => {
console.log(`work withdraw - ${response}`)
this.offBtn = false
})
}
catch (e) {
console.error(`Error in wihdrawmoney operation - ${e}`)
}
}, 4000)
}
},
onVerify: function (response) { onVerify: function (response) {
console.log(response); console.log(response);