change condition of display banner

This commit is contained in:
2026-06-21 14:12:29 +02:00
parent ca63c13aa9
commit 7545b77a25
2 changed files with 13 additions and 5 deletions
+9 -4
View File
@@ -96,14 +96,14 @@
<div class="text-xs mt-1 font-bold">کیف پول</div>
</div>
<div
:class="navItemClass('user')"
:class="navItemClass(userNavItem.routeName)"
class="tab"
@click="$emit('navigate', 'user')"
@click="$emit('navigate', userNavItem.routeName)"
>
<div class="tab__icon">
<Icon icon="vuesax-linear:setting-2" size="24" />
<Icon :icon="userNavItem.icon" size="24" />
</div>
<div class="text-xs mt-1 font-bold">تنظیمات</div>
<div class="text-xs mt-1 font-bold">{{ userNavItem.label }}</div>
</div>
</div>
@@ -129,6 +129,11 @@ defineEmits<{
}>()
const projectName = getConfigApp('name')
const userNavItem = computed(() =>
projectName === 'abshodehrahimi'
? { routeName: 'notifyTrigger', label: 'هشدار قیمت', icon: 'vuesax-linear:bill' }
: { routeName: 'user', label: 'تنظیمات', icon: 'vuesax-linear:setting-2' },
)
const boursecuBuySellIcon = getBoursecuActionIconSrc('buySell') ?? ''
const boursecuTransactionsIcon = getBoursecuActionIconSrc('transactions') ?? ''
const boursecuWalletIcon = getBoursecuActionIconSrc('wallet') ?? ''
+4 -1
View File
@@ -295,7 +295,7 @@
<div>خرید و فروش</div>
</div>-->
<div
v-if="config.config.name === 'garoosi' && banners?.length > 0"
v-if="bannerEnabled && banners?.length > 0"
class="w-full relative mt-2 flex flex-col justify-center home_appear_fade_in overflow-hidden rounded-lg"
>
<div class="w-full aspect-[2.8/1] min-h-[10rem] max-h-[14rem]">
@@ -618,6 +618,7 @@ import type {TableOutput} from '@/models/table'
import {useFundUserStore} from '@/store/fundStore'
import {message, Modal} from "ant-design-vue";
import {useConfigStore} from "@/store/configStore";
import {useSettingsStore} from '@/store/settingsStore'
import {Swiper, SwiperSlide} from 'swiper/vue'
import {Autoplay, Pagination} from 'swiper/modules'
import 'swiper/swiper-bundle.css'
@@ -630,6 +631,8 @@ import BasicButton from "@/components/BasicPacks/BasicButton.vue";
const bannerSwiperModules = [Autoplay, Pagination]
const nameProject = useConfigStore().config.name
const settingsStore = useSettingsStore()
const bannerEnabled = computed(() => settingsStore.getSettingByKey('banner_enabled') === 'true')
const userStore = useUserStore()
const walletStore = useWalletStore()
const wholeBalanceVisible = ref<boolean>(false)