typo
This commit is contained in:
parent
0f1a4c9759
commit
1c9563bdce
@ -312,7 +312,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="relative flex items-center justify-center px-6 py-1.5 bg-green hover:bg-green-700 text-white rounded-lg" v-on:click="invaildCard" :disabled="loading">
|
<button v-if="! hideButton" class="relative flex items-center justify-center px-6 py-1.5 bg-green hover:bg-green-700 text-white rounded-lg" v-on:click="invaildCard" :disabled="loading">
|
||||||
<i
|
<i
|
||||||
v-if="loading"
|
v-if="loading"
|
||||||
class="animate-submit delay-[0.28s] absolute w-2 h-2 rounded-full left-0 right-0 -top-3.5 m-auto before:absolute before:w-2 before:h-2 before:rounded-full before:animate-submit before:delay-[0.14s] after:absolute after:w-2 after:h-2 after:rounded-full after:animate-submit before:-left-3.5 after:-right-3.5 after:delay-[0.42s]"
|
class="animate-submit delay-[0.28s] absolute w-2 h-2 rounded-full left-0 right-0 -top-3.5 m-auto before:absolute before:w-2 before:h-2 before:rounded-full before:animate-submit before:delay-[0.14s] after:absolute after:w-2 after:h-2 after:rounded-full after:animate-submit before:-left-3.5 after:-right-3.5 after:delay-[0.42s]"
|
||||||
@ -371,7 +371,9 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
cards: {
|
cards: {
|
||||||
type: [Array, Object],
|
type: [Array, Object],
|
||||||
default: [],
|
default: function () {
|
||||||
|
return [];
|
||||||
|
},
|
||||||
description: "Add Card Style"
|
description: "Add Card Style"
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -454,6 +456,12 @@ export default {
|
|||||||
description: "Placeholder Card CVV Text"
|
description: "Placeholder Card CVV Text"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
hideButton: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
description: "Confirm button"
|
||||||
|
},
|
||||||
|
|
||||||
textButton: {
|
textButton: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'Confirm',
|
default: 'Confirm',
|
||||||
@ -554,7 +562,6 @@ export default {
|
|||||||
this.register_card = null;
|
this.register_card = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
onSelectedCard(card_id) {
|
onSelectedCard(card_id) {
|
||||||
this.card_id = card_id;
|
this.card_id = card_id;
|
||||||
this.formData.card_id = card_id;
|
this.formData.card_id = card_id;
|
||||||
@ -623,7 +630,8 @@ export default {
|
|||||||
|
|
||||||
this.unMaskCardNumber();
|
this.unMaskCardNumber();
|
||||||
|
|
||||||
/*for (let i = number.length - 1; i >= 0; i--) {
|
/*
|
||||||
|
for (let i = number.length - 1; i >= 0; i--) {
|
||||||
let num = number.charAt(i);
|
let num = number.charAt(i);
|
||||||
|
|
||||||
if (isOdd) {
|
if (isOdd) {
|
||||||
@ -639,7 +647,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isOdd = !isOdd;
|
isOdd = !isOdd;
|
||||||
}*/
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
this.formData.card_id = this.card_id;
|
this.formData.card_id = this.card_id;
|
||||||
|
|
||||||
|
12
resources/assets/js/mixins/global.js
vendored
12
resources/assets/js/mixins/global.js
vendored
@ -24,6 +24,7 @@ import AkauntingConnectTransactions from './../components/AkauntingConnectTransa
|
|||||||
import AkauntingSwitch from './../components/AkauntingSwitch';
|
import AkauntingSwitch from './../components/AkauntingSwitch';
|
||||||
import AkauntingSlider from './../components/AkauntingSlider';
|
import AkauntingSlider from './../components/AkauntingSlider';
|
||||||
import AkauntingColor from './../components/AkauntingColor';
|
import AkauntingColor from './../components/AkauntingColor';
|
||||||
|
import CardForm from './../components/CreditCard/CardForm';
|
||||||
|
|
||||||
import NProgress from 'nprogress';
|
import NProgress from 'nprogress';
|
||||||
import 'nprogress/nprogress.css';
|
import 'nprogress/nprogress.css';
|
||||||
@ -61,6 +62,7 @@ export default {
|
|||||||
AkauntingSwitch,
|
AkauntingSwitch,
|
||||||
AkauntingSlider,
|
AkauntingSlider,
|
||||||
AkauntingColor,
|
AkauntingColor,
|
||||||
|
CardForm,
|
||||||
[Select.name]: Select,
|
[Select.name]: Select,
|
||||||
[Option.name]: Option,
|
[Option.name]: Option,
|
||||||
[Steps.name]: Steps,
|
[Steps.name]: Steps,
|
||||||
@ -91,6 +93,16 @@ export default {
|
|||||||
currency: {},
|
currency: {},
|
||||||
documents: [],
|
documents: [],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
cardData: {
|
||||||
|
cardName: '',
|
||||||
|
cardNumber: '',
|
||||||
|
cardMonth: '',
|
||||||
|
cardYear: '',
|
||||||
|
cardCvv: '',
|
||||||
|
storeCard: false,
|
||||||
|
card_id: 0,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
data-id="tab-{{ $id }}"
|
data-id="tab-{{ $id }}"
|
||||||
data-tabs="{{ $id }}"
|
data-tabs="{{ $id }}"
|
||||||
x-bind:class="active != '{{ $id }}' ? '' : 'active-tabs text-purple border-purple transition-all after:absolute after:w-full after:h-0.5 after:left-0 after:right-0 after:bottom-0 after:bg-purple after:rounded-tl-md after:rounded-tr-md'"
|
x-bind:class="active != '{{ $id }}' ? '' : 'active-tabs text-purple border-purple transition-all after:absolute after:w-full after:h-0.5 after:left-0 after:right-0 after:bottom-0 after:bg-purple after:rounded-tl-md after:rounded-tr-md'"
|
||||||
|
{{ $attributes }}
|
||||||
>
|
>
|
||||||
@if ($slot->isNotEmpty())
|
@if ($slot->isNotEmpty())
|
||||||
{!! $slot !!}
|
{!! $slot !!}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
data-tabs="{{ $id }}"
|
data-tabs="{{ $id }}"
|
||||||
x-on:click="active = '{{ $id }}'"
|
x-on:click="active = '{{ $id }}'"
|
||||||
x-bind:class="active != '{{ $id }}' ? '' : 'active-tabs text-purple border-purple transition-all after:absolute after:w-full after:h-0.5 after:left-0 after:right-0 after:bottom-0 after:bg-purple after:rounded-tl-md after:rounded-tr-md'"
|
x-bind:class="active != '{{ $id }}' ? '' : 'active-tabs text-purple border-purple transition-all after:absolute after:w-full after:h-0.5 after:left-0 after:right-0 after:bottom-0 after:bg-purple after:rounded-tl-md after:rounded-tr-md'"
|
||||||
|
{{ $attributes }}
|
||||||
>
|
>
|
||||||
@if ($slot->isNotEmpty())
|
@if ($slot->isNotEmpty())
|
||||||
{!! $slot !!}
|
{!! $slot !!}
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
@props(['id'])
|
@props(['id'])
|
||||||
|
|
||||||
<div id="tab-{{ $id }}" data-tabs-content="{{ $id }}" x-show="active === '{{ $id }}'">
|
<div
|
||||||
|
id="tab-{{ $id }}"
|
||||||
|
data-tabs-content="{{ $id }}"
|
||||||
|
x-show="active === '{{ $id }}'"
|
||||||
|
{{ $attributes }}
|
||||||
|
>
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
@foreach ($payment_methods as $key => $name)
|
@foreach ($payment_methods as $key => $name)
|
||||||
@stack('invoice_{{ $key }}_tab_start')
|
@stack('invoice_{{ $key }}_tab_start')
|
||||||
|
|
||||||
<div class="swiper-slide">
|
<div class="swiper-slide">
|
||||||
<div
|
<div
|
||||||
x-on:click="active = '{{ $name }}'"
|
x-on:click="active = '{{ $name }}'"
|
||||||
@ -40,6 +41,7 @@
|
|||||||
{{ $name }}
|
{{ $name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@stack('invoice_{{ $key }}_tab_end')
|
@stack('invoice_{{ $key }}_tab_end')
|
||||||
|
|
||||||
@php $is_active = false; @endphp
|
@php $is_active = false; @endphp
|
||||||
@ -47,10 +49,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@php $is_active = true; @endphp
|
@php $is_active = true; @endphp
|
||||||
|
|
||||||
@foreach ($payment_methods as $key => $name)
|
@foreach ($payment_methods as $key => $name)
|
||||||
@stack('invoice_{{ $key }}_content_start')
|
@stack('invoice_{{ $key }}_content_start')
|
||||||
|
|
||||||
<div
|
<div
|
||||||
x-bind:class="active != '{{ $name }}' ? 'hidden': 'block'"
|
x-bind:class="active != '{{ $name }}' ? 'hidden': 'block'"
|
||||||
class="my-3"
|
class="my-3"
|
||||||
@ -58,6 +62,7 @@
|
|||||||
>
|
>
|
||||||
<component v-bind:is="method_show_html" @interface="onRedirectConfirm"></component>
|
<component v-bind:is="method_show_html" @interface="onRedirectConfirm"></component>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@stack('invoice_{{ $key }}_content_end')
|
@stack('invoice_{{ $key }}_content_end')
|
||||||
|
|
||||||
@php $is_active = false; @endphp
|
@php $is_active = false; @endphp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user