mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
refactor method checkoffbtn in payments modal
This commit is contained in:
@@ -96,9 +96,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
checkOffBtn() {
|
checkOffBtn() {
|
||||||
// return this.offBtn === true || this.agreeUser === false
|
return this.checkBtn()
|
||||||
// return this.checkBtn()
|
|
||||||
return !(this.offBtn === false && this.agreeUser !== false);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -108,14 +106,18 @@ export default {
|
|||||||
RedirectedMethodDep() {
|
RedirectedMethodDep() {
|
||||||
window.location.href = this.url
|
window.location.href = this.url
|
||||||
},
|
},
|
||||||
// checkBtn() {
|
checkBtn() {
|
||||||
// if (this.offBtn === false) {
|
if (this.offBtn === false) {
|
||||||
// if (this.agreeUser !== false) {
|
if (this.agreeUser !== false) {
|
||||||
// return false
|
return false
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// return true
|
return true
|
||||||
// },
|
},
|
||||||
|
clickedBtnChoice(index, content) {
|
||||||
|
this.clickedBtn = index
|
||||||
|
this.amount = content
|
||||||
|
}
|
||||||
// detectorMethod(method) {
|
// detectorMethod(method) {
|
||||||
// this.closeModal()
|
// this.closeModal()
|
||||||
// if (method === 'dep') {
|
// if (method === 'dep') {
|
||||||
@@ -129,10 +131,6 @@ export default {
|
|||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
clickedBtnChoice(index, content) {
|
|
||||||
this.clickedBtn = index
|
|
||||||
this.amount = content
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user