changes of boursecu
This commit is contained in:
@@ -12,7 +12,7 @@ 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 } from '@/utils/config'
|
||||
import { getProjectBaleContactLink, isBazretalaProject, isBoursecuProject } from '@/utils/config'
|
||||
import { useDesktopBreakpoint } from '@/layouts/composables/useAppLayout'
|
||||
import {
|
||||
buildDepositSmsUrl,
|
||||
@@ -124,6 +124,9 @@ export function useWalletPage() {
|
||||
})
|
||||
|
||||
const disableButton = computed(() => {
|
||||
const minWithdrawAmount = isBoursecuProject() ? 200_000 : 1_000_000
|
||||
const minDepositAmount = 1_000_000
|
||||
|
||||
if (!loading.value) {
|
||||
if (walletStore?.walletInfo?.cash && !isDeposit.value) {
|
||||
if (walletCardItems.value.length > 0) {
|
||||
@@ -131,13 +134,13 @@ export function useWalletPage() {
|
||||
walletStore?.walletInfo?.cash <= 0
|
||||
|| walletStore?.walletInfo?.cash < parseInt(form.value?.value)
|
||||
|| isNaN(parseInt(form.value?.value))
|
||||
|| parseInt(form.value?.value) < 1000000
|
||||
|| parseInt(form.value?.value) < minWithdrawAmount
|
||||
)
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (isDeposit.value) {
|
||||
return isNaN(parseInt(form.value?.value)) || parseInt(form.value?.value) < 1000000
|
||||
return isNaN(parseInt(form.value?.value)) || parseInt(form.value?.value) < minDepositAmount
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user