login terminado para produccion

This commit is contained in:
2020-08-03 23:17:51 -05:00
parent 4f4602cb0f
commit a5ab2f2888
12 changed files with 55 additions and 35 deletions
+17 -15
View File
@@ -111,7 +111,7 @@
<div class="form-check">
<input
type="checkbox"
class="form-check-input"
class="form-check-input "
id="exampleCheck1"
v-model="confirmacion"
/>
@@ -227,7 +227,7 @@ export default {
noIntegrantes: 1,
integrantes: [],
cargando: false,
confirmacion: false,
confirmacion: false
};
},
methods: {
@@ -246,7 +246,7 @@ export default {
nombre: "",
apellidoPa: "",
apellidoMa: "",
correo: "",
correo: ""
});
}
},
@@ -303,11 +303,10 @@ export default {
showCancelButton: true,
confirmButtonColor: "#3085d6",
cancelButtonColor: "#d33",
confirmButtonText: "Si",
}).then((result) => {
confirmButtonText: "Si"
}).then(result => {
if (result.value) {
window.location.href =
"https://www.acatlan.unam.mx/hackaton/index.html#head";
window.location.href = "http://aws.unam.mx/";
}
});
},
@@ -323,28 +322,29 @@ export default {
apellidoMaLider: this.apellidoMaLider,
correoLider: this.correoLider,
carreraLider: this.carrera,
integrantes: this.integrantes,
integrantes: this.integrantes
};
axios
.post(`${config.api}/registro`, data)
.then(async (respose) => {
.then(async respose => {
this.cargando = false;
console.log(respose.data.msj);
await Swal.fire("Has sido registrado", "", "success");
window.location.href =
"https://www.acatlan.unam.mx/hackaton/index.html#head";
window.location.href = "http://aws.unam.mx/";
return;
})
.catch(async (error) => {
.catch(async error => {
this.cargando = false;
console.log(error.response.data.msj);
await Swal.fire(
"Ocurrio un error",
`${error.response.data.msj}`,
"error"
).then((window.location.href = "#"));
);
window.location.href = "http://aws.unam.mx/";
});
},
},
}
}
};
</script>
@@ -354,10 +354,12 @@ export default {
margin-left: 1.3rem;
margin-top: 1rem;
padding-top: 0.4rem;
display: flex;
}
.form-check-input {
width: 1.5rem;
height: 1.5rem;
display: flex;
}
.espacio {
margin-bottom: 3rem;