Make boursecu branch boursecu-only and simplify app loading.
Remove multi-tenant branches and default views, show logo-only boot and splash screens, and polish boursecu transactions tab styling. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -55,9 +55,6 @@
|
||||
|
||||
<Transition mode="out-in" name="fade">
|
||||
<div v-if="!isDeposit" key="withdraw" class="dwallet-form__extras">
|
||||
<p v-if="!isBoursecu" class="dwallet-form__hint dwallet-form__hint--warn">
|
||||
حداقل مبلغ برداشتی 100 هزار تومان می باشد.
|
||||
</p>
|
||||
<p class="dwallet-form__balance-text">
|
||||
{{ formatCashWalletBalanceText(usePriceWithoutType(walletStore?.walletInfo?.cash ?? 0)) }}
|
||||
</p>
|
||||
@@ -81,7 +78,7 @@
|
||||
</a-form-item>
|
||||
</div>
|
||||
<div v-else key="deposit" class="dwallet-form__extras">
|
||||
<p v-if="!isBazretalaProject()" class="dwallet-form__hint dwallet-form__hint--warn">
|
||||
<p class="dwallet-form__hint dwallet-form__hint--warn">
|
||||
حداقل مبلغ واریزی 100 هزار تومان می باشد.
|
||||
</p>
|
||||
<div class="dwallet-quick-amounts">
|
||||
@@ -108,7 +105,7 @@
|
||||
<span v-else>{{ isDeposit ? 'واریز' : 'برداشت' }}</span>
|
||||
</BasicButton>
|
||||
|
||||
<BoursecuWithdrawGuide v-if="!isDeposit && isBoursecu" />
|
||||
<BoursecuWithdrawGuide v-if="!isDeposit" />
|
||||
</a-form>
|
||||
</section>
|
||||
|
||||
@@ -136,53 +133,34 @@
|
||||
|
||||
<template v-else>
|
||||
<div class="dwallet-side__header">
|
||||
<h3 class="dwallet-side__title">{{ isBoursecu ? 'حسابهای بانکی' : 'کارتهای بانکی' }}</h3>
|
||||
<h3 class="dwallet-side__title">حسابهای بانکی</h3>
|
||||
<button
|
||||
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"
|
||||
>
|
||||
<BasicIcon icon="vuesax-linear:add" size="16" />
|
||||
<span>افزودن کارت</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<p v-if="isBoursecu && cardItems.length > 0" class="dwallet-side__subtitle">واریز به</p>
|
||||
<p v-if="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>
|
||||
<button type="button" class="dwallet-side__add-btn dwallet-side__add-btn--primary" @click="showAddCard = true">
|
||||
{{ isBoursecu ? 'افزودن شبا' : 'افزودن کارت جدید' }}
|
||||
افزودن شبا
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<BoursecuBankAccountPicker
|
||||
v-else-if="isBoursecu"
|
||||
v-else
|
||||
v-model:id="form.card_id"
|
||||
variant="desktop"
|
||||
:items="cardItems"
|
||||
@add-account="showAddCard = true"
|
||||
@card-deleted="getCards"
|
||||
/>
|
||||
|
||||
<div v-else-if="cardItems.length > 0" class="dwallet-cards">
|
||||
<CardSlider
|
||||
v-model:id="form.card_id"
|
||||
:items="cardItems"
|
||||
class="dwallet-cards__slider"
|
||||
@cardDeleted="getCards"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</section>
|
||||
</div>
|
||||
@@ -199,15 +177,11 @@ import ListAnim from '@/components/ListAnim.vue'
|
||||
import TransactionSkeleton from '@/components/TransactionSkeleton.vue'
|
||||
import { useConfigStore } from '@/store/configStore'
|
||||
import { required } from '@/utils/inputRules'
|
||||
import CardSlider from '../components/UISlider/index.vue'
|
||||
import BoursecuBankAccountPicker from '../components/BoursecuBankAccountPicker.vue'
|
||||
import BoursecuWithdrawGuide from '../components/BoursecuWithdrawGuide.vue'
|
||||
import Item from '../components/Item.vue'
|
||||
import { isBoursecuProject } from '@/utils/config'
|
||||
import { useWalletPageContext } from '../composables/useWalletPage'
|
||||
|
||||
const isBoursecu = isBoursecuProject()
|
||||
|
||||
const {
|
||||
isDeposit,
|
||||
walletStore,
|
||||
@@ -220,7 +194,6 @@ const {
|
||||
loadingMore,
|
||||
desktopDepositScrollEl,
|
||||
depositQuickAmounts,
|
||||
isBazretalaProject,
|
||||
usePriceWithoutType,
|
||||
formatCashWalletBalanceText,
|
||||
setIsDeposit,
|
||||
|
||||
Reference in New Issue
Block a user