fix: corrige URL de giftcards
This commit is contained in:
@@ -152,13 +152,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap items-center gap-3">
|
<div class="flex flex-wrap items-center gap-3">
|
||||||
<span class="text-[15px] font-medium text-[#292524]">{{ formatCurrency(card.balance) }}</span>
|
<span class="text-[15px] font-medium text-[#292524]">{{ formatCurrency(card.balance) }}</span>
|
||||||
<span
|
<span class="inline-flex rounded-full px-2.5 py-1 text-xs font-semibold uppercase"
|
||||||
class="inline-flex rounded-full px-2.5 py-1 text-xs font-semibold uppercase"
|
|
||||||
:class="card.is_active ? 'bg-[rgba(167,229,211,0.62)] text-[#0c0a09]' : 'bg-[#f0efed] text-[#777169]'">
|
:class="card.is_active ? 'bg-[rgba(167,229,211,0.62)] text-[#0c0a09]' : 'bg-[#f0efed] text-[#777169]'">
|
||||||
{{ card.is_active ? 'Ativo' : 'Inativo' }}
|
{{ card.is_active ? 'Ativo' : 'Inativo' }}
|
||||||
</span>
|
</span>
|
||||||
<button type="button"
|
<button type="button" class="text-[15px] font-medium text-[#0c0a09] underline-offset-2 hover:underline"
|
||||||
class="text-[15px] font-medium text-[#0c0a09] underline-offset-2 hover:underline"
|
|
||||||
@click="preencherCodigo(card.code)">
|
@click="preencherCodigo(card.code)">
|
||||||
Usar código
|
Usar código
|
||||||
</button>
|
</button>
|
||||||
@@ -188,8 +186,7 @@ definePageMeta({
|
|||||||
middleware: 'auth'
|
middleware: 'auth'
|
||||||
})
|
})
|
||||||
|
|
||||||
const config = useRuntimeConfig()
|
const GIFT_CARD_API_BASE_URL = 'https://giftcardapipedro-production.up.railway.app/api'
|
||||||
const GIFT_CARD_API_BASE_URL = config.public.giftCardApiUrl
|
|
||||||
|
|
||||||
const { $toast } = useNuxtApp()
|
const { $toast } = useNuxtApp()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user