mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
added off btn if dont have response
This commit is contained in:
@@ -126,6 +126,10 @@ input:focus {
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-style-payments button:disabled {
|
||||||
|
background: #3d3a3a;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-click {
|
.btn-click {
|
||||||
border-radius: 10px !important;
|
border-radius: 10px !important;
|
||||||
background: #EF4444 !important;
|
background: #EF4444 !important;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<input type="text">
|
<input type="text">
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-deposit btn-style-payments">
|
<div class="btn-deposit btn-style-payments">
|
||||||
<button type="submit" @click="RedirectedMethodDep">Пополнить</button>
|
<button type="submit" :disabled="offBtn" @click="RedirectedMethodDep">Пополнить</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -57,18 +57,21 @@ export default {
|
|||||||
card: 0,
|
card: 0,
|
||||||
clickedBtn: '',
|
clickedBtn: '',
|
||||||
url: '',
|
url: '',
|
||||||
|
offBtn: false,
|
||||||
PaymentsModalNumbers
|
PaymentsModalNumbers
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
amount(newAmount) {
|
amount(newAmount) {
|
||||||
console.log(newAmount)
|
console.log(newAmount)
|
||||||
|
this.offBtn = !this.offBtn
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
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 = !this.offBtn
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user