This commit is contained in:
2020-08-02 22:07:28 -05:00
parent 820ea06368
commit db6db44105
4 changed files with 210 additions and 205 deletions
+9 -9
View File
@@ -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,8 +303,8 @@ 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";
@@ -323,18 +323,18 @@ 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";
})
.catch(async error => {
.catch(async (error) => {
this.cargando = false;
console.log(error.response.data.msj);
await Swal.fire(
@@ -343,8 +343,8 @@ export default {
"error"
).then((window.location.href = "#"));
});
}
}
},
},
};
</script>