85 lines
1.5 KiB
Vue
85 lines
1.5 KiB
Vue
<template>
|
|
<div :class="cn.m('success')">
|
|
<img
|
|
src="/success.svg"
|
|
alt="Success"
|
|
class="mb-16"
|
|
data-status-illustration
|
|
>
|
|
|
|
<h2 class="text-clr-green-500">
|
|
Payment success
|
|
</h2>
|
|
|
|
<div class="mt-16">
|
|
<UiCoin :code="invoice.currencyCode" />
|
|
|
|
<MoneyAmount
|
|
:class="cn.e('amount')"
|
|
:value="invoice.amount"
|
|
:currency="invoice.currencyCode"
|
|
/>
|
|
</div>
|
|
|
|
<InvoiceFormDetails :class="cn.e('details')" />
|
|
|
|
<UiButton
|
|
:class="cn.e('back-to-store')"
|
|
size="large"
|
|
:href="invoice.redirectUrl"
|
|
>
|
|
Back to store
|
|
</UiButton>
|
|
|
|
<UiButton
|
|
:class="cn.e('explorer')"
|
|
type="link"
|
|
color="secondary"
|
|
:href="explorerLink"
|
|
target="_blank"
|
|
>
|
|
Просмотреть в обозревателе блоков
|
|
</UiButton>
|
|
|
|
<InvoiceFormSeparator />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
const { invoice } = inject('public-invoice')
|
|
|
|
const cn = useClassname('invoice-form')
|
|
|
|
const explorerLink = computed(() => {
|
|
return `https://nile.tronscan.org/#/address/${invoice.value.walletAddress}`
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.invoice-form {
|
|
$self: &;
|
|
|
|
&--success {
|
|
#{$self}__amount {
|
|
@include h2('money-amount-value', true);
|
|
|
|
margin-left: 8px;
|
|
}
|
|
|
|
#{$self}__details {
|
|
margin-top: 32px;
|
|
}
|
|
|
|
#{$self}__back-to-store {
|
|
width: 100%;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
#{$self}__explorer {
|
|
width: 100%;
|
|
margin-top: 24px;
|
|
}
|
|
}
|
|
}
|
|
</style>
|