animación de carga en el ticekt
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
<div class="column is-one-third py-5">
|
||||
<figure class="containerImg">
|
||||
<b-image class="img" :src="urlTicket" alt="Imagen del ticket">
|
||||
<b-loading :is-full-page="isFullPage" v-model="isLoading">
|
||||
</b-loading>
|
||||
</b-image>
|
||||
<div class="overlay" @click="isImageModalActive = true">
|
||||
<b-icon
|
||||
@@ -83,21 +85,22 @@ export default {
|
||||
token: '',
|
||||
|
||||
isImageModalActive: false,
|
||||
isLoading: true,
|
||||
isFullPage: true,
|
||||
urlTicket: '',
|
||||
validado: null,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
traerTicket() {
|
||||
this.updateIsLoading(true)
|
||||
axios
|
||||
.get(`${process.env.api}/admin/ticket?folio=${this.$route.query.folio}`)
|
||||
.then((res) => {
|
||||
this.updateIsLoading(false)
|
||||
this.isLoading = false
|
||||
this.urlTicket = res.config.url
|
||||
})
|
||||
.catch((err) => {
|
||||
this.updateIsLoading(false)
|
||||
this.isLoading = false
|
||||
this.imprimirError(err.response.data)
|
||||
})
|
||||
},
|
||||
@@ -118,7 +121,6 @@ export default {
|
||||
this.imprimirMensaje(res.data.message)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
this.updateIsLoading(false)
|
||||
this.imprimirError(err.response.data)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user