From c505d88aeeed9a63beabfd4ff1d09da5ba34d7d5 Mon Sep 17 00:00:00 2001 From: Kostya Date: Wed, 13 Dec 2023 20:52:14 +0300 Subject: [PATCH] added redirected on click btn --- luckydiamond/src/components/PaymentsModal.vue | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/luckydiamond/src/components/PaymentsModal.vue b/luckydiamond/src/components/PaymentsModal.vue index b612c46..1f41996 100644 --- a/luckydiamond/src/components/PaymentsModal.vue +++ b/luckydiamond/src/components/PaymentsModal.vue @@ -21,7 +21,7 @@
- +
@@ -36,7 +36,7 @@
- +
@@ -81,19 +81,22 @@ export default { closeModal() { return this.$emit('closemodal') }, - detectorMethod(method) { - this.closeModal() - if (method === 'dep') { - return this.$emit('deposit', this.amount) - } - else if (method === 'with') { - return this.$emit('withdraw', this.amount, this.card) - } - else { - console.log('Произошла ошибка при взаимодействие') - return - } + RedirectedMethodDep() { + window.location.href = this.url }, + // detectorMethod(method) { + // this.closeModal() + // if (method === 'dep') { + // return this.$emit('deposit', this.amount) + // } + // else if (method === 'with') { + // return this.$emit('withdraw', this.amount, this.card) + // } + // else { + // console.log('Произошла ошибка при взаимодействие') + // return + // } + // }, clickedBtnChoice(index, content) { this.clickedBtn = index this.amount = content