changes of niazi
This commit is contained in:
Vendored
+1
-4
@@ -8,6 +8,7 @@ export {}
|
|||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
AButton: typeof import('ant-design-vue/es')['Button']
|
AButton: typeof import('ant-design-vue/es')['Button']
|
||||||
|
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
|
||||||
ADivider: typeof import('ant-design-vue/es')['Divider']
|
ADivider: typeof import('ant-design-vue/es')['Divider']
|
||||||
AForm: typeof import('ant-design-vue/es')['Form']
|
AForm: typeof import('ant-design-vue/es')['Form']
|
||||||
AFormItem: typeof import('ant-design-vue/es')['FormItem']
|
AFormItem: typeof import('ant-design-vue/es')['FormItem']
|
||||||
@@ -15,17 +16,14 @@ declare module 'vue' {
|
|||||||
AInputPassword: typeof import('ant-design-vue/es')['InputPassword']
|
AInputPassword: typeof import('ant-design-vue/es')['InputPassword']
|
||||||
AModal: typeof import('ant-design-vue/es')['Modal']
|
AModal: typeof import('ant-design-vue/es')['Modal']
|
||||||
AppCreditLink: typeof import('./src/components/AppCreditLink.vue')['default']
|
AppCreditLink: typeof import('./src/components/AppCreditLink.vue')['default']
|
||||||
ARadio: typeof import('ant-design-vue/es')['Radio']
|
|
||||||
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
|
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
|
||||||
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
||||||
ASelect: typeof import('ant-design-vue/es')['Select']
|
ASelect: typeof import('ant-design-vue/es')['Select']
|
||||||
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
||||||
ASlider: typeof import('ant-design-vue/es')['Slider']
|
ASlider: typeof import('ant-design-vue/es')['Slider']
|
||||||
ASpin: typeof import('ant-design-vue/es')['Spin']
|
ASpin: typeof import('ant-design-vue/es')['Spin']
|
||||||
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
|
||||||
ATag: typeof import('ant-design-vue/es')['Tag']
|
ATag: typeof import('ant-design-vue/es')['Tag']
|
||||||
ATextarea: typeof import('ant-design-vue/es')['Textarea']
|
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']
|
BaseDatePicker: typeof import('./src/components/BasicPacks/BaseDatePicker/src/BaseDatePicker.vue')['default']
|
||||||
Basic: typeof import('./src/components/BasicPacks/BaseDatePicker/src/datePick/demo/basic.vue')['default']
|
Basic: typeof import('./src/components/BasicPacks/BaseDatePicker/src/datePick/demo/basic.vue')['default']
|
||||||
BasicActionSheet: typeof import('./src/components/BasicPacks/BasicActionSheet.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']
|
TransactionSkeleton: typeof import('./src/components/TransactionSkeleton.vue')['default']
|
||||||
VanActionSheet: typeof import('vant/es')['ActionSheet']
|
VanActionSheet: typeof import('vant/es')['ActionSheet']
|
||||||
VanDialog: typeof import('vant/es')['Dialog']
|
VanDialog: typeof import('vant/es')['Dialog']
|
||||||
VanField: typeof import('vant/es')['Field']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,22 @@ export function isSoroushgoldProject() {
|
|||||||
return getConfigApp('name') === 'soroushgold'
|
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() {
|
export function getBoursecuTransactionsIcon() {
|
||||||
return boursecuTransactionsIcon
|
return boursecuTransactionsIcon
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,8 +131,8 @@ const rootClass = computed(() => [
|
|||||||
|
|
||||||
.portfolio-overview__total {
|
.portfolio-overview__total {
|
||||||
margin: 4px 0 0;
|
margin: 4px 0 0;
|
||||||
font-size: 1.65rem;
|
font-size: 2rem;
|
||||||
font-weight: 800;
|
// font-weight: 800;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,12 @@ import { message } from 'ant-design-vue'
|
|||||||
import type { Card } from '@/models/wallet'
|
import type { Card } from '@/models/wallet'
|
||||||
import { useUserStore } from '@/store/userStore'
|
import { useUserStore } from '@/store/userStore'
|
||||||
import { useConfigStore } from '@/store/configStore'
|
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 { useDesktopBreakpoint } from '@/layouts/composables/useAppLayout'
|
||||||
import {
|
import {
|
||||||
buildDepositSmsUrl,
|
buildDepositSmsUrl,
|
||||||
@@ -54,6 +59,7 @@ export interface WalletPageContext {
|
|||||||
supportMessengerText: ReturnType<typeof computed<string>>
|
supportMessengerText: ReturnType<typeof computed<string>>
|
||||||
depositGuideSupportLink: ReturnType<typeof computed<string>>
|
depositGuideSupportLink: ReturnType<typeof computed<string>>
|
||||||
depositSmsSupportLink: ReturnType<typeof computed<string>>
|
depositSmsSupportLink: ReturnType<typeof computed<string>>
|
||||||
|
depositQuickAmounts: ReturnType<typeof computed<readonly number[]>>
|
||||||
isBazretalaProject: typeof isBazretalaProject
|
isBazretalaProject: typeof isBazretalaProject
|
||||||
usePriceWithoutType: typeof usePriceWithoutType
|
usePriceWithoutType: typeof usePriceWithoutType
|
||||||
formatCashWalletBalanceText: typeof formatCashWalletBalanceText
|
formatCashWalletBalanceText: typeof formatCashWalletBalanceText
|
||||||
@@ -92,6 +98,8 @@ export function useWalletPage() {
|
|||||||
() => supportMessengerSettings.value.messengerText || DEFAULT_SUPPORT_MESSENGER_TEXT,
|
() => supportMessengerSettings.value.messengerText || DEFAULT_SUPPORT_MESSENGER_TEXT,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const depositQuickAmounts = computed(() => getWalletDepositQuickAmountsRial())
|
||||||
|
|
||||||
const depositGuideSupportLink = computed(() => {
|
const depositGuideSupportLink = computed(() => {
|
||||||
if (config.config?.name === 'garoosi' || isBazretalaProject()) {
|
if (config.config?.name === 'garoosi' || isBazretalaProject()) {
|
||||||
return getProjectBaleContactLink()
|
return getProjectBaleContactLink()
|
||||||
@@ -288,6 +296,7 @@ export function useWalletPage() {
|
|||||||
supportMessengerText,
|
supportMessengerText,
|
||||||
depositGuideSupportLink,
|
depositGuideSupportLink,
|
||||||
depositSmsSupportLink,
|
depositSmsSupportLink,
|
||||||
|
depositQuickAmounts,
|
||||||
isBazretalaProject,
|
isBazretalaProject,
|
||||||
usePriceWithoutType,
|
usePriceWithoutType,
|
||||||
formatCashWalletBalanceText,
|
formatCashWalletBalanceText,
|
||||||
|
|||||||
@@ -78,14 +78,14 @@
|
|||||||
حداقل مبلغ واریزی 100 هزار تومان می باشد.
|
حداقل مبلغ واریزی 100 هزار تومان می باشد.
|
||||||
</p>
|
</p>
|
||||||
<div class="dwallet-quick-amounts">
|
<div class="dwallet-quick-amounts">
|
||||||
<button type="button" class="dwallet-quick-amounts__btn" @click="form.value = 10000000">
|
<button
|
||||||
{{ usePriceWithoutType(10000000) }}
|
v-for="amount in depositQuickAmounts"
|
||||||
</button>
|
:key="amount"
|
||||||
<button type="button" class="dwallet-quick-amounts__btn" @click="form.value = 50000000">
|
type="button"
|
||||||
{{ usePriceWithoutType(50000000) }}
|
class="dwallet-quick-amounts__btn"
|
||||||
</button>
|
@click="form.value = amount"
|
||||||
<button type="button" class="dwallet-quick-amounts__btn" @click="form.value = 100000000">
|
>
|
||||||
{{ usePriceWithoutType(100000000) }}
|
{{ usePriceWithoutType(amount) }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -212,6 +212,7 @@ const {
|
|||||||
loading,
|
loading,
|
||||||
loadingMore,
|
loadingMore,
|
||||||
desktopDepositScrollEl,
|
desktopDepositScrollEl,
|
||||||
|
depositQuickAmounts,
|
||||||
isBazretalaProject,
|
isBazretalaProject,
|
||||||
usePriceWithoutType,
|
usePriceWithoutType,
|
||||||
formatCashWalletBalanceText,
|
formatCashWalletBalanceText,
|
||||||
|
|||||||
@@ -82,14 +82,13 @@
|
|||||||
حداقل مبلغ واریزی 100 هزار تومان می باشد.
|
حداقل مبلغ واریزی 100 هزار تومان می باشد.
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<BasicButton class="w-full font-bold !px-1" @click="form.value = 10000000">
|
<BasicButton
|
||||||
{{ usePriceWithoutType(10000000) }}
|
v-for="amount in depositQuickAmounts"
|
||||||
</BasicButton>
|
:key="amount"
|
||||||
<BasicButton class="w-full font-bold !px-1" @click="form.value = 50000000">
|
class="w-full font-bold !px-1"
|
||||||
{{ usePriceWithoutType(50000000) }}
|
@click="form.value = amount"
|
||||||
</BasicButton>
|
>
|
||||||
<BasicButton class="w-full font-bold !px-1" @click="form.value = 100000000">
|
{{ usePriceWithoutType(amount) }}
|
||||||
{{ usePriceWithoutType(100000000) }}
|
|
||||||
</BasicButton>
|
</BasicButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -197,6 +196,7 @@ const {
|
|||||||
loading,
|
loading,
|
||||||
loadingMore,
|
loadingMore,
|
||||||
mobileDepositScrollEl,
|
mobileDepositScrollEl,
|
||||||
|
depositQuickAmounts,
|
||||||
isBazretalaProject,
|
isBazretalaProject,
|
||||||
usePriceWithoutType,
|
usePriceWithoutType,
|
||||||
formatCashWalletBalanceText,
|
formatCashWalletBalanceText,
|
||||||
|
|||||||
Reference in New Issue
Block a user