cambios vistos en la reunion anterior

This commit is contained in:
Jaume Solís 2024-05-16 11:16:57 +02:00
parent ee46be68fb
commit f2e3d3a559
4 changed files with 9 additions and 7 deletions

View File

@ -59,10 +59,12 @@ export default defineComponent({
message: `No tenemos fechas de entrega posibles para este código postal`,
});
setFieldError("postalCode", M.fiveLength);
postalCodeValid.value.dataOptions = [];
postalCodeValid.value.isValid = false;
} else {
postalCodeValid.value.dataOptions = dates;
postalCodeValid.value.isValid = true;
}
postalCodeValid.value.dataOptions = dates;
postalCodeValid.value.isValid = true;
isPostalCodeLoading.value = false;
} catch (error) {
quasarNotify({

View File

@ -95,7 +95,7 @@ export default defineComponent({
<template>
<div ref="target" class="vertical-carousel-container" style="min-height: 100dvh">
<q-carousel navigation-position="right" style="min-height: 100dvh" v-model="slide" navigation autoplay infinite
animated v-if="!!banners.length" class="custom-carousel">
animated v-if="!!banners.length" class="custom-carousel" :autoplay="30000">
<q-carousel-slide v-for="(item, i) in banners" :key="`banner-${i}`" :name="`banner-${i}`" :img-src="item.url">
<div class="vertical-carousel-content">
<header class="carousel-content-header">

View File

@ -370,7 +370,7 @@ export default defineComponent({
<div class="checkout-terms">
<q-checkbox v-model="terms" v-bind="termsAttrs" class="terms">
<p :style="!!errors.terms && 'color: red;'">
He leído y estoy de acuerdo con los términosy condiciones de
He leído y estoy de acuerdo con los términos y condiciones de
la tienda Floranet
</p>
</q-checkbox>

View File

@ -7,10 +7,10 @@ import * as R from "../regex";
const checkoutObjVal = {
name: z
.string({ required_error: M.requiredMessage })
.regex(R.justOneWord, M.nameMessage),
.regex(R.justLetters, M.nameMessage),
surname: z
.string({ required_error: M.requiredMessage })
.regex(R.justOneWord, M.nameMessage),
.regex(R.justLetters, M.nameMessage),
address: z.string({ required_error: M.requiredMessage }),
postalCode: GP.postalCode,
city: z