change link of support button
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<div :class="variant === 'desktop' ? 'dpage-support' : 'wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white'">
|
||||
<a class="w-full" :href="supportHref">
|
||||
<a
|
||||
class="w-full"
|
||||
:href="supportHref"
|
||||
:target="opensSupportInNewTab ? '_blank' : undefined"
|
||||
:rel="opensSupportInNewTab ? 'noopener noreferrer' : undefined"
|
||||
>
|
||||
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||
</a>
|
||||
<a :href="baleHref" target="_blank" rel="noopener noreferrer">
|
||||
@@ -12,8 +17,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue'
|
||||
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
||||
import { useConfigStore } from '@/store/configStore'
|
||||
import { getProjectBaleLink, getProjectSupportPhoneLink } from '@/utils/config'
|
||||
import { getProjectBaleContactLink, getProjectSupportContactLink } from '@/utils/config'
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
@@ -22,17 +26,7 @@ withDefaults(
|
||||
{ variant: 'mobile' },
|
||||
)
|
||||
|
||||
const config = useConfigStore()
|
||||
|
||||
const supportHref = computed(() =>
|
||||
config.config.name === 'garoosi'
|
||||
? 'tel:09031265925'
|
||||
: getProjectSupportPhoneLink(),
|
||||
)
|
||||
|
||||
const baleHref = computed(() =>
|
||||
config.config.name === 'garoosi'
|
||||
? 'https://ble.ir/garoosigallery'
|
||||
: getProjectBaleLink(),
|
||||
)
|
||||
const supportHref = computed(() => getProjectSupportContactLink())
|
||||
const baleHref = computed(() => getProjectBaleContactLink())
|
||||
const opensSupportInNewTab = computed(() => supportHref.value.startsWith('http'))
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user