@@ -36,9 +22,48 @@
-
Folio: {{ $route.query.folio }}
-
Cantidad: {{ $route.query.monto }}
-
Fecha del ticket: {{ fecha($route.query.fecha) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
import axios from 'axios'
-import moment from 'moment'
export default {
props: {
@@ -84,10 +108,16 @@ export default {
return {
token: '',
- isImageModalActive: false,
+ switchFolio: true,
+ switchMonto: true,
+ switchFecha: true,
+
+ fechaTicket: new Date(this.$route.query.fecha),
+
isLoading: true,
isFullPage: true,
urlTicket: '',
+
validado: null,
}
},
@@ -128,8 +158,18 @@ export default {
this.$router.go(-1)
})
},
- fecha(fecha) {
- return moment(fecha).format('L')
+ habilitar(tipo) {
+ tipo == 'folio' && this.switchFolio == true
+ ? (this.switchFolio = false)
+ : (this.switchFolio = true)
+
+ tipo == 'monto' && this.switchMonto == true
+ ? (this.switchMonto = false)
+ : (this.switchMonto = true)
+
+ tipo == 'fecha' && this.switchFecha == true
+ ? (this.switchFecha = false)
+ : (this.switchFecha = true)
},
regresar() {
this.$router.go(-1)
@@ -150,37 +190,6 @@ export default {
padding-bottom: 470px;
}
-.overlay {
- position: absolute;
- top: 4%;
- bottom: 0;
- left: 0;
- right: 40%;
- height: 470px;
- width: 350px;
- opacity: 0;
- transition: 0.5s ease;
- background-color: white;
-}
-
-/* When you mouse over the container, fade in the overlay icon*/
-.containerImg:hover .overlay {
- opacity: 0.3;
-}
-
-/* The icon inside the overlay is positioned in the middle vertically and horizontally */
-.icon {
- color: black;
- font-size: 100px;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- -ms-transform: translate(-50%, -50%);
- text-align: center;
- z-index: 2;
-}
-
.zoom {
transition: transform 0.2s;
}