hola
This commit is contained in:
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
||||
.logo-fes{height:5rem}.sin_pad{margin-left:0;margin-right:0;text-align:left}@media screen and (max-width:1024px){.logo-fes{margin-top:.7rem;height:4rem}}.Azul-puma{background-color:#1a1b1d}.footer{color:#fff}#app,.footer{text-align:center}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#1a1b1d;padding:0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box}.mystyle[data-v-e3759c50]{text-align:left}.block[data-v-e3759c50]{display:block}a[data-v-e3759c50]{max-height:100%}.menu[data-v-e3759c50]{background-color:#b80}.menu nav ul[data-v-e3759c50]{margin:0 1rem}.menu nav ul[data-v-e3759c50],.menu nav ul div[data-v-e3759c50]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.menu nav ul li[data-v-e3759c50]{list-style:none}.menu nav ul li a[data-v-e3759c50]{display:block}a[data-v-e3759c50]{color:#fff;-webkit-transition:.5s;transition:.5s;padding-left:.3rem;padding-right:.3rem}a[data-v-e3759c50]:hover{background-color:#936900;color:#fff}.active[data-v-e3759c50]{background-color:#936900}.titulo[data-v-5f8a5314]{margin-top:3rem;margin-bottom:3rem}h1[data-v-5f8a5314]{padding-left:2rem;padding-right:2rem;font-weight:700;font-size:1.6rem;text-align:center}main img[data-v-5f8a5314]{width:20rem;margin-bottom:6rem}@media screen and (min-width:768px){main img[data-v-5f8a5314]{width:40rem}h1[data-v-5f8a5314]{display:inline;border-bottom:.1rem solid #000;font-size:2rem}}@media screen and (min-width:1024px){main img[data-v-5f8a5314]{width:60rem}h1[data-v-5f8a5314]{font-size:2.5rem}}.cen[data-v-0318876e],.sub[data-v-0318876e]{text-align:center}.nor[data-v-0318876e]{font-weight:700;margin-bottom:2rem;margin-top:2rem}.bold[data-v-0318876e]{font-weight:700}.obj[data-v-0318876e]{font-weight:700;font-size:1.3rem}.container[data-v-0318876e]{margin-bottom:4rem}.dif[data-v-0318876e]{text-align:center}.alin[data-v-0318876e]{text-align:justify}.titulo[data-v-0318876e]{text-align:center;margin-top:2rem;margin-bottom:2rem}h1[data-v-0318876e]{padding-left:2rem;padding-right:2rem;font-weight:700;font-size:1.6rem;text-align:center}main img[data-v-0318876e]{width:20rem;margin-bottom:6rem}@media screen and (max-width:320px){.bold[data-v-0318876e]{font-weight:700;text-align:left}.alin p h4 h5 h6 h1 h2 a[data-v-0318876e]{text-align:left}main img[data-v-0318876e]{width:40rem}h1[data-v-0318876e]{display:inline;font-size:2rem}}@media screen and (min-width:1024px){main img[data-v-0318876e]{width:60rem}h1[data-v-0318876e]{font-size:2.5rem}}.bold[data-v-06f500ca]{font-weight:700}.container[data-v-06f500ca]{margin-bottom:4rem}.alin[data-v-06f500ca]{text-align:justify}.titulo[data-v-06f500ca]{margin-top:3rem;margin-bottom:3rem}h1[data-v-06f500ca]{padding-left:2rem;padding-right:2rem;font-weight:700;font-size:1.6rem;text-align:center}main img[data-v-06f500ca]{width:20rem;margin-bottom:6rem}@media screen and (min-width:768px){main img[data-v-06f500ca]{width:40rem}h1[data-v-06f500ca]{display:inline;border-bottom:.1rem solid #000;font-size:2rem}}@media screen and (min-width:1024px){main img[data-v-06f500ca]{width:60rem}h1[data-v-06f500ca]{font-size:2.5rem}}li[data-v-645b1710]{font-size:1.2rem;margin-top:1.4rem}.container[data-v-645b1710]{margin-bottom:4rem}.alin[data-v-645b1710]{text-align:justify}.titulo[data-v-645b1710]{margin-top:3rem;margin-bottom:2rem}h1[data-v-645b1710]{padding-left:2rem;padding-right:2rem;font-weight:700;font-size:1.6rem;text-align:center}main img[data-v-645b1710]{width:20rem;margin-bottom:6rem}@media screen and (min-width:768px){main img[data-v-645b1710]{width:40rem}h1[data-v-645b1710]{display:inline;border-bottom:.1rem solid #000;font-size:2rem}}@media screen and (min-width:1024px){main img[data-v-645b1710]{width:60rem}h1[data-v-645b1710]{font-size:2.5rem}}.bold[data-v-acd3285a]{font-weight:700;font-size:1.2rem}.container[data-v-acd3285a]{margin-bottom:4rem}.alin[data-v-acd3285a]{text-align:justify}.titulo[data-v-acd3285a]{margin-top:3rem;margin-bottom:3rem}h1[data-v-acd3285a]{padding-left:2rem;padding-right:2rem;font-weight:700;font-size:1.6rem;text-align:center}main img[data-v-acd3285a]{width:20rem;margin-bottom:6rem}@media screen and (min-width:768px){main img[data-v-acd3285a]{width:40rem}h1[data-v-acd3285a]{display:inline;border-bottom:.1rem solid #000;font-size:2rem}}@media screen and (min-width:1024px){main img[data-v-acd3285a]{width:60rem}h1[data-v-acd3285a]{font-size:2.5rem}}.left[data-v-3fbfce4c]{text-align:left}.right[data-v-3fbfce4c]{text-align:right}.left[data-v-3de3e024],.left[data-v-598efca2]{text-align:left}.center[data-v-598efca2]{text-align:center}.right[data-v-598efca2]{text-align:right}.left[data-v-7fa9f939],.left[data-v-796aa0a8]{text-align:left}.right[data-v-796aa0a8]{text-align:right}.left{text-align:left}.right{text-align:right}
|
||||
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="shortcut icon" href=https://www.unam.mx/sites/default/files/favicon_0.ico type=image/vnd.microsoft.icon><title>Coloquio de Educación</title><link href=css/app.d082fdef.css rel=preload as=style><link href=css/chunk-vendors.fbe9bade.css rel=preload as=style><link href=js/app.3534050b.js rel=preload as=script><link href=js/chunk-vendors.1467fb70.js rel=preload as=script><link href=css/chunk-vendors.fbe9bade.css rel=stylesheet><link href=css/app.d082fdef.css rel=stylesheet></head><body><noscript><strong>We're sorry but coloquio_internacion_educacion doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.1467fb70.js></script><script src=js/app.3534050b.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="shortcut icon" href=https://www.unam.mx/sites/default/files/favicon_0.ico type=image/vnd.microsoft.icon><title>Coloquio de Educación</title><link href=css/app.a291b77f.css rel=preload as=style><link href=css/chunk-vendors.fbe9bade.css rel=preload as=style><link href=js/app.6a5165cd.js rel=preload as=script><link href=js/chunk-vendors.a9f88d2b.js rel=preload as=script><link href=css/chunk-vendors.fbe9bade.css rel=stylesheet><link href=css/app.a291b77f.css rel=stylesheet></head><body><noscript><strong>We're sorry but coloquio_internacion_educacion doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.a9f88d2b.js></script><script src=js/app.6a5165cd.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
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
Generated
+703
-144
File diff suppressed because it is too large
Load Diff
+6
-1
@@ -16,21 +16,26 @@
|
||||
"dotenv": "^8.2.0",
|
||||
"jspdf": "^1.5.3",
|
||||
"pdfvuer": "^1.4.0",
|
||||
"sweetalert": "^2.1.2",
|
||||
"sweetalert2": "^9.7.2",
|
||||
"vue": "^2.6.11",
|
||||
"vue-pdf": "^4.0.7",
|
||||
"vue-router": "^3.1.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"@vue/cli-plugin-babel": "^4.1.0",
|
||||
"@vue/cli-plugin-eslint": "^4.1.0",
|
||||
"@vue/cli-service": "^4.1.0",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"babel-loader": "^8.1.0",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-vue": "^5.0.0",
|
||||
"pug": "^2.0.4",
|
||||
"pug-plain-loader": "^1.0.0",
|
||||
"vue-template-compiler": "^2.6.10"
|
||||
"vue-template-compiler": "^2.6.10",
|
||||
"webpack": "^4.42.0"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
tbody
|
||||
tr(v-for="i in ponencias")
|
||||
td
|
||||
a.btn.btn-primary(:href="`https://venus.acatlan.unam.mx/coloquioeducacion/descargar_ponencia?id_persona=${i.id_persona}`" download="ponencia" ) ver
|
||||
a.btn.btn-primary(:href="`${api}/descargar_ponencia?id_persona=${i.id_persona}`" download="ponencia" ) ver
|
||||
//- td
|
||||
//- button.btn.btn-info(type="button") ver
|
||||
td {{i.nombre_trabajo}}
|
||||
@@ -59,7 +59,7 @@
|
||||
tbody
|
||||
tr(v-for="j in carteles")
|
||||
td
|
||||
a.btn.btn-primary(:href="`https://venus.acatlan.unam.mx/coloquioeducacion/descargar_cartel?id_persona=${j.id_persona}`" download="ponencia" ) ver
|
||||
a.btn.btn-primary(:href="`${api}/descargar_cartel?id_persona=${j.id_persona}`" download="ponencia" ) ver
|
||||
//- td
|
||||
//- button.btn.btn-info(type="button") ver
|
||||
td {{j.nombre_trabajo}}
|
||||
@@ -77,12 +77,16 @@
|
||||
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
import config from '../config/config.js'
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
ponencias: {},
|
||||
carteles: {},
|
||||
id_admin: '',
|
||||
api:''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -94,7 +98,7 @@ export default {
|
||||
ponenciafile: function(id) {
|
||||
axios
|
||||
.get(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/descargar_ponencia?id_persona=${id}`
|
||||
`${this.api}/descargar_ponencia?id_persona=${id}`
|
||||
)
|
||||
.then(response => {
|
||||
// eslint-disable-next-line
|
||||
@@ -108,7 +112,7 @@ export default {
|
||||
cartelfile: function(id) {
|
||||
axios
|
||||
.get(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/descargar_cartel?id_persona=${id}`
|
||||
`${this.api}/descargar_cartel?id_persona=${id}`
|
||||
)
|
||||
.then(response => {
|
||||
// eslint-disable-next-line
|
||||
@@ -122,9 +126,13 @@ export default {
|
||||
},
|
||||
created: function() {
|
||||
this.id_admin = window.localStorage.id
|
||||
|
||||
this.api=config.api
|
||||
// eslint-disable-next-line
|
||||
console.log("sdkkdskdskjkjkjdskjds",this.api)
|
||||
axios
|
||||
.get(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/llenar_ponencia?id_admin=${this.id_admin}`
|
||||
`${this.api}/llenar_ponencia?id_admin=${this.id_admin}`
|
||||
)
|
||||
.then(response => {
|
||||
// eslint-disable-next-line
|
||||
@@ -137,7 +145,7 @@ export default {
|
||||
})
|
||||
axios
|
||||
.get(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/llenar_cartel?id_admin=${this.id_admin}`
|
||||
`${this.api}/llenar_cartel?id_admin=${this.id_admin}`
|
||||
)
|
||||
.then(response => {
|
||||
// eslint-disable-next-line
|
||||
|
||||
@@ -33,7 +33,9 @@
|
||||
<script>
|
||||
import webMenu from '../estetica/menu.vue'
|
||||
import Swal from 'sweetalert2'
|
||||
import swal from 'sweetalert';
|
||||
import axios from 'axios'
|
||||
import config from '../config/config.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -48,16 +50,31 @@ export default {
|
||||
login: function() {
|
||||
axios
|
||||
.post(
|
||||
'https://venus.acatlan.unam.mx/coloquioeducacion/loggin_persona',
|
||||
`${config.api}/loggin_persona`,
|
||||
{
|
||||
correo: this.correo,
|
||||
password: this.password,
|
||||
}
|
||||
)
|
||||
.then(response => {
|
||||
.then(async response => {
|
||||
// eslint-disable-next-line
|
||||
console.log(response.data)
|
||||
if (response.data.trabajo) {
|
||||
//console.log(response.data)
|
||||
if(response.data.participacion=='Asistente')
|
||||
{
|
||||
let d=response.data.id_persona[0]
|
||||
await swal(`Bienvenido ${d.nombre} ${d.apellido_p} ${d.apellido_m}`,"","success");
|
||||
await window.localStorage.setItem('id_persona',`${response.data.id_persona[0].id_persona}`);
|
||||
// eslint-disable-next-line
|
||||
console.log(response.data.id_persona[0].id_persona)
|
||||
this.$router.push( `/registroAsistencia`);
|
||||
|
||||
// await window.localStorage.setItem('datos',response.data.datos);
|
||||
// this.$router.push({
|
||||
// path:,
|
||||
// });
|
||||
return;
|
||||
}
|
||||
else if (response.data.trabajo) {
|
||||
// eslint-disable-next-line
|
||||
console.log('trabajo')
|
||||
this.$router.push({
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
import config from '../config/config.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -37,7 +38,7 @@ export default {
|
||||
e.preventDefault()
|
||||
axios
|
||||
.post(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/loggin_admin`,
|
||||
`${config.api}/loggin_admin`,
|
||||
{
|
||||
usuario: this.user,
|
||||
password: this.pass,
|
||||
|
||||
@@ -65,6 +65,9 @@
|
||||
import axios from 'axios'
|
||||
import Swal from 'sweetalert2'
|
||||
import webMenu from '../estetica/menu.vue'
|
||||
import config from '../config/config.js'
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -169,7 +172,7 @@ export default {
|
||||
console.log(formData)
|
||||
axios
|
||||
.post(
|
||||
'https://venus.acatlan.unam.mx/coloquioeducacion/registro_ponencia',
|
||||
`${config.api}/registro_ponencia`,
|
||||
formData,
|
||||
{
|
||||
headers: {
|
||||
@@ -195,10 +198,16 @@ export default {
|
||||
})
|
||||
.catch(function(error) {
|
||||
// eslint-disable-next-line
|
||||
console.log(error.response)
|
||||
let mensaje;
|
||||
if(error.response.data.msj==undefined)
|
||||
mensaje="Archivo muy extenso";
|
||||
else
|
||||
mensaje=error.response.data.msj
|
||||
|
||||
|
||||
Swal.fire({
|
||||
title: 'Error',
|
||||
text: error.response.data.msj,
|
||||
text: mensaje,
|
||||
icon: 'error',
|
||||
confirmButtonText: 'Aceptar',
|
||||
})
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
import webMenu from '../estetica/menu.vue'
|
||||
import Swal from 'sweetalert2'
|
||||
import axios from 'axios'
|
||||
import config from '../config/config.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -34,7 +35,7 @@ export default {
|
||||
recupera: function() {
|
||||
axios
|
||||
.get(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/enviar_email?correo=${this.correo}`
|
||||
`${config.api}/enviar_email?correo=${this.correo}`
|
||||
)
|
||||
.then(res => {
|
||||
// eslint-disable-next-line
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
.form-check.form-check-inline
|
||||
input#inlineRadio1.form-check-input(type='radio' v-model="data.tipo_participacion" name='inlineRadioOptions' value='ponente')
|
||||
label.form-check-label(for='inlineRadio1') Ponente
|
||||
|
||||
.row(v-if="data.tipo_participacion=='ponente'")
|
||||
.col-11.offset-1
|
||||
.form-check
|
||||
@@ -56,7 +57,7 @@
|
||||
.form-check
|
||||
input#exampleRadios2.form-check-input(type='radio' v-model="data.comunidad" value='externa')
|
||||
label.form-check-label(for='exampleRadios2')
|
||||
//- | Comunidad Externa
|
||||
| Comunidad Externa
|
||||
.row(v-if="data.comunidad=='externa'")
|
||||
.col-8.offset-2
|
||||
br
|
||||
@@ -98,7 +99,7 @@
|
||||
input#exampleInputEmail1.form-control(type='email' aria-describedby='emailHelp' placeholder='Correo' v-model="data.correo")
|
||||
.form-group
|
||||
input#exampleInputPassword1.form-control(type='password' placeholder='Contraseña' v-model="data.password")
|
||||
small#emailHelp.form-text.text-muted.left Tu contraseña debe contener un mínimo de 8 caracteres
|
||||
small#emailHelp.form-text.text-muted.left Tu contraseña debe contener un mínimo de 8 caracteres con numeros y letras
|
||||
.form-group
|
||||
input#exampleInputPassword1.form-control(type='password' placeholder='Repita la contraseña' v-model="pass")
|
||||
.row
|
||||
@@ -112,17 +113,21 @@
|
||||
import axios from 'axios'
|
||||
import Swal from 'sweetalert2'
|
||||
import webMenu from '../estetica/menu.vue'
|
||||
import config from '../config/config.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pass: 'holaa',
|
||||
pass: '',
|
||||
paises: [],
|
||||
data: { pais: '0' },
|
||||
}
|
||||
},
|
||||
created: function() {
|
||||
// eslint-disable-next-line
|
||||
console.log(config)
|
||||
|
||||
axios
|
||||
.get('https://venus.acatlan.unam.mx/coloquioeducacion/traer_pais')
|
||||
.get(`${config.api}/traer_pais`)
|
||||
.then(response => {
|
||||
// eslint-disable-next-line
|
||||
//console.log(response.data.paises)
|
||||
@@ -205,6 +210,7 @@ export default {
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
if (
|
||||
!this.data.password ||
|
||||
this.pass != this.data.password ||
|
||||
@@ -217,14 +223,35 @@ export default {
|
||||
)
|
||||
return
|
||||
}
|
||||
let letra = false,
|
||||
numero = false
|
||||
for (let i = 0; i < this.data.password.length; i++) {
|
||||
if (
|
||||
(this.data.password[i] >= 'a' &&
|
||||
this.data.password[i] <= 'z') ||
|
||||
(this.data.password[i] >= 'A' &&
|
||||
this.data.password[i] <= 'Z')
|
||||
)
|
||||
letra = true
|
||||
if (
|
||||
this.data.password[i] >= '0' &&
|
||||
this.data.password[i] <= '9'
|
||||
)
|
||||
numero = true
|
||||
}
|
||||
if (letra == false || numero == false) {
|
||||
Swal.fire(
|
||||
'Falta campos por llenar',
|
||||
'La contraseña tiene que tener numeros y letras',
|
||||
'warning'
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
// eslint-disable-next-line
|
||||
console.log(this.data)
|
||||
axios
|
||||
.post(
|
||||
'https://venus.acatlan.unam.mx/coloquioeducacion/registro',
|
||||
this.data
|
||||
)
|
||||
.post(`${config.api}/registro`, this.data)
|
||||
.then(response => {
|
||||
// eslint-disable-next-line
|
||||
console.log(response.data)
|
||||
|
||||
@@ -0,0 +1,727 @@
|
||||
<template>
|
||||
<div>
|
||||
<app-menu ></app-menu>
|
||||
<div class="container" >
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h1 class="titulo" style="text-align:center">Registro de actividades</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col aling_left nombre">
|
||||
<h3> Nombre: {{ nombre}}</h3>
|
||||
|
||||
<h3 class="abajo"> Correo: {{ correo}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col aling_left abajo_t">
|
||||
<h2>Mesas de trabajo</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col abajo_t">
|
||||
<div v-if="comunidad=='interna' && constancia==true" class="check custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="defaultIndeterminate2" checked @click="selec_pago()">
|
||||
<label class="size custom-control-label" for="defaultIndeterminate2">Deseo constancia de asistencia al evento (Tendra un costos de $300 M.N.)</label>
|
||||
</div>
|
||||
<div v-if="comunidad=='interna' && constancia==false" class="check custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="defaultIndeterminate2" @click="selec_pago()">
|
||||
<label class="size custom-control-label" for="defaultIndeterminate2">Deseo constancia de asistencia al evento (Tendra un costos de $300 M.N.)</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-1">
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="table-wrapper-scroll-y my-custom-scrollbar">
|
||||
|
||||
<table class="table table-bordered mb-0 ">
|
||||
<thead>
|
||||
<tr class="aling_left color_negro" >
|
||||
<th>
|
||||
Nombre de la mesa de trabajo
|
||||
</th>
|
||||
<th>Dia</th>
|
||||
<th>Horario</th>
|
||||
<th>Lugar</th>
|
||||
<th>Cupo</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
|
||||
<tr class="aling_left gris" v-for="item in mesa_lunes" v-bind:key=" item.id_evento" @click="elegir_mesa_lunes(item)">
|
||||
|
||||
<td v-if="check_lunes(item) " >{{item.nombre_evento}}</td>
|
||||
<td v-else class="elegido">{{item.nombre_evento}}</td>
|
||||
|
||||
<td v-if="check_lunes(item)" >Lunes 17 de Agosto</td>
|
||||
<td v-else class="elegido">Lunes 17 de Agosto</td>
|
||||
|
||||
|
||||
<td v-if="check_lunes(item)" >12:00 - 15:00</td>
|
||||
<td v-else class="elegido">12:00 - 15:00</td>
|
||||
|
||||
|
||||
<td v-if="check_lunes(item)" >{{item.lugar}}</td>
|
||||
<td v-else class="elegido">{{item.lugar}}</td>
|
||||
|
||||
|
||||
<td v-if="check_lunes(item)" >{{item.cupo}}</td>
|
||||
<td v-else class="elegido">{{item.cupo}}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr class="aling_left blanco" v-for="item in mesa_martes" v-bind:key=" item.id_evento" @click="elegir_mesa_martes(item)">
|
||||
|
||||
<td v-if="check_martes(item)" >{{item.nombre_evento}}</td>
|
||||
<td v-else class="elegido">{{item.nombre_evento}}</td>
|
||||
|
||||
<td v-if="check_martes(item)" >Martes 18 de Agosto</td>
|
||||
<td v-else class="elegido">Martes 18 de Agosto</td>
|
||||
|
||||
|
||||
<td v-if="check_martes(item)" >11:00 - 15:00</td>
|
||||
<td v-else class="elegido">11:00 - 15:00</td>
|
||||
|
||||
|
||||
<td v-if="check_martes(item)" >{{item.lugar}}</td>
|
||||
<td v-else class="elegido">{{item.lugar}}</td>
|
||||
|
||||
|
||||
<td v-if="check_martes(item)" >{{item.cupo}}</td>
|
||||
<td v-else class="elegido">{{item.cupo}}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr class="aling_left gris" v-for="item in mesa_miercoles" v-bind:key=" item.id_evento" @click="elegir_mesa_miercoles(item)">
|
||||
|
||||
<td v-if="check_miercoles(item)" >{{item.nombre_evento}}</td>
|
||||
<td v-else class="elegido">{{item.nombre_evento}}</td>
|
||||
|
||||
<td v-if="check_miercoles(item)" >Miercoles 19 de Agosto</td>
|
||||
<td v-else class="elegido">Miercoles 19 de Agosto</td>
|
||||
|
||||
|
||||
<td v-if="check_miercoles(item)" >12:00 - 15:00</td>
|
||||
<td v-else class="elegido">12:00 - 15:00</td>
|
||||
|
||||
|
||||
<td v-if="check_miercoles(item)" >{{item.lugar}}</td>
|
||||
<td v-else class="elegido">{{item.lugar}}</td>
|
||||
|
||||
|
||||
<td v-if="check_miercoles(item)" >{{item.cupo}}</td>
|
||||
<td v-else class="elegido">{{item.cupo}}</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col aling_left abajo_t arriba_t">
|
||||
<h2>Talleres</h2>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-1">
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="table-wrapper-scroll-y my-custom-scrollbar">
|
||||
|
||||
<table class="table table-bordered mb-0 ">
|
||||
<thead>
|
||||
<tr class="aling_left color_negro" >
|
||||
<th>
|
||||
Nombre del taller
|
||||
</th>
|
||||
<th>Dia</th>
|
||||
<th>Horario</th>
|
||||
<th>Lugar</th>
|
||||
<th>Cupo</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
|
||||
|
||||
<tr class="aling_left blanco " v-for="item in talleres" v-bind:key=" item.id_evento" @click="elegir_taller(item)">
|
||||
|
||||
<td v-if="check_taller(item)" >{{item.nombre_evento}}</td>
|
||||
<td v-else class="elegido">{{item.nombre_evento}}</td>
|
||||
|
||||
<td v-if="check_taller(item)" >
|
||||
<div>
|
||||
<tr>Lunes 17 de Agosto</tr>
|
||||
<tr>Martes 18 de Agosto</tr>
|
||||
<tr>Miercoles 19 de Agosto</tr>
|
||||
</div>
|
||||
</td>
|
||||
<td v-else class="elegido">
|
||||
<div>
|
||||
<tr>Lunes 17 de Agosto</tr>
|
||||
<tr>Martes 18 de Agosto</tr>
|
||||
<tr>Miercoles 19 de Agosto</tr>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td v-if="check_taller(item)" >
|
||||
<div>
|
||||
<tr>{{item.horas[0]}}</tr>
|
||||
<tr>{{item.horas[1]}}</tr>
|
||||
<tr>{{item.horas[2]}}</tr>
|
||||
</div>
|
||||
</td>
|
||||
<td v-else class="elegido">
|
||||
<div>
|
||||
<tr>{{item.horas[0]}}</tr>
|
||||
<tr>{{item.horas[1]}}</tr>
|
||||
<tr>{{item.horas[2]}}</tr>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td v-if="check_taller(item)" >{{item.lugar}}</td>
|
||||
<td v-else class="elegido">{{item.lugar}}</td>
|
||||
|
||||
|
||||
<td v-if="check_taller(item)" >{{item.cupo}}</td>
|
||||
<td v-else class="elegido">{{item.cupo}}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col aling_left abajo_t arriba_t">
|
||||
<h2>Ponencias magistrales</h2>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-1">
|
||||
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="table-wrapper-scroll-y my-custom-scrollbar">
|
||||
|
||||
<table class="table table-bordered table-striped mb-0 ">
|
||||
<thead>
|
||||
<tr class="aling_left color_negro" >
|
||||
<th>
|
||||
Nombre de la ponencia
|
||||
</th>
|
||||
<th>Dia</th>
|
||||
<th>Horario</th>
|
||||
<th>Lugar</th>
|
||||
<th>Cupo</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody >
|
||||
|
||||
|
||||
<tr class="aling_left blanco " v-for="item in magistrales" v-bind:key=" item.id_evento" @click="seleccionar_magistral(item)">
|
||||
|
||||
<td v-if="esta_magistral(item)" >{{item.nombre_evento}}</td>
|
||||
<td v-else class="elegido">{{item.nombre_evento}}</td>
|
||||
|
||||
<td v-if="esta_magistral(item)" >
|
||||
{{item.dia}}
|
||||
</td>
|
||||
<td v-else class="elegido">
|
||||
{{item.dia}}
|
||||
</td>
|
||||
|
||||
|
||||
<td v-if="esta_magistral(item)" >
|
||||
{{item.hora}}
|
||||
</td>
|
||||
<td v-else class="elegido">
|
||||
{{item.hora}}
|
||||
</td>
|
||||
|
||||
|
||||
<td v-if="esta_magistral(item)" >{{item.lugar}}</td>
|
||||
<td v-else class="elegido">{{item.lugar}}</td>
|
||||
|
||||
|
||||
<td v-if="esta_magistral(item)" >{{item.cupo}}</td>
|
||||
<td v-else class="elegido">{{item.cupo}}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row arriba abajo ">
|
||||
<div class="col">
|
||||
<div class="entrar">
|
||||
|
||||
<button class="button_salir" @click="salir()">Salir</button>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<a @click="registrar()" ><button class="button">Registrar</button></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axios from 'axios';
|
||||
import config from '../config/config.js'
|
||||
import webMenu from '../estetica/menu.vue';
|
||||
import swal from 'sweetalert';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
mesa_lunes: [],
|
||||
mesa_martes:[],
|
||||
mesa_miercoles: [],
|
||||
|
||||
correo: "",
|
||||
comunidad:"",
|
||||
day:[],
|
||||
mesa_elegida_lunes:null,
|
||||
mesa_elegida_martes:null,
|
||||
mesa_elegida_miercoles: null,
|
||||
talleres:[],
|
||||
taller_elegido: null,
|
||||
magistrales:[],
|
||||
magistrales_seleccionadas:[],
|
||||
id_persona : window.localStorage.getItem('id_persona'),
|
||||
nombre: null,
|
||||
constancia: false,
|
||||
link: `${config.api}/descargar_pdf?id_persona=${ window.localStorage.getItem('id_persona')}`,
|
||||
primero: `${config.api}/crear_pdf?id_persona=${this.id_persona}`
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
|
||||
appMenu: webMenu,
|
||||
},
|
||||
methods:{
|
||||
selec_pago()
|
||||
{
|
||||
this.constancia=!this.constancia;
|
||||
},
|
||||
registrar(){
|
||||
if(this.comunidad=='externa')
|
||||
this.constancia=true;
|
||||
let ev=[];
|
||||
if(this.mesa_elegida_lunes!=null)
|
||||
ev.push(this.mesa_elegida_lunes);
|
||||
|
||||
if(this.mesa_elegida_martes!=null)
|
||||
ev.push(this.mesa_elegida_martes);
|
||||
|
||||
if(this.mesa_elegida_miercoles!=null)
|
||||
ev.push(this.mesa_elegida_miercoles);
|
||||
if(this.taller_elegido!=null)
|
||||
ev.push(this.taller_elegido);
|
||||
for(let i=0; i<this.magistrales_seleccionadas.length; i++)
|
||||
ev.push(this.magistrales_seleccionadas[i]);
|
||||
let pago=0;
|
||||
if(this.constancia==true)
|
||||
pago+=300;
|
||||
if(this.taller_elegido!=null)
|
||||
pago+=300;
|
||||
let data={
|
||||
id_persona: this.id_persona,
|
||||
constancia: this.constancia,
|
||||
eventos: ev,
|
||||
total_pago: pago
|
||||
|
||||
};
|
||||
axios
|
||||
.post(
|
||||
`${config.api}/registro_evento`,
|
||||
data
|
||||
).then(async ()=>{
|
||||
await axios.get(`${config.api}/crear_pdf?id_persona=${this.id_persona}`).
|
||||
then(async ()=>{
|
||||
await swal("Se registro correctamente","", "success").then(()=>{window.location.href = this.link});
|
||||
|
||||
|
||||
this.$router.push( `/`);
|
||||
})
|
||||
}).catch(async ()=>{
|
||||
await swal("Sucedio un error", "", "error");
|
||||
this.$router.push( `/`);
|
||||
})
|
||||
},
|
||||
salir(){
|
||||
|
||||
localStorage.clear();
|
||||
this.$router.push( `/login`);
|
||||
|
||||
},
|
||||
check_taller(t){
|
||||
if(this.taller_elegido==null || this.taller_elegido.id_evento!=t.id_evento)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
},
|
||||
check_lunes(m)
|
||||
{
|
||||
if(this.mesa_elegida_lunes==null || this.mesa_elegida_lunes.id_evento!=m.id_evento)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
},
|
||||
check_martes(m)
|
||||
{
|
||||
if(this.mesa_elegida_martes==null || this.mesa_elegida_martes.id_evento!=m.id_evento)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
},
|
||||
check_miercoles(m)
|
||||
{
|
||||
if(this.mesa_elegida_miercoles==null || this.mesa_elegida_miercoles.id_evento!=m.id_evento)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
},
|
||||
esta_magistral(m)
|
||||
{
|
||||
let ind=-1
|
||||
for(let i=0; i<this.magistrales_seleccionadas.length; i++)
|
||||
if(this.magistrales_seleccionadas[i].id_evento==m.id_evento)
|
||||
ind=i;
|
||||
if(ind!=-1)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
},
|
||||
seleccionar_magistral(m){
|
||||
let ind=-1
|
||||
for(let i=0; i<this.magistrales_seleccionadas.length; i++)
|
||||
if(this.magistrales_seleccionadas[i].id_evento==m.id_evento)
|
||||
ind=i;
|
||||
if(ind!=-1)
|
||||
this.magistrales_seleccionadas.splice(ind,1);
|
||||
else
|
||||
this.magistrales_seleccionadas.push(m);
|
||||
},
|
||||
elegir_mesa_lunes(m){
|
||||
if(this.mesa_elegida_lunes==null || this.mesa_elegida_lunes.id_evento!=m.id_evento)
|
||||
this.mesa_elegida_lunes=m;
|
||||
else
|
||||
this.mesa_elegida_lunes=null;
|
||||
},
|
||||
elegir_mesa_martes(m){
|
||||
if(this.mesa_elegida_martes==null || this.mesa_elegida_martes.id_evento!=m.id_evento)
|
||||
this.mesa_elegida_martes=m;
|
||||
else
|
||||
this.mesa_elegida_martes=null;
|
||||
},
|
||||
elegir_mesa_miercoles(m){
|
||||
if(this.mesa_elegida_miercoles==null || this.mesa_elegida_miercoles.id_evento!=m.id_evento)
|
||||
this.mesa_elegida_miercoles=m;
|
||||
else
|
||||
this.mesa_elegida_miercoles=null;
|
||||
},
|
||||
elegir_taller(taller)
|
||||
{
|
||||
if(this.taller_elegido== null || this.taller_elegido.id_evento!=taller.id_evento)
|
||||
this.taller_elegido=taller;
|
||||
else
|
||||
this.taller_elegido=null;
|
||||
|
||||
}
|
||||
}
|
||||
, async created(){
|
||||
/* eslint-disable no-console */
|
||||
this.datos_persona = window.localStorage.getItem('id_persona');
|
||||
await axios.get( `${config.api}/traer_asistente?id_persona=${this.datos_persona}`)
|
||||
.then(async res=>{
|
||||
/* eslint-disable no-console */
|
||||
let p=res.data.persona[0];
|
||||
this.constancia=res.data.constancia;
|
||||
this.comunidad=p.comunidad;
|
||||
this.nombre=p.nombre+" "+p.apellido_p+" "+p.apellido_m;
|
||||
this.correo=p.correo_electronico;
|
||||
console.log("respuesta: ",res);
|
||||
let m=res.data.mesa;
|
||||
/* eslint-disable no-console */
|
||||
console.log("mesa: ",m);
|
||||
for(let i=0; i<m.length; i++)
|
||||
{
|
||||
if(m[i].id_evento>=1 && m[i].id_evento<=3)
|
||||
this.mesa_elegida_lunes=m[i];
|
||||
if(m[i].id_evento>=4 && m[i].id_evento<=6)
|
||||
this.mesa_elegida_martes=m[i];
|
||||
if(m[i].id_evento>=7 && m[i].id_evento<=9)
|
||||
this.mesa_elegida_miercoles=m[i];
|
||||
|
||||
}
|
||||
if(res.data.taller.length!=0)
|
||||
this.taller_elegido=res.data.taller[0];
|
||||
|
||||
this.magistrales_seleccionadas=res.data.ponencia;
|
||||
|
||||
})
|
||||
|
||||
|
||||
axios.get(`${config.api}/traer_eventos`).then(async response=>{
|
||||
|
||||
let mesa=response.data.eventos.mesa
|
||||
for(let i=0; i<mesa.length; i++)
|
||||
{
|
||||
let f= new Date(mesa[i].fechas[0].fecha_inicio);
|
||||
let dia=f.getDate();
|
||||
if(dia==17)
|
||||
{
|
||||
this.mesa_lunes.push(mesa[i]);
|
||||
|
||||
}
|
||||
if(dia==18)
|
||||
this.mesa_martes.push(mesa[i]);
|
||||
if(dia==19)
|
||||
this.mesa_miercoles.push(mesa[i]);
|
||||
// this.day.push(f.getDate());
|
||||
}
|
||||
this.talleres=response.data.eventos.taller;
|
||||
this.talleres[0].horas=["16:00 - 17:00", "16:00 - 18:00", "16:00 - 17:00"];
|
||||
this.talleres[1].horas=["17:00 - 18:00", "16:00 - 18:00", "16:00 - 17:00"];
|
||||
this.magistrales=response.data.eventos.ponencia;
|
||||
this.magistrales[0].dia="Lunes 17 de Agosto";
|
||||
this.magistrales[1].dia="Lunes 18 de Agosto";
|
||||
this.magistrales[2].dia="Lunes 19 de Agosto";
|
||||
this.magistrales[3].dia="Lunes 19 de Agosto";
|
||||
this.magistrales[0].hora="10:00 - 12:00";
|
||||
this.magistrales[1].hora="10:00 - 11:00";
|
||||
this.magistrales[2].hora="09:00 - 10:00";
|
||||
this.magistrales[3].hora="10:45 - 12:00";
|
||||
this.magistrales[0].indice=0;
|
||||
this.magistrales[1].indice=1;
|
||||
this.magistrales[2].indice=2;
|
||||
this.magistrales[3].indice=3;
|
||||
|
||||
})
|
||||
|
||||
},
|
||||
beforeCreate () {
|
||||
if(window.localStorage.getItem('id_persona')==undefined)
|
||||
this.$router.push( `/login`);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
.size{
|
||||
font-size: 1rem;
|
||||
|
||||
}
|
||||
.check{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
.my-custom-scrollbar {
|
||||
position: relative;
|
||||
height: auto;
|
||||
overflow: auto;
|
||||
}
|
||||
.table-wrapper-scroll-y {
|
||||
display: block;
|
||||
}
|
||||
.button:hover {
|
||||
background-color: #bb8800;
|
||||
color: white;
|
||||
}
|
||||
.button_salir {
|
||||
background-color: rgb(26, 27, 29);; /* Green */
|
||||
border: none;
|
||||
color: white;
|
||||
height: 4.5rem;
|
||||
width: 15rem;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 1.5rem;
|
||||
border-radius: 1rem;
|
||||
-webkit-transition-duration: 0.4s; /* Safari */
|
||||
transition-duration: 0.4s;
|
||||
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
|
||||
margin-left: 4rem;
|
||||
margin-right: 2rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.button_salir:hover {
|
||||
background-color: rgb(170, 4, 4);
|
||||
color: white;
|
||||
}
|
||||
.button {
|
||||
background-color: rgb(26, 27, 29);; /* Green */
|
||||
border: none;
|
||||
color: white;
|
||||
height: 4.5rem;
|
||||
width: 15rem;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 1.5rem;
|
||||
border-radius: 1rem;
|
||||
-webkit-transition-duration: 0.4s; /* Safari */
|
||||
transition-duration: 0.4s;
|
||||
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
|
||||
margin-left: 2rem;
|
||||
margin-right: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
.abajo_t{
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.abajo{
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
.arriba{
|
||||
margin-top: 3rem;
|
||||
}
|
||||
.arriba_t{
|
||||
margin-top: 2rem;
|
||||
}
|
||||
.titulo{
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
.aling_left{
|
||||
text-align: left;
|
||||
}
|
||||
.color_negro{
|
||||
background-color: rgb(26, 27, 29);
|
||||
color: white;
|
||||
}
|
||||
.color_dorado{
|
||||
background-color: #bb8800;
|
||||
color: white;
|
||||
|
||||
}
|
||||
.elegido{
|
||||
background-color: #22E10F;
|
||||
}
|
||||
.blanco:hover{
|
||||
background-color: #4BF53A;
|
||||
}
|
||||
.gris:hover{
|
||||
background-color: #4BF53A;
|
||||
}
|
||||
.gris{
|
||||
background-color:rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
.transparente{
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@media screen and (max-width: 425px) {
|
||||
.my-custom-scrollbar {
|
||||
position: relative;
|
||||
height: 19rem;
|
||||
overflow: auto;
|
||||
}
|
||||
td{
|
||||
font-size: .7rem;
|
||||
}
|
||||
th{
|
||||
font-size: .8rem;
|
||||
}
|
||||
h1{
|
||||
font-size: 2rem;
|
||||
}
|
||||
h2{
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
h3{
|
||||
font-size: 1rem;
|
||||
}
|
||||
.button_salir {
|
||||
background-color: rgb(26, 27, 29);; /* Green */
|
||||
border: none;
|
||||
color: white;
|
||||
height: 3rem;
|
||||
width: 7rem;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 1rem;
|
||||
border-radius: 1rem;
|
||||
-webkit-transition-duration: 0.4s; /* Safari */
|
||||
transition-duration: 0.4s;
|
||||
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
|
||||
margin-left: 1rem;
|
||||
margin-right: 0rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.button {
|
||||
background-color: rgb(26, 27, 29);; /* Green */
|
||||
border: none;
|
||||
color: white;
|
||||
height: 3rem;
|
||||
width: 7rem;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 1rem;
|
||||
border-radius: 1rem;
|
||||
-webkit-transition-duration: 0.4s; /* Safari */
|
||||
transition-duration: 0.4s;
|
||||
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
|
||||
margin-left: 0rem;
|
||||
margin-right: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -35,6 +35,7 @@
|
||||
<script>
|
||||
import webMenu from '../estetica/menu.vue'
|
||||
import axios from 'axios'
|
||||
import config from '../config/config.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -45,7 +46,7 @@ export default {
|
||||
info: function() {
|
||||
axios
|
||||
.get(
|
||||
`https://venus.acatlan.unam.mx/coloquioeducacion/traer_persona?id_persona=${this.$route.params.id}`
|
||||
`${config.api}/traer_persona?id_persona=${this.$route.params.id}`
|
||||
)
|
||||
.then(res => {
|
||||
// eslint-disable-next-line
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
const config = {
|
||||
//api: "https://69cc8f75.ngrok.io"
|
||||
//api: "https://venus.acatlan.unam.mx/coloquioeducacion" //pruebas
|
||||
// api: "https://venus.acatlan.unam.mx/c_educacion_pro" //produccion
|
||||
api:"http://localhost:3000"
|
||||
}
|
||||
|
||||
export default config
|
||||
+16
-1
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<header class="Azul-puma py-3">
|
||||
<header class="container">
|
||||
<div class="row py-3">
|
||||
<div class="row anch">
|
||||
|
||||
<div href="https://www.unam.mx/" class="col d-none d-md-block sin_pad"> <img src="../assets/UNAM.png" alt="logo Unam"> </div>
|
||||
<div href="https://www.acatlan.unam.mx/" class="col d-flex justify-content-sm-center justify-content-lg-end"> <img src="../assets/Fes-aniversario.png" class="logo-fes" alt="Ediciones Acatlán"> </div>
|
||||
@@ -20,6 +20,10 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.anch{
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.logo-fes{
|
||||
height: 5rem;
|
||||
|
||||
@@ -31,6 +35,17 @@ export default {
|
||||
|
||||
|
||||
}
|
||||
@media screen and (max-width: 425px) {
|
||||
.anch{
|
||||
margin-top: .5rem;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
.logo-fes{
|
||||
margin-top: .7rem;
|
||||
height: 3rem;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.Azul-puma {
|
||||
background-color: rgb(26, 27, 29);
|
||||
|
||||
+3
-1
@@ -11,6 +11,7 @@ import Login from './components/Login.vue'
|
||||
import Aviso from './components/Aviso.vue'
|
||||
import User from './components/User.vue'
|
||||
import Recuperar from './components/Recuperar.vue'
|
||||
import RegistroAsistencia from './components/RegistroAsistencia'
|
||||
|
||||
export const routes = [
|
||||
{ path: '/', component: Inicio, name: 'inicio' },
|
||||
@@ -26,6 +27,7 @@ export const routes = [
|
||||
{ path: '/aviso', component: Aviso, name: 'aviso' },
|
||||
{ path: '/usuario/:id', component: User, name: 'user' },
|
||||
{ path: '/recuperar', component: Recuperar, name: 'recuperar' },
|
||||
{ path: '/registroAsistencia', component: RegistroAsistencia, name: 'registroAsistencia'}
|
||||
]
|
||||
|
||||
// const isAuthenticated = function() {
|
||||
@@ -43,4 +45,4 @@ export const routes = [
|
||||
// return next('/')
|
||||
// }
|
||||
// next()
|
||||
// })
|
||||
// })
|
||||
Reference in New Issue
Block a user