mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-11 15:56:29 +02:00
Merge branch 'main' into DevelopCkutls
This commit is contained in:
@@ -65,7 +65,7 @@ export default {
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
amount: 1,
|
||||
amount: 0,
|
||||
card: 0,
|
||||
clickedBtn: '',
|
||||
url: '',
|
||||
@@ -75,23 +75,22 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
amount(newAmount) {
|
||||
console.log(newAmount)
|
||||
this.offBtn = true
|
||||
console.log('OFFBTN', this.offBtn)
|
||||
setTimeout(() => {
|
||||
try {
|
||||
GettingMoneyOperation(newAmount)
|
||||
.then((response) => {
|
||||
console.log('Payments Modal Working!: ', response)
|
||||
this.url = response.url
|
||||
this.offBtn = false
|
||||
console.log('ONBTN', this.offBtn)
|
||||
})
|
||||
}
|
||||
catch (e) {
|
||||
console.error('Error in PaymentModal!', e)
|
||||
}
|
||||
}, 2000)
|
||||
if (this.amount > 0 && this.amount !== '' ) {
|
||||
setTimeout(() => {
|
||||
try {
|
||||
GettingMoneyOperation(newAmount)
|
||||
.then((response) => {
|
||||
console.log('Payments Modal Working!: ', response)
|
||||
this.url = response.url
|
||||
this.offBtn = false
|
||||
})
|
||||
}
|
||||
catch (e) {
|
||||
console.error('Error in PaymentModal!', e)
|
||||
}
|
||||
}, 2000)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user