change condition of display banner
This commit is contained in:
@@ -96,14 +96,14 @@
|
|||||||
<div class="text-xs mt-1 font-bold">کیف پول</div>
|
<div class="text-xs mt-1 font-bold">کیف پول</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
:class="navItemClass('user')"
|
:class="navItemClass(userNavItem.routeName)"
|
||||||
class="tab"
|
class="tab"
|
||||||
@click="$emit('navigate', 'user')"
|
@click="$emit('navigate', userNavItem.routeName)"
|
||||||
>
|
>
|
||||||
<div class="tab__icon">
|
<div class="tab__icon">
|
||||||
<Icon icon="vuesax-linear:setting-2" size="24" />
|
<Icon :icon="userNavItem.icon" size="24" />
|
||||||
</div>
|
</div>
|
||||||
<div class="text-xs mt-1 font-bold">تنظیمات</div>
|
<div class="text-xs mt-1 font-bold">{{ userNavItem.label }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -129,6 +129,11 @@ defineEmits<{
|
|||||||
}>()
|
}>()
|
||||||
|
|
||||||
const projectName = getConfigApp('name')
|
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 boursecuBuySellIcon = getBoursecuActionIconSrc('buySell') ?? ''
|
||||||
const boursecuTransactionsIcon = getBoursecuActionIconSrc('transactions') ?? ''
|
const boursecuTransactionsIcon = getBoursecuActionIconSrc('transactions') ?? ''
|
||||||
const boursecuWalletIcon = getBoursecuActionIconSrc('wallet') ?? ''
|
const boursecuWalletIcon = getBoursecuActionIconSrc('wallet') ?? ''
|
||||||
|
|||||||
@@ -295,7 +295,7 @@
|
|||||||
<div>خرید و فروش</div>
|
<div>خرید و فروش</div>
|
||||||
</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"
|
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]">
|
<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 {useFundUserStore} from '@/store/fundStore'
|
||||||
import {message, Modal} from "ant-design-vue";
|
import {message, Modal} from "ant-design-vue";
|
||||||
import {useConfigStore} from "@/store/configStore";
|
import {useConfigStore} from "@/store/configStore";
|
||||||
|
import {useSettingsStore} from '@/store/settingsStore'
|
||||||
import {Swiper, SwiperSlide} from 'swiper/vue'
|
import {Swiper, SwiperSlide} from 'swiper/vue'
|
||||||
import {Autoplay, Pagination} from 'swiper/modules'
|
import {Autoplay, Pagination} from 'swiper/modules'
|
||||||
import 'swiper/swiper-bundle.css'
|
import 'swiper/swiper-bundle.css'
|
||||||
@@ -630,6 +631,8 @@ import BasicButton from "@/components/BasicPacks/BasicButton.vue";
|
|||||||
|
|
||||||
const bannerSwiperModules = [Autoplay, Pagination]
|
const bannerSwiperModules = [Autoplay, Pagination]
|
||||||
const nameProject = useConfigStore().config.name
|
const nameProject = useConfigStore().config.name
|
||||||
|
const settingsStore = useSettingsStore()
|
||||||
|
const bannerEnabled = computed(() => settingsStore.getSettingByKey('banner_enabled') === 'true')
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const walletStore = useWalletStore()
|
const walletStore = useWalletStore()
|
||||||
const wholeBalanceVisible = ref<boolean>(false)
|
const wholeBalanceVisible = ref<boolean>(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user