validacion
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>asinea-front</title><link href=css/app.b17d3f8c.css rel=preload as=style><link href=css/chunk-vendors.43c3da95.css rel=preload as=style><link href=js/app.1f3e4c0e.js rel=preload as=script><link href=js/chunk-vendors.593e4ceb.js rel=preload as=script><link href=css/chunk-vendors.43c3da95.css rel=stylesheet><link href=css/app.b17d3f8c.css rel=stylesheet></head><body><noscript><strong>We're sorry but asinea-front doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.593e4ceb.js></script><script src=js/app.1f3e4c0e.js></script></body></html>
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>asinea-front</title><link href=css/app.2ab9d658.css rel=preload as=style><link href=css/chunk-vendors.43c3da95.css rel=preload as=style><link href=js/app.2cccf797.js rel=preload as=script><link href=js/chunk-vendors.593e4ceb.js rel=preload as=script><link href=css/chunk-vendors.43c3da95.css rel=stylesheet><link href=css/app.2ab9d658.css rel=stylesheet></head><body><noscript><strong>We're sorry but asinea-front doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.593e4ceb.js></script><script src=js/app.2cccf797.js></script></body></html>
|
||||
Vendored
-2
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
+26
-3
@@ -460,17 +460,38 @@ export default {
|
||||
if (this.apellido_p == "") return "Falta el Apellido Paterno";
|
||||
if (this.apellido_p == "") return "Falta el Apellido Materno";
|
||||
if (this.curp == "") return "Falta el CURP";
|
||||
if(this.curp.length!=18)
|
||||
return "CURP no valido";
|
||||
if (this.genero == "") return "Falta el Genero";
|
||||
if (this.edad == "") return "Falta la edad";
|
||||
if(parseInt(this.edad, 10) <10 || parseInt(this.edad, 10) >99 )
|
||||
return "Edad no valida";
|
||||
if (this.telefono == "") return "Falta la telefono";
|
||||
if(this.telefono.length<10)
|
||||
return "Telefono no valido";
|
||||
if (this.correo == "") return "Falta el correo";
|
||||
if (this.password != this.pass2) return "Las contraseñas no coinciden";
|
||||
if (this.comunidad == "") return "Falta seleccionar comunidad";
|
||||
if (this.situacion == "") return "Falta seleccionar situación Académica";
|
||||
let num=0;
|
||||
let letra=0;
|
||||
for(let i=0 ; i<this.password.length; i++)
|
||||
{
|
||||
if(this.password[i]>='0' && this.password[i]<='9')
|
||||
num=1;
|
||||
if(this.password[i]>='a' && this.password[i]<='z')
|
||||
letra=1;
|
||||
}
|
||||
if(!num || !letra)
|
||||
return "La contraseña debe tener al menos un numero o una letra";
|
||||
if(this.password.length<8)
|
||||
return "La contraseña debe tener minimo 8 caracteres";
|
||||
|
||||
|
||||
|
||||
//situacion
|
||||
if (this.situacion == "Alumno") {
|
||||
if (this.cuenta == "" && this.comunidad != "Afiliado")
|
||||
if (this.cuenta == "" && this.comunidad == "UNAM")
|
||||
return "Falta introducir el numero de cuenta";
|
||||
if (this.ano == "")
|
||||
return "Falta introducir el año en el que esta cursando";
|
||||
@@ -490,7 +511,9 @@ export default {
|
||||
if (this.dialogoev == "") return "Falta seleccionar un dialogo";
|
||||
if (this.visita)
|
||||
if (this.visitaev == "") return "Falta seleccionar una visita";
|
||||
return false;
|
||||
return false;
|
||||
// if(this.tipo=="Grupal" && this.codigo=="")
|
||||
// return "Codigo invalido";
|
||||
},
|
||||
precios: function() {
|
||||
if (this.comunidad == "UNAM") {
|
||||
@@ -507,7 +530,7 @@ export default {
|
||||
this.p_visitar = 500;
|
||||
}
|
||||
}
|
||||
if (this.comunidad == "Afiliado") {
|
||||
if (this.comunidad == "Afiliado" || this.comunidad=="No Afiliado") {
|
||||
if (this.situacion == "Alumno") {
|
||||
this.p_ponente = 700;
|
||||
this.p_asistente = 200;
|
||||
|
||||
Reference in New Issue
Block a user