fixed card display &...

This commit is contained in:
2026-07-01 12:22:43 +02:00
parent bbec5b802d
commit e8c394d71a
7 changed files with 256 additions and 64 deletions
@@ -131,7 +131,15 @@
<div class="dwallet-side__header">
<h3 class="dwallet-side__title">{{ isBoursecu ? 'حساب‌های بانکی' : 'کارت‌های بانکی' }}</h3>
<button
v-if="!isBoursecu"
v-if="isBoursecu"
type="button"
class="dwallet-side__add-link"
@click="showAddCard = true"
>
+ افزودن شبا
</button>
<button
v-else
type="button"
class="dwallet-side__add-btn"
@click="showAddCard = true"
@@ -141,6 +149,8 @@
</button>
</div>
<p v-if="isBoursecu && cardItems.length > 0" class="dwallet-side__subtitle">واریز به</p>
<div v-if="!loading && cardItems.length === 0" class="dwallet-side__empty dwallet-side__empty--cards">
<BasicIcon icon="vuesax-linear:card" size="32" />
<p>هیچ کارتی یافت نشد</p>
@@ -152,6 +162,7 @@
<BoursecuBankAccountPicker
v-else-if="isBoursecu"
v-model:id="form.card_id"
variant="desktop"
:items="cardItems"
@add-account="showAddCard = true"
/>
@@ -210,6 +210,27 @@
margin: 0;
}
&__subtitle {
margin: 0;
padding: 0 24px 8px;
font-size: 13px;
font-weight: 600;
color: #6b7280;
text-align: right;
}
&__add-link {
appearance: none;
border: none;
background: transparent;
padding: 0;
font-size: 14px;
font-weight: 700;
color: #2563eb;
cursor: pointer;
font-family: inherit;
}
&__scroll {
flex: 1;
overflow-y: auto;