change condition of display banner
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user