mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed offbtn method in payments modal
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<input class="promo-input" type="text">
|
<input class="promo-input" type="text">
|
||||||
</div>
|
</div>
|
||||||
<div class="deposit-checkbox checkbox-styles">
|
<div class="deposit-checkbox checkbox-styles">
|
||||||
<input type="checkbox">
|
<input @click="agreeUser = !agreeUser" type="checkbox">
|
||||||
<h3>Я согласен с пользовательским соглашением.</h3>
|
<h3>Я согласен с пользовательским соглашением.</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-deposit btn-text-style btn-display-deposit btn-style-payments">
|
<div class="btn-deposit btn-text-style btn-display-deposit btn-style-payments">
|
||||||
@@ -69,7 +69,7 @@ export default {
|
|||||||
card: 0,
|
card: 0,
|
||||||
clickedBtn: '',
|
clickedBtn: '',
|
||||||
url: '',
|
url: '',
|
||||||
offBtn: true,
|
offBtn: false,
|
||||||
agreeUser: false,
|
agreeUser: false,
|
||||||
PaymentsModalNumbers
|
PaymentsModalNumbers
|
||||||
}
|
}
|
||||||
@@ -83,7 +83,7 @@ export default {
|
|||||||
GettingMoneyOperation(newAmount)
|
GettingMoneyOperation(newAmount)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
console.log('Payments Modal Working!: ', response)
|
console.log('Payments Modal Working!: ', response)
|
||||||
this.url = response.url
|
// this.url = response.url
|
||||||
this.offBtn = false
|
this.offBtn = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -94,14 +94,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
checkOffBtn() {
|
||||||
|
return this.offBtn === true || this.agreeUser === false
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeModal() {
|
closeModal() {
|
||||||
return this.$emit('closemodal')
|
return this.$emit('closemodal')
|
||||||
},
|
},
|
||||||
checkOffBtn() {
|
|
||||||
console.log(this.offBtn !== false && this.agreeUser !== false)
|
|
||||||
return this.offBtn === false && this.agreeUser !== false
|
|
||||||
},
|
|
||||||
RedirectedMethodDep() {
|
RedirectedMethodDep() {
|
||||||
window.location.href = this.url
|
window.location.href = this.url
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user