fixed checkbox and method offbtn

This commit is contained in:
Kostya
2023-12-17 12:16:51 +03:00
parent 2b49eb168e
commit d62b06fd55

View File

@@ -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">
@@ -94,14 +94,16 @@ export default {
} }
} }
}, },
methods: { computed: {
closeModal() {
return this.$emit('closemodal')
},
checkOffBtn() { checkOffBtn() {
console.log(this.offBtn !== false && this.agreeUser !== false) console.log(this.offBtn !== false && this.agreeUser !== false)
return this.offBtn === false && this.agreeUser !== false return this.offBtn === false && this.agreeUser !== false
}, },
},
methods: {
closeModal() {
return this.$emit('closemodal')
},
RedirectedMethodDep() { RedirectedMethodDep() {
window.location.href = this.url window.location.href = this.url
}, },