Fix profile route structure
This commit is contained in:
@@ -59,10 +59,14 @@ const defaultDeliveryAddress = computed(() => deliveryAddresses.value.find((item
|
|||||||
<h1 class="text-3xl font-extrabold text-[#0f2f20]">Профиль</h1>
|
<h1 class="text-3xl font-extrabold text-[#0f2f20]">Профиль</h1>
|
||||||
|
|
||||||
<div class="grid gap-4 md:grid-cols-3">
|
<div class="grid gap-4 md:grid-cols-3">
|
||||||
<NuxtLink to="/profile/counterparty" class="block rounded-3xl bg-white p-5 transition hover:shadow-md">
|
<NuxtLink
|
||||||
|
to="/profile/counterparty"
|
||||||
|
class="block rounded-3xl p-5 transition hover:shadow-md"
|
||||||
|
:class="profileIsComplete ? 'bg-white' : 'bg-[#fff8e6]'"
|
||||||
|
>
|
||||||
<div class="mb-2 flex items-start justify-between gap-2">
|
<div class="mb-2 flex items-start justify-between gap-2">
|
||||||
<p class="text-lg font-bold text-[#123824]">Карточка контрагента</p>
|
<p class="text-lg font-bold text-[#123824]">Карточка контрагента</p>
|
||||||
<span v-if="!profileIsComplete" class="badge bg-[#fff3db] text-[#8f5b00]">Attention</span>
|
<span v-if="!profileIsComplete" class="text-[#b37a00]" aria-hidden="true">⚠</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-sm text-[#355947]">
|
<p class="text-sm text-[#355947]">
|
||||||
{{
|
{{
|
||||||
@@ -76,7 +80,6 @@ const defaultDeliveryAddress = computed(() => deliveryAddresses.value.find((item
|
|||||||
<NuxtLink to="/profile/notifications" class="block rounded-3xl bg-white p-5 transition hover:shadow-md">
|
<NuxtLink to="/profile/notifications" class="block rounded-3xl bg-white p-5 transition hover:shadow-md">
|
||||||
<div class="mb-2 flex items-center justify-between gap-2">
|
<div class="mb-2 flex items-center justify-between gap-2">
|
||||||
<p class="text-lg font-bold text-[#123824]">Уведомления</p>
|
<p class="text-lg font-bold text-[#123824]">Уведомления</p>
|
||||||
<span v-if="connectedMessengerCount < 2" class="badge bg-[#fff3db] text-[#8f5b00]">Attention</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-2 flex items-center justify-end gap-2">
|
<div class="mb-2 flex items-center justify-end gap-2">
|
||||||
<span
|
<span
|
||||||
@@ -96,10 +99,7 @@ const defaultDeliveryAddress = computed(() => deliveryAddresses.value.find((item
|
|||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
||||||
<NuxtLink to="/profile/addresses" class="block rounded-3xl bg-white p-5 transition hover:shadow-md">
|
<NuxtLink to="/profile/addresses" class="block rounded-3xl bg-white p-5 transition hover:shadow-md">
|
||||||
<div class="mb-2 flex items-start justify-between gap-2">
|
<p class="mb-2 text-lg font-bold text-[#123824]">Адреса доставки</p>
|
||||||
<p class="text-lg font-bold text-[#123824]">Адреса доставки</p>
|
|
||||||
<span v-if="!defaultDeliveryAddress" class="badge bg-[#fff3db] text-[#8f5b00]">Attention</span>
|
|
||||||
</div>
|
|
||||||
<p class="text-sm text-[#355947]">
|
<p class="text-sm text-[#355947]">
|
||||||
{{
|
{{
|
||||||
defaultDeliveryAddress
|
defaultDeliveryAddress
|
||||||
Reference in New Issue
Block a user