support ui changed
This commit is contained in:
+74
-12
@@ -90,16 +90,15 @@
|
|||||||
class="draggable-support-button"
|
class="draggable-support-button"
|
||||||
:class="{ 'is-dragging': supportDragging }"
|
:class="{ 'is-dragging': supportDragging }"
|
||||||
:style="supportButtonStyle"
|
:style="supportButtonStyle"
|
||||||
|
title="پشتیبانی"
|
||||||
@pointerdown="onSupportPointerDown"
|
@pointerdown="onSupportPointerDown"
|
||||||
@pointermove="onSupportPointerMove"
|
@pointermove="onSupportPointerMove"
|
||||||
@pointerup="handleSupportPointerUp"
|
@pointerup="handleSupportPointerUp"
|
||||||
@pointercancel="onSupportPointerCancel"
|
@pointercancel="onSupportPointerCancel"
|
||||||
>
|
>
|
||||||
<div class="bg-green-100 text-green-800 flex gap-2 p-2 rounded-lg">
|
<div class="support-button-inner" :style="{ '--support-accent': supportAccentColor }">
|
||||||
<span>پشتیبانی</span>
|
<BasicIcon :icon="supportIcon" size="18" class="support-button-icon" />
|
||||||
<div class="w-5">
|
<span class="support-button-label">پشتیبانی</span>
|
||||||
<img src="/logo-montzar.png" alt="" draggable="false" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -168,6 +167,40 @@ const supportLink = computed(() => {
|
|||||||
|
|
||||||
const showSupportButton = computed(() => !!supportLink.value)
|
const showSupportButton = computed(() => !!supportLink.value)
|
||||||
|
|
||||||
|
const supportIcon = computed(() => {
|
||||||
|
const messenger = (supportMessengerSettings.value.messenger ?? '').toLowerCase()
|
||||||
|
switch (messenger) {
|
||||||
|
case 'whatsapp':
|
||||||
|
return 'vuesax-linear:whatsapp'
|
||||||
|
case 'telegram':
|
||||||
|
return 'vuesax-linear:send-2'
|
||||||
|
case 'bale':
|
||||||
|
return 'vuesax-linear:messages-2'
|
||||||
|
default:
|
||||||
|
return 'vuesax-linear:messages-2'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const supportAccentColor = computed(() => {
|
||||||
|
const messenger = (supportMessengerSettings.value.messenger ?? '').toLowerCase()
|
||||||
|
switch (messenger) {
|
||||||
|
case 'whatsapp':
|
||||||
|
return '#22c55e'
|
||||||
|
case 'telegram':
|
||||||
|
return '#0ea5e9'
|
||||||
|
case 'bale':
|
||||||
|
return '#16a34a'
|
||||||
|
case 'rubika':
|
||||||
|
return '#7c3aed'
|
||||||
|
case 'eitaa':
|
||||||
|
return '#f59e0b'
|
||||||
|
case 'soroush':
|
||||||
|
return '#2563eb'
|
||||||
|
default:
|
||||||
|
return config.config?.color || '#334155'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const {
|
const {
|
||||||
dragging: supportDragging,
|
dragging: supportDragging,
|
||||||
fabStyle: supportButtonStyle,
|
fabStyle: supportButtonStyle,
|
||||||
@@ -176,8 +209,8 @@ const {
|
|||||||
handlePointerUp: supportPointerUp,
|
handlePointerUp: supportPointerUp,
|
||||||
handlePointerCancel: onSupportPointerCancel
|
handlePointerCancel: onSupportPointerCancel
|
||||||
} = useDraggableFloatingButton('khaneghi_support_button_position', {
|
} = useDraggableFloatingButton('khaneghi_support_button_position', {
|
||||||
width: 110,
|
width: 118,
|
||||||
height: 44,
|
height: 42,
|
||||||
defaultBottomOffset: 120
|
defaultBottomOffset: 120
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -292,19 +325,48 @@ function update() {
|
|||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
cursor: grab;
|
cursor: grab;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
border-radius: 9999px;
|
||||||
border-radius: 0.5rem;
|
|
||||||
|
|
||||||
&.is-dragging {
|
&.is-dragging {
|
||||||
cursor: grabbing;
|
cursor: grabbing;
|
||||||
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.support-button-inner {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 9px 14px 9px 12px;
|
||||||
|
background: #ffffff;
|
||||||
|
border: 1px solid rgba(15, 23, 42, 0.08);
|
||||||
|
border-radius: 9999px;
|
||||||
|
box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
|
||||||
|
color: #1e293b;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 1;
|
||||||
|
direction: rtl;
|
||||||
|
transition: box-shadow 0.2s ease, transform 0.2s ease;
|
||||||
|
|
||||||
|
.support-button-icon {
|
||||||
|
color: var(--support-accent, #334155);
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
.support-button-label {
|
||||||
pointer-events: none;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#support-button:not(.is-dragging):hover .support-button-inner {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
|
||||||
|
}
|
||||||
|
|
||||||
|
#support-button.is-dragging .support-button-inner {
|
||||||
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 426px) {
|
@media screen and (min-width: 426px) {
|
||||||
.desktopConfig {
|
.desktopConfig {
|
||||||
width: 426px;
|
width: 426px;
|
||||||
|
|||||||
+167
-39
@@ -295,75 +295,95 @@
|
|||||||
v-model:visible="chargeAccountModal"
|
v-model:visible="chargeAccountModal"
|
||||||
custom-footer
|
custom-footer
|
||||||
:closable="false"
|
:closable="false"
|
||||||
|
wrap-class-name="wallet-info-modal"
|
||||||
>
|
>
|
||||||
<div v-if="config.config.name === 'garoosi'" class="text-center">
|
<div class="wallet-info-modal__body">
|
||||||
<div class=" font-bold text-red-600">مشتریان گرامی</div>
|
<div class="wallet-info-modal__icon">
|
||||||
<div class="mt-2">
|
<BasicIcon icon="vuesax-linear:wallet-add" size="26" />
|
||||||
<span>جهت شارژ حساب کاربری خود، مبلغ موردنظر را به شماره کارت زیر واریز نموده و از طریق لینک زیر به پشتیبان اطلاع دهید.</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-1 text-red-600">در صورت عدم همخوانی کارت ملی و فیش واریزی کیف پول شارژ نمیشود!</div>
|
<div v-if="config.config.name === 'garoosi'" class="wallet-info-modal__content">
|
||||||
<div class="mt-4">(سیده زهرا موسوی)</div>
|
<h3 class="wallet-info-modal__title">راهنمای شارژ حساب</h3>
|
||||||
<div class="mt-1">شماره کارت:6037701900311389</div>
|
<p class="wallet-info-modal__text">
|
||||||
<!-- <div>شماره حساب: 0233273609006</div>-->
|
جهت شارژ حساب کاربری خود، مبلغ موردنظر را به شماره کارت زیر واریز نموده و از طریق لینک زیر به پشتیبان اطلاع دهید.
|
||||||
<div>شماره شبا: IR 080160000000001143804581</div>
|
</p>
|
||||||
<BasicButton class="mt-4">
|
<p class="wallet-info-modal__warn">
|
||||||
<a class="w-full" href="https://ble.ir/garoosigallery">
|
در صورت عدم همخوانی کارت ملی و فیش واریزی کیف پول شارژ نمیشود.
|
||||||
|
</p>
|
||||||
|
<div class="wallet-info-modal__card-box">
|
||||||
|
<div>(سیده زهرا موسوی)</div>
|
||||||
|
<div>شماره کارت: 6037701900311389</div>
|
||||||
|
<div>شماره شبا: IR 080160000000001143804581</div>
|
||||||
|
</div>
|
||||||
|
<a
|
||||||
|
class="wallet-info-modal__action wallet-info-modal__action--outline"
|
||||||
|
href="https://ble.ir/garoosigallery"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<BasicIcon icon="vuesax-linear:headphone" size="18" />
|
||||||
پیام به پشتیبانی
|
پیام به پشتیبانی
|
||||||
</a>
|
</a>
|
||||||
</BasicButton>
|
|
||||||
</div>
|
|
||||||
<div v-else-if="isBazretalaProject()" class="text-center">
|
|
||||||
<div class="font-bold text-red-600">همراه گرامی</div>
|
|
||||||
<div class="mt-2">
|
|
||||||
<div>جهت شارژ حساب کاربری خود،</div>
|
|
||||||
<div>مبلغ موردنظر را به شماره کارت زیر واریز نموده</div>
|
|
||||||
<div>و به شماره پشتیبانی 09121784258 در برنامه ی بله اطلاع دهید.</div>
|
|
||||||
</div>
|
|
||||||
<div class="mt-4">(گنجينه طلاي حاجي ابوالفتح - بانک ملی)</div>
|
|
||||||
<div class="mt-1">شماره کارت: 6037998800496928</div>
|
|
||||||
<div>شماره شبا: IR 110170000000372468150002</div>
|
|
||||||
</div>
|
|
||||||
<div v-else class="text-center">
|
|
||||||
<div class=" font-bold text-red-600">مشتریان گرامی</div>
|
|
||||||
<div class="mt-2">
|
|
||||||
<span>{{ supportMessengerText }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<BasicButton v-if="supportMessengerLink">
|
<div v-else-if="isBazretalaProject()" class="wallet-info-modal__content">
|
||||||
|
<h3 class="wallet-info-modal__title">راهنمای شارژ حساب</h3>
|
||||||
|
<p class="wallet-info-modal__text">
|
||||||
|
جهت شارژ حساب کاربری خود، مبلغ موردنظر را به شماره کارت زیر واریز نموده و به شماره پشتیبانی
|
||||||
|
<strong>09121784258</strong>
|
||||||
|
در برنامه بله اطلاع دهید.
|
||||||
|
</p>
|
||||||
|
<div class="wallet-info-modal__card-box">
|
||||||
|
<div>(گنجینه طلای حاجی ابوالفتح - بانک ملی)</div>
|
||||||
|
<div>شماره کارت: 6037998800496928</div>
|
||||||
|
<div>شماره شبا: IR 110170000000372468150002</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-else class="wallet-info-modal__content">
|
||||||
|
<h3 class="wallet-info-modal__title">راهنمای شارژ حساب</h3>
|
||||||
|
<p class="wallet-info-modal__text">{{ supportMessengerText }}</p>
|
||||||
<a
|
<a
|
||||||
class="w-full"
|
v-if="supportMessengerLink"
|
||||||
|
class="wallet-info-modal__action wallet-info-modal__action--outline"
|
||||||
:href="supportMessengerLink"
|
:href="supportMessengerLink"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
<BasicIcon icon="vuesax-linear:headphone" size="18" />
|
||||||
پیام به پشتیبانی
|
پیام به پشتیبانی
|
||||||
</a>
|
</a>
|
||||||
</BasicButton>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a-button type="primary" class="w-full" @click="chargeAccountModal = false">
|
<BasicButton type="primary" class="w-full wallet-info-modal__ok" @click="chargeAccountModal = false">
|
||||||
متوجه شدم
|
متوجه شدم
|
||||||
</a-button>
|
</BasicButton>
|
||||||
</template>
|
</template>
|
||||||
</BasicModal>
|
</BasicModal>
|
||||||
<BasicModal
|
<BasicModal
|
||||||
v-model:visible="withdrawInfModal"
|
v-model:visible="withdrawInfModal"
|
||||||
custom-footer
|
custom-footer
|
||||||
:closable="false"
|
:closable="false"
|
||||||
|
wrap-class-name="wallet-info-modal"
|
||||||
>
|
>
|
||||||
<div class="text-center">
|
<div class="wallet-info-modal__body">
|
||||||
<div class=" font-bold text-red-600">مشتری گرامی</div>
|
<div class="wallet-info-modal__icon wallet-info-modal__icon--info">
|
||||||
<div class="mt-2">
|
<BasicIcon icon="vuesax-linear:info-circle" size="26" />
|
||||||
<div>واریز مبلغ مورد نظر، نهایتاً ظرف مدت ۲۴ ساعت آینده انجام میپذیرد.</div>
|
</div>
|
||||||
|
<div class="wallet-info-modal__content">
|
||||||
|
<h3 class="wallet-info-modal__title">زمان واریز برداشت</h3>
|
||||||
|
<p class="wallet-info-modal__text">
|
||||||
|
واریز مبلغ مورد نظر، نهایتاً ظرف مدت ۲۴ ساعت آینده انجام میپذیرد.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a-button type="primary" class="w-full" @click="withdrawInfModal = false">
|
<BasicButton type="primary" class="w-full wallet-info-modal__ok" @click="withdrawInfModal = false">
|
||||||
متوجه شدم
|
متوجه شدم
|
||||||
</a-button>
|
</BasicButton>
|
||||||
</template>
|
</template>
|
||||||
</BasicModal>
|
</BasicModal>
|
||||||
</div>
|
</div>
|
||||||
@@ -766,4 +786,112 @@ async function handleOnComplete(value: string) {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
padding: 4px 8px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__icon {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 56px;
|
||||||
|
height: 56px;
|
||||||
|
border-radius: 9999px;
|
||||||
|
background: #ecfdf5;
|
||||||
|
color: #059669;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__icon--info {
|
||||||
|
background: #eff6ff;
|
||||||
|
color: #2563eb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__title {
|
||||||
|
margin: 0 0 10px;
|
||||||
|
font-size: 17px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #0f172a;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__text {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.85;
|
||||||
|
color: #475569;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__warn {
|
||||||
|
margin: 12px 0 0;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: #fef2f2;
|
||||||
|
color: #b91c1c;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__card-box {
|
||||||
|
margin-top: 14px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px 14px;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: #f8fafc;
|
||||||
|
border: 1px solid #e2e8f0;
|
||||||
|
color: #334155;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.8;
|
||||||
|
text-align: right;
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__action {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 16px;
|
||||||
|
padding: 11px 14px;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__action--outline {
|
||||||
|
color: #0f766e;
|
||||||
|
background: #f0fdfa;
|
||||||
|
border: 1px solid #99f6e4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__action--outline:hover {
|
||||||
|
background: #ccfbf1;
|
||||||
|
border-color: #5eead4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal__ok {
|
||||||
|
height: 44px !important;
|
||||||
|
border-radius: 12px !important;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.wallet-info-modal .ant-modal-content {
|
||||||
|
border-radius: 18px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-info-modal .ant-modal-footer {
|
||||||
|
border-top: none;
|
||||||
|
padding: 0 20px 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user