diff --git a/components.d.ts b/components.d.ts index 751269f..f316cdf 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,6 +8,7 @@ export {} declare module 'vue' { export interface GlobalComponents { AButton: typeof import('ant-design-vue/es')['Button'] + ACheckbox: typeof import('ant-design-vue/es')['Checkbox'] ADivider: typeof import('ant-design-vue/es')['Divider'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] @@ -15,17 +16,14 @@ declare module 'vue' { AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] AModal: typeof import('ant-design-vue/es')['Modal'] AppCreditLink: typeof import('./src/components/AppCreditLink.vue')['default'] - ARadio: typeof import('ant-design-vue/es')['Radio'] ARadioButton: typeof import('ant-design-vue/es')['RadioButton'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ASelect: typeof import('ant-design-vue/es')['Select'] ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] ASlider: typeof import('ant-design-vue/es')['Slider'] ASpin: typeof import('ant-design-vue/es')['Spin'] - ASwitch: typeof import('ant-design-vue/es')['Switch'] ATag: typeof import('ant-design-vue/es')['Tag'] ATextarea: typeof import('ant-design-vue/es')['Textarea'] - ATooltip: typeof import('ant-design-vue/es')['Tooltip'] BaseDatePicker: typeof import('./src/components/BasicPacks/BaseDatePicker/src/BaseDatePicker.vue')['default'] Basic: typeof import('./src/components/BasicPacks/BaseDatePicker/src/datePick/demo/basic.vue')['default'] BasicActionSheet: typeof import('./src/components/BasicPacks/BasicActionSheet.vue')['default'] @@ -70,6 +68,5 @@ declare module 'vue' { TransactionSkeleton: typeof import('./src/components/TransactionSkeleton.vue')['default'] VanActionSheet: typeof import('vant/es')['ActionSheet'] VanDialog: typeof import('vant/es')['Dialog'] - VanField: typeof import('vant/es')['Field'] } } diff --git a/src/utils/config.ts b/src/utils/config.ts index 44c52e5..76085bf 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -36,6 +36,22 @@ export function isSoroushgoldProject() { return getConfigApp('name') === 'soroushgold' } +export function isNiazitalaProject() { + return getConfigApp('name') === 'niazitala' +} + +const DEFAULT_WALLET_DEPOSIT_QUICK_AMOUNTS_RIAL = [10_000_000, 50_000_000, 100_000_000] as const + +/** niazitala: 5 / 10 / 15 میلیون تومان — ذخیره و نمایش به ریال */ +const NIAZITALA_WALLET_DEPOSIT_QUICK_AMOUNTS_RIAL = [50_000_000, 100_000_000, 150_000_000] as const + +export function getWalletDepositQuickAmountsRial(): readonly number[] { + if (isNiazitalaProject()) { + return NIAZITALA_WALLET_DEPOSIT_QUICK_AMOUNTS_RIAL + } + return DEFAULT_WALLET_DEPOSIT_QUICK_AMOUNTS_RIAL +} + export function getBoursecuTransactionsIcon() { return boursecuTransactionsIcon } diff --git a/src/views/base/home/components/PortfolioOverview.vue b/src/views/base/home/components/PortfolioOverview.vue index 9b559eb..63189b2 100644 --- a/src/views/base/home/components/PortfolioOverview.vue +++ b/src/views/base/home/components/PortfolioOverview.vue @@ -131,8 +131,8 @@ const rootClass = computed(() => [ .portfolio-overview__total { margin: 4px 0 0; - font-size: 1.65rem; - font-weight: 800; + font-size: 2rem; + // font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; } diff --git a/src/views/base/wallet/composables/useWalletPage.ts b/src/views/base/wallet/composables/useWalletPage.ts index 0f79735..ff91a8b 100644 --- a/src/views/base/wallet/composables/useWalletPage.ts +++ b/src/views/base/wallet/composables/useWalletPage.ts @@ -12,7 +12,12 @@ import { message } from 'ant-design-vue' import type { Card } from '@/models/wallet' import { useUserStore } from '@/store/userStore' import { useConfigStore } from '@/store/configStore' -import { getProjectBaleContactLink, isBazretalaProject, isBoursecuProject } from '@/utils/config' +import { + getProjectBaleContactLink, + getWalletDepositQuickAmountsRial, + isBazretalaProject, + isBoursecuProject, +} from '@/utils/config' import { useDesktopBreakpoint } from '@/layouts/composables/useAppLayout' import { buildDepositSmsUrl, @@ -54,6 +59,7 @@ export interface WalletPageContext { supportMessengerText: ReturnType> depositGuideSupportLink: ReturnType> depositSmsSupportLink: ReturnType> + depositQuickAmounts: ReturnType> isBazretalaProject: typeof isBazretalaProject usePriceWithoutType: typeof usePriceWithoutType formatCashWalletBalanceText: typeof formatCashWalletBalanceText @@ -92,6 +98,8 @@ export function useWalletPage() { () => supportMessengerSettings.value.messengerText || DEFAULT_SUPPORT_MESSENGER_TEXT, ) + const depositQuickAmounts = computed(() => getWalletDepositQuickAmountsRial()) + const depositGuideSupportLink = computed(() => { if (config.config?.name === 'garoosi' || isBazretalaProject()) { return getProjectBaleContactLink() @@ -288,6 +296,7 @@ export function useWalletPage() { supportMessengerText, depositGuideSupportLink, depositSmsSupportLink, + depositQuickAmounts, isBazretalaProject, usePriceWithoutType, formatCashWalletBalanceText, diff --git a/src/views/base/wallet/desktop/DesktopWalletView.vue b/src/views/base/wallet/desktop/DesktopWalletView.vue index bb6f13a..f3e101a 100644 --- a/src/views/base/wallet/desktop/DesktopWalletView.vue +++ b/src/views/base/wallet/desktop/DesktopWalletView.vue @@ -78,14 +78,14 @@ حداقل مبلغ واریزی 100 هزار تومان می باشد.

- - -
@@ -212,6 +212,7 @@ const { loading, loadingMore, desktopDepositScrollEl, + depositQuickAmounts, isBazretalaProject, usePriceWithoutType, formatCashWalletBalanceText, diff --git a/src/views/base/wallet/mobile/MobileWalletView.vue b/src/views/base/wallet/mobile/MobileWalletView.vue index 8773781..f93a358 100644 --- a/src/views/base/wallet/mobile/MobileWalletView.vue +++ b/src/views/base/wallet/mobile/MobileWalletView.vue @@ -82,14 +82,13 @@ حداقل مبلغ واریزی 100 هزار تومان می باشد.
- - {{ usePriceWithoutType(10000000) }} - - - {{ usePriceWithoutType(50000000) }} - - - {{ usePriceWithoutType(100000000) }} + + {{ usePriceWithoutType(amount) }}
@@ -197,6 +196,7 @@ const { loading, loadingMore, mobileDepositScrollEl, + depositQuickAmounts, isBazretalaProject, usePriceWithoutType, formatCashWalletBalanceText,