PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { ISignupIscrizioneArcadeiOptions, ISignupIscrizioneConacreisOptions } from 'model'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import type { ISignupIscrizioneArcadeiOptions} from 'model';
|
||||
import { ISignupIscrizioneConacreisOptions } from 'model'
|
||||
import { tools } from '@tools'
|
||||
|
||||
import { Logo } from '@/components/logo'
|
||||
import { CDate } from '@/components/CDate'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CMySelect } from '@/components/CMySelect'
|
||||
import { Logo } from '@src/components/logo'
|
||||
import { CDate } from '@src/components/CDate'
|
||||
import { CMyPage } from '@src/components/CMyPage'
|
||||
import { CMySelect } from '@src/components/CMySelect'
|
||||
|
||||
import { CTitleBanner } from '../CTitleBanner'
|
||||
import { computed, defineComponent, reactive, ref, watch } from 'vue'
|
||||
@@ -12,8 +13,8 @@ import { useQuasar } from 'quasar'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import MixinUsers from '@/mixins/mixin-users'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import MixinUsers from '@src/mixins/mixin-users'
|
||||
import useVuelidate from '@vuelidate/core'
|
||||
import { email, minLength, required } from '@vuelidate/validators'
|
||||
|
||||
@@ -34,57 +35,57 @@ export default defineComponent({
|
||||
|
||||
const validations: any = computed(() => {
|
||||
let valid: any = {
|
||||
name: {
|
||||
required
|
||||
},
|
||||
surname: {
|
||||
required
|
||||
},
|
||||
email: {
|
||||
email,
|
||||
required
|
||||
},
|
||||
cell_phone: {
|
||||
required
|
||||
},
|
||||
cell_phone2: {
|
||||
},
|
||||
doctype: {
|
||||
required
|
||||
},
|
||||
residency_address: {
|
||||
required
|
||||
},
|
||||
residency_city: {
|
||||
required
|
||||
},
|
||||
residency_province: {
|
||||
required
|
||||
},
|
||||
residency_zipcode: {
|
||||
required
|
||||
},
|
||||
dateofbirth: {
|
||||
required
|
||||
},
|
||||
born_city: {
|
||||
required
|
||||
},
|
||||
born_province: {
|
||||
required
|
||||
},
|
||||
born_country: {
|
||||
required
|
||||
},
|
||||
metodo_pagamento: {
|
||||
required
|
||||
},
|
||||
terms: {
|
||||
required
|
||||
},
|
||||
quota_versata: {
|
||||
required
|
||||
},
|
||||
name: {
|
||||
required
|
||||
},
|
||||
surname: {
|
||||
required
|
||||
},
|
||||
email: {
|
||||
email,
|
||||
required
|
||||
},
|
||||
cell_phone: {
|
||||
required
|
||||
},
|
||||
cell_phone2: {
|
||||
},
|
||||
doctype: {
|
||||
required
|
||||
},
|
||||
residency_address: {
|
||||
required
|
||||
},
|
||||
residency_city: {
|
||||
required
|
||||
},
|
||||
residency_province: {
|
||||
required
|
||||
},
|
||||
residency_zipcode: {
|
||||
required
|
||||
},
|
||||
dateofbirth: {
|
||||
required
|
||||
},
|
||||
born_city: {
|
||||
required
|
||||
},
|
||||
born_province: {
|
||||
required
|
||||
},
|
||||
born_country: {
|
||||
required
|
||||
},
|
||||
metodo_pagamento: {
|
||||
required
|
||||
},
|
||||
terms: {
|
||||
required
|
||||
},
|
||||
quota_versata: {
|
||||
required
|
||||
},
|
||||
}
|
||||
return valid
|
||||
})
|
||||
@@ -155,7 +156,7 @@ export default defineComponent({
|
||||
return t('reg.err.complexity')
|
||||
}
|
||||
}
|
||||
// if (!item.maxLength) { return t('reg.err.notmore') + ` ${item.$params.maxLength.max} ` + t('reg.err.char') }
|
||||
// if (!item.maxLength) { return t('reg.err.notmore') + ` ${item.$params.maxLength.max} ` + t('reg.err.char') }
|
||||
|
||||
if (item.required !== undefined) {
|
||||
if (!item.required) {
|
||||
@@ -237,13 +238,13 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function selectcountry({ name, iso2, dialCode }: {name: string, iso2: string, dialCode: string}) {
|
||||
function selectcountry({ name, iso2, dialCode }: { name: string, iso2: string, dialCode: string }) {
|
||||
// console.log(name, iso2, dialCode)
|
||||
signup.residency_country = name
|
||||
countryname.value = name
|
||||
}
|
||||
|
||||
function selectcountryborn({ name, iso2, dialCode }: {name: string, iso2: string, dialCode: string}) {
|
||||
function selectcountryborn({ name, iso2, dialCode }: { name: string, iso2: string, dialCode: string }) {
|
||||
// console.log(name, iso2, dialCode)
|
||||
signup.born_country = name
|
||||
countryborn.value = name
|
||||
|
||||
Reference in New Issue
Block a user