change link of support button
This commit is contained in:
Vendored
-3
@@ -20,10 +20,8 @@ declare module 'vue' {
|
|||||||
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
||||||
ASelect: typeof import('ant-design-vue/es')['Select']
|
ASelect: typeof import('ant-design-vue/es')['Select']
|
||||||
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
||||||
ASlider: typeof import('ant-design-vue/es')['Slider']
|
|
||||||
ASpin: typeof import('ant-design-vue/es')['Spin']
|
ASpin: typeof import('ant-design-vue/es')['Spin']
|
||||||
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
||||||
ATag: typeof import('ant-design-vue/es')['Tag']
|
|
||||||
ATextarea: typeof import('ant-design-vue/es')['Textarea']
|
ATextarea: typeof import('ant-design-vue/es')['Textarea']
|
||||||
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
||||||
BaseDatePicker: typeof import('./src/components/BasicPacks/BaseDatePicker/src/BaseDatePicker.vue')['default']
|
BaseDatePicker: typeof import('./src/components/BasicPacks/BaseDatePicker/src/BaseDatePicker.vue')['default']
|
||||||
@@ -70,6 +68,5 @@ declare module 'vue' {
|
|||||||
TransactionSkeleton: typeof import('./src/components/TransactionSkeleton.vue')['default']
|
TransactionSkeleton: typeof import('./src/components/TransactionSkeleton.vue')['default']
|
||||||
VanActionSheet: typeof import('vant/es')['ActionSheet']
|
VanActionSheet: typeof import('vant/es')['ActionSheet']
|
||||||
VanDialog: typeof import('vant/es')['Dialog']
|
VanDialog: typeof import('vant/es')['Dialog']
|
||||||
VanField: typeof import('vant/es')['Field']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="variant === 'desktop' ? 'dpage-support' : 'wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white'">
|
<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>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
<a :href="baleHref" target="_blank" rel="noopener noreferrer">
|
<a :href="baleHref" target="_blank" rel="noopener noreferrer">
|
||||||
@@ -12,8 +17,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
||||||
import { useConfigStore } from '@/store/configStore'
|
import { getProjectBaleContactLink, getProjectSupportContactLink } from '@/utils/config'
|
||||||
import { getProjectBaleLink, getProjectSupportPhoneLink } from '@/utils/config'
|
|
||||||
|
|
||||||
withDefaults(
|
withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -22,17 +26,7 @@ withDefaults(
|
|||||||
{ variant: 'mobile' },
|
{ variant: 'mobile' },
|
||||||
)
|
)
|
||||||
|
|
||||||
const config = useConfigStore()
|
const supportHref = computed(() => getProjectSupportContactLink())
|
||||||
|
const baleHref = computed(() => getProjectBaleContactLink())
|
||||||
const supportHref = computed(() =>
|
const opensSupportInNewTab = computed(() => supportHref.value.startsWith('http'))
|
||||||
config.config.name === 'garoosi'
|
|
||||||
? 'tel:09031265925'
|
|
||||||
: getProjectSupportPhoneLink(),
|
|
||||||
)
|
|
||||||
|
|
||||||
const baleHref = computed(() =>
|
|
||||||
config.config.name === 'garoosi'
|
|
||||||
? 'https://ble.ir/garoosigallery'
|
|
||||||
: getProjectBaleLink(),
|
|
||||||
)
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -148,6 +148,24 @@ export function getProjectBaleLink() {
|
|||||||
return 'https://ble.ir/'
|
return 'https://ble.ir/'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getProjectBaleContactLink() {
|
||||||
|
if (getConfigApp('name') === 'garoosi') {
|
||||||
|
return 'https://ble.ir/garoosigallery'
|
||||||
|
}
|
||||||
|
return getProjectBaleLink()
|
||||||
|
}
|
||||||
|
|
||||||
|
/** لینک دکمه «تماس با پشتیبانی» — bazretala به بله، garoosi تماس، بقیه تلفن پشتیبانی */
|
||||||
|
export function getProjectSupportContactLink() {
|
||||||
|
if (isBazretalaProject()) {
|
||||||
|
return getProjectBaleLink()
|
||||||
|
}
|
||||||
|
if (getConfigApp('name') === 'garoosi') {
|
||||||
|
return 'tel:09031265925'
|
||||||
|
}
|
||||||
|
return getProjectSupportPhoneLink()
|
||||||
|
}
|
||||||
|
|
||||||
export function getProjectFundHeaderBackground(defaultBackground: string) {
|
export function getProjectFundHeaderBackground(defaultBackground: string) {
|
||||||
if (isBazretalaProject()) {
|
if (isBazretalaProject()) {
|
||||||
return bazretalaFundBg
|
return bazretalaFundBg
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="variant === 'desktop' ? 'dabout-support' : 'wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white'">
|
<div :class="variant === 'desktop' ? 'dabout-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>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
<a :href="baleHref" target="_blank" rel="noopener noreferrer">
|
<a :href="baleHref" target="_blank" rel="noopener noreferrer">
|
||||||
@@ -12,30 +17,16 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
||||||
import { useAboutPageContext } from '../composables/useAboutPage'
|
import { getProjectBaleContactLink, getProjectSupportContactLink } from '@/utils/config'
|
||||||
|
|
||||||
const props = withDefaults(
|
withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
variant?: 'mobile' | 'desktop'
|
variant?: 'mobile' | 'desktop'
|
||||||
}>(),
|
}>(),
|
||||||
{ variant: 'mobile' },
|
{ variant: 'mobile' },
|
||||||
)
|
)
|
||||||
|
|
||||||
const {
|
const supportHref = computed(() => getProjectSupportContactLink())
|
||||||
config,
|
const baleHref = computed(() => getProjectBaleContactLink())
|
||||||
getProjectSupportPhoneLink,
|
const opensSupportInNewTab = computed(() => supportHref.value.startsWith('http'))
|
||||||
getProjectBaleLink,
|
|
||||||
} = useAboutPageContext()
|
|
||||||
|
|
||||||
const supportHref = computed(() =>
|
|
||||||
config.config.name === 'garoosi'
|
|
||||||
? 'tel:09031265925'
|
|
||||||
: getProjectSupportPhoneLink(),
|
|
||||||
)
|
|
||||||
|
|
||||||
const baleHref = computed(() =>
|
|
||||||
config.config.name === 'garoosi'
|
|
||||||
? 'https://ble.ir/garoosigallery'
|
|
||||||
: getProjectBaleLink(),
|
|
||||||
)
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,15 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="config.config.name === 'garoosi'"
|
v-if="showBaleSupport"
|
||||||
:class="variant === 'desktop' ? 'deducate-support' : 'wrap-fix bottom-0 px-10 py-6 flex gap-2 bg-white'"
|
:class="variant === 'desktop' ? 'deducate-support' : 'wrap-fix bottom-0 px-10 py-6 flex gap-2 bg-white'"
|
||||||
>
|
>
|
||||||
<a class="w-full" href="tel:09031265925">
|
<a
|
||||||
|
class="w-full"
|
||||||
|
:href="supportHref"
|
||||||
|
:target="opensSupportInNewTab ? '_blank' : undefined"
|
||||||
|
:rel="opensSupportInNewTab ? 'noopener noreferrer' : undefined"
|
||||||
|
>
|
||||||
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://ble.ir/garoosigallery">
|
<a :href="baleHref" target="_blank" rel="noopener noreferrer">
|
||||||
<img
|
<img
|
||||||
src="@/assets/img/bale.png"
|
src="@/assets/img/bale.png"
|
||||||
alt=""
|
alt="بله"
|
||||||
:class="variant === 'desktop' ? 'deducate-support__bale' : 'h-10 w-10'"
|
:class="variant === 'desktop' ? 'deducate-support__bale' : 'h-10 w-10'"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
@@ -19,7 +24,7 @@
|
|||||||
v-else
|
v-else
|
||||||
:class="variant === 'desktop' ? 'deducate-support' : 'wrap-fix bottom-0 px-10 py-5 flex gap-2 bg-white'"
|
:class="variant === 'desktop' ? 'deducate-support' : 'wrap-fix bottom-0 px-10 py-5 flex gap-2 bg-white'"
|
||||||
>
|
>
|
||||||
<a class="w-full" href="tel:09306612518">
|
<a class="w-full" :href="supportHref">
|
||||||
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
<a href="">
|
<a href="">
|
||||||
@@ -29,7 +34,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { computed } from 'vue'
|
||||||
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
||||||
|
import { getProjectBaleContactLink, getProjectSupportContactLink, isBazretalaProject } from '@/utils/config'
|
||||||
import { useEducatePageContext } from '../composables/useEducatePage'
|
import { useEducatePageContext } from '../composables/useEducatePage'
|
||||||
|
|
||||||
withDefaults(
|
withDefaults(
|
||||||
@@ -40,4 +47,11 @@ withDefaults(
|
|||||||
)
|
)
|
||||||
|
|
||||||
const { config } = useEducatePageContext()
|
const { config } = useEducatePageContext()
|
||||||
|
|
||||||
|
const showBaleSupport = computed(
|
||||||
|
() => config.config.name === 'garoosi' || isBazretalaProject(),
|
||||||
|
)
|
||||||
|
const supportHref = computed(() => getProjectSupportContactLink())
|
||||||
|
const baleHref = computed(() => getProjectBaleContactLink())
|
||||||
|
const opensSupportInNewTab = computed(() => supportHref.value.startsWith('http'))
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="variant === 'desktop' ? 'drules-support' : 'wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white'">
|
<div :class="variant === 'desktop' ? 'drules-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>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
<a :href="baleHref" target="_blank" rel="noopener noreferrer">
|
<a :href="baleHref" target="_blank" rel="noopener noreferrer">
|
||||||
@@ -12,7 +17,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
||||||
import { useRulesPageContext } from '../composables/useRulesPage'
|
import { getProjectBaleContactLink, getProjectSupportContactLink } from '@/utils/config'
|
||||||
|
|
||||||
withDefaults(
|
withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -21,21 +26,7 @@ withDefaults(
|
|||||||
{ variant: 'mobile' },
|
{ variant: 'mobile' },
|
||||||
)
|
)
|
||||||
|
|
||||||
const {
|
const supportHref = computed(() => getProjectSupportContactLink())
|
||||||
config,
|
const baleHref = computed(() => getProjectBaleContactLink())
|
||||||
getProjectSupportPhoneLink,
|
const opensSupportInNewTab = computed(() => supportHref.value.startsWith('http'))
|
||||||
getProjectBaleLink,
|
|
||||||
} = useRulesPageContext()
|
|
||||||
|
|
||||||
const supportHref = computed(() =>
|
|
||||||
config.config.name === 'garoosi'
|
|
||||||
? 'tel:09031265925'
|
|
||||||
: getProjectSupportPhoneLink(),
|
|
||||||
)
|
|
||||||
|
|
||||||
const baleHref = computed(() =>
|
|
||||||
config.config.name === 'garoosi'
|
|
||||||
? 'https://ble.ir/garoosigallery'
|
|
||||||
: getProjectBaleLink(),
|
|
||||||
)
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { message } from 'ant-design-vue'
|
|||||||
import type { Card } from '@/models/wallet'
|
import type { Card } from '@/models/wallet'
|
||||||
import { useUserStore } from '@/store/userStore'
|
import { useUserStore } from '@/store/userStore'
|
||||||
import { useConfigStore } from '@/store/configStore'
|
import { useConfigStore } from '@/store/configStore'
|
||||||
import { isBazretalaProject } from '@/utils/config'
|
import { getProjectBaleContactLink, isBazretalaProject } from '@/utils/config'
|
||||||
import { useDesktopBreakpoint } from '@/layouts/composables/useAppLayout'
|
import { useDesktopBreakpoint } from '@/layouts/composables/useAppLayout'
|
||||||
import {
|
import {
|
||||||
buildDepositSmsUrl,
|
buildDepositSmsUrl,
|
||||||
@@ -92,8 +92,8 @@ export function useWalletPage() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
const depositGuideSupportLink = computed(() => {
|
const depositGuideSupportLink = computed(() => {
|
||||||
if (config.config?.name === 'garoosi') {
|
if (config.config?.name === 'garoosi' || isBazretalaProject()) {
|
||||||
return 'https://ble.ir/garoosigallery'
|
return getProjectBaleContactLink()
|
||||||
}
|
}
|
||||||
|
|
||||||
return buildSupportMessengerUrl(
|
return buildSupportMessengerUrl(
|
||||||
|
|||||||
Reference in New Issue
Block a user