|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="step3">
|
|
<div class="step3">
|
|
|
- <q-linear-progress v-if="basket.loading"
|
|
|
|
|
|
|
+ <q-linear-progress v-if="basket.loading || invoice.loading"
|
|
|
indeterminate />
|
|
indeterminate />
|
|
|
<template v-if="!basket.loading">
|
|
<template v-if="!basket.loading">
|
|
|
<invoice-info v-if="!invoice.loading"
|
|
<invoice-info v-if="!invoice.loading"
|
|
@@ -107,6 +107,9 @@ export default {
|
|
|
goToShop () {
|
|
goToShop () {
|
|
|
this.$router.push({ name: 'Public.Shop' })
|
|
this.$router.push({ name: 'Public.Shop' })
|
|
|
},
|
|
},
|
|
|
|
|
+ goToMyOrders () {
|
|
|
|
|
+ this.$router.push({ name: 'UserPanel.MyOrders.List' })
|
|
|
|
|
+ },
|
|
|
onAccept () {
|
|
onAccept () {
|
|
|
this.payInvoice()
|
|
this.payInvoice()
|
|
|
},
|
|
},
|
|
@@ -123,9 +126,8 @@ export default {
|
|
|
payInvoiceByWallet () {
|
|
payInvoiceByWallet () {
|
|
|
this.invoice.loading = true
|
|
this.invoice.loading = true
|
|
|
APIGateway.invoice.pay(this.invoice.id)
|
|
APIGateway.invoice.pay(this.invoice.id)
|
|
|
- .then((message) => {
|
|
|
|
|
- this.payMessage = message
|
|
|
|
|
- this.goToShop()
|
|
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.goToMyOrders()
|
|
|
})
|
|
})
|
|
|
.finally(() => {
|
|
.finally(() => {
|
|
|
this.invoice.loading = false
|
|
this.invoice.loading = false
|