update
This commit is contained in:
@@ -531,7 +531,7 @@ onUnmounted(() => {
|
||||
<div class="ct1__field" :class="{ 'ct1__field--error': !!errors.cardNumber || !!cardMessage }">
|
||||
<label class="ct1__label"><span class="ct1__label-text">{{ t('card_view.card_number') }}</span><span class="ct1__required">*</span></label>
|
||||
<div class="ct1__input-box">
|
||||
<input class="ct1__input" autocomplete="cc-number" maxlength="19" placeholder="0000 0000 0000 0000"
|
||||
<input class="ct1__input" autocomplete="cc-number" inputmode="numeric" maxlength="19" placeholder="0000 0000 0000 0000"
|
||||
:value="formData.cardNumber" @input="onCardNumberChange">
|
||||
</div>
|
||||
<span v-if="errors.cardNumber || cardMessage" class="ct1__err">{{ errors.cardNumber || cardMessage }}</span>
|
||||
@@ -542,14 +542,14 @@ onUnmounted(() => {
|
||||
<div class="ct1__field" :class="{ 'ct1__field--error': !!errors.expires || !!expiresMessage }">
|
||||
<label class="ct1__label"><span class="ct1__label-text">{{ t('card_view.expire_date') }}</span><span class="ct1__required">*</span></label>
|
||||
<div class="ct1__input-box">
|
||||
<input class="ct1__input" autocomplete="cc-exp" maxlength="5" placeholder="MM/YY" :value="formData.expires" @input="onExpiresChange">
|
||||
<input class="ct1__input" autocomplete="cc-exp" inputmode="numeric" maxlength="5" placeholder="MM/YY" :value="formData.expires" @input="onExpiresChange">
|
||||
</div>
|
||||
<span v-if="errors.expires || expiresMessage" class="ct1__err">{{ errors.expires || expiresMessage }}</span>
|
||||
</div>
|
||||
<div class="ct1__field" :class="{ 'ct1__field--error': !!errors.cvv || !!cvvMessage }">
|
||||
<label class="ct1__label"><span class="ct1__label-text">{{ t('card_view.security_code') }}</span><span class="ct1__required">*</span></label>
|
||||
<div class="ct1__input-box">
|
||||
<input class="ct1__input" autocomplete="cc-csc" maxlength="4" placeholder="123" :value="formData.cvv" @input="onCvvChange">
|
||||
<input class="ct1__input" autocomplete="cc-csc" inputmode="numeric" maxlength="4" placeholder="123" :value="formData.cvv" @input="onCvvChange">
|
||||
</div>
|
||||
<span v-if="errors.cvv || cvvMessage" class="ct1__err">{{ errors.cvv || cvvMessage }}</span>
|
||||
</div>
|
||||
|
||||
@@ -42,9 +42,7 @@ const onchange = (value: any) => {
|
||||
|
||||
const submit = async () => {
|
||||
await nextTick();
|
||||
loadingStore.setLoading(true);
|
||||
if (!areAllValuesNotEmpty(formData)) {
|
||||
loadingStore.setLoading(false);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -393,7 +391,7 @@ onUnmounted(() => {
|
||||
|
||||
.otp-title {
|
||||
margin: 0 0 10px;
|
||||
font-size: 1.45rem;
|
||||
font-size: 23px;
|
||||
font-weight: 800;
|
||||
color: #0f172a;
|
||||
letter-spacing: -0.4px;
|
||||
@@ -402,7 +400,7 @@ onUnmounted(() => {
|
||||
|
||||
.otp-subtitle {
|
||||
margin: 0 0 10px;
|
||||
font-size: 0.9rem;
|
||||
font-size: 14px;
|
||||
color: #64748b;
|
||||
line-height: 1.6;
|
||||
max-width: 380px;
|
||||
@@ -424,7 +422,7 @@ onUnmounted(() => {
|
||||
background: #fff7ed;
|
||||
border: 1px solid #fed7aa;
|
||||
border-radius: 20px;
|
||||
font-size: 0.75rem;
|
||||
font-size: 12px;
|
||||
color: #92400e;
|
||||
line-height: 1.4;
|
||||
}
|
||||
@@ -444,7 +442,7 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.otp-label {
|
||||
font-size: 0.82rem;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #374151;
|
||||
letter-spacing: 0.4px;
|
||||
@@ -479,7 +477,7 @@ onUnmounted(() => {
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
font-size: 1.75rem;
|
||||
font-size: 28px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.3em;
|
||||
color: #111827;
|
||||
@@ -487,7 +485,7 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.otp-input::placeholder {
|
||||
font-size: 0.92rem;
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.04em;
|
||||
color: #d1d5db;
|
||||
@@ -497,7 +495,7 @@ onUnmounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 0.8rem;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #dc2626;
|
||||
margin: 0;
|
||||
@@ -517,7 +515,7 @@ onUnmounted(() => {
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-size: 1rem;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.05em;
|
||||
cursor: pointer;
|
||||
@@ -551,7 +549,7 @@ onUnmounted(() => {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
font-size: 0.85rem;
|
||||
font-size: 14px;
|
||||
flex-wrap: wrap;
|
||||
text-align: center;
|
||||
padding-bottom: 4px;
|
||||
@@ -669,7 +667,7 @@ onUnmounted(() => {
|
||||
|
||||
.otp-info-text {
|
||||
margin: 0;
|
||||
font-size: 0.795rem;
|
||||
font-size: 13px;
|
||||
color: #6b7280;
|
||||
line-height: 1.55;
|
||||
padding-top: 5px;
|
||||
@@ -686,13 +684,13 @@ onUnmounted(() => {
|
||||
justify-content: space-between;
|
||||
padding-top: 14px;
|
||||
margin-top: 4px;
|
||||
font-size: 0.78rem;
|
||||
font-size: 12px;
|
||||
color: #9ca3af;
|
||||
border-top: 1px solid #f1f5f9;
|
||||
}
|
||||
|
||||
.otp-powered {
|
||||
font-size: 0.72rem;
|
||||
font-size: 12px;
|
||||
color: #9ca3af;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -710,9 +708,9 @@ onUnmounted(() => {
|
||||
.otp-loading-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(15, 23, 42, 0.45);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
background: rgba(15, 23, 42, 0.25);
|
||||
backdrop-filter: blur(4px);
|
||||
-webkit-backdrop-filter: blur(4px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -749,14 +747,14 @@ onUnmounted(() => {
|
||||
|
||||
.otp-loading-text {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.otp-loading-sub {
|
||||
margin: 0;
|
||||
font-size: 0.8rem;
|
||||
font-size: 13px;
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
@@ -787,11 +785,11 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.otp-title {
|
||||
font-size: 1.25rem;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.otp-input {
|
||||
font-size: 1.5rem;
|
||||
font-size: 24px;
|
||||
height: 56px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user