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`, message: `No tenemos fechas de entrega posibles para este código postal`,
}); });
setFieldError("postalCode", M.fiveLength); setFieldError("postalCode", M.fiveLength);
} postalCodeValid.value.dataOptions = [];
postalCodeValid.value.isValid = false;
} else {
postalCodeValid.value.dataOptions = dates; postalCodeValid.value.dataOptions = dates;
postalCodeValid.value.isValid = true; postalCodeValid.value.isValid = true;
}
isPostalCodeLoading.value = false; isPostalCodeLoading.value = false;
} catch (error) { } catch (error) {
quasarNotify({ quasarNotify({

View File

@ -95,7 +95,7 @@ export default defineComponent({
<template> <template>
<div ref="target" class="vertical-carousel-container" style="min-height: 100dvh"> <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 <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"> <q-carousel-slide v-for="(item, i) in banners" :key="`banner-${i}`" :name="`banner-${i}`" :img-src="item.url">
<div class="vertical-carousel-content"> <div class="vertical-carousel-content">
<header class="carousel-content-header"> <header class="carousel-content-header">

View File

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