From 7545b77a25ffffd9bc5a1340720481818a262ea3 Mon Sep 17 00:00:00 2001 From: safavimohadeseh78 Date: Sun, 21 Jun 2026 14:12:29 +0200 Subject: [PATCH] change condition of display banner --- src/layouts/mobile/MobileBottomNav.vue | 13 +++++++++---- src/views/base/home/index_old3.vue | 5 ++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/layouts/mobile/MobileBottomNav.vue b/src/layouts/mobile/MobileBottomNav.vue index 185ae47..098baa4 100644 --- a/src/layouts/mobile/MobileBottomNav.vue +++ b/src/layouts/mobile/MobileBottomNav.vue @@ -96,14 +96,14 @@
کیف پول
- +
-
تنظیمات
+
{{ userNavItem.label }}
@@ -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') ?? '' diff --git a/src/views/base/home/index_old3.vue b/src/views/base/home/index_old3.vue index de3f734..2c4ee99 100644 --- a/src/views/base/home/index_old3.vue +++ b/src/views/base/home/index_old3.vue @@ -295,7 +295,7 @@
خرید و فروش
-->
@@ -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(false)