cambios vistos en la reunion anterior
This commit is contained in:
parent
ee46be68fb
commit
f2e3d3a559
|
@ -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({
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -370,7 +370,7 @@ export default defineComponent({
|
||||||
<div class="checkout-terms">
|
<div class="checkout-terms">
|
||||||
<q-checkbox v-model="terms" v-bind="termsAttrs" class="terms">
|
<q-checkbox v-model="terms" v-bind="termsAttrs" class="terms">
|
||||||
<p :style="!!errors.terms && 'color: red;'">
|
<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
|
la tienda Floranet
|
||||||
</p>
|
</p>
|
||||||
</q-checkbox>
|
</q-checkbox>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue