2026-01-18 13:01:46 +03:30
|
|
|
|
<template>
|
2026-06-14 10:08:46 +03:30
|
|
|
|
<div class="wallet-page-root">
|
|
|
|
|
|
<ResponsiveViewPair>
|
|
|
|
|
|
<template #mobile>
|
|
|
|
|
|
<MobileWalletView />
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template #desktop>
|
|
|
|
|
|
<DesktopWalletView />
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</ResponsiveViewPair>
|
2026-05-09 12:18:23 +03:30
|
|
|
|
|
2026-06-14 10:08:46 +03:30
|
|
|
|
<BasicActionSheet v-if="!isDesktop" v-model:show="showAddCard" class="!max-h-[95vh]">
|
|
|
|
|
|
<div class="font-bold text-lg">افزودن کارت</div>
|
|
|
|
|
|
<div class="mt-4 text-red-600 font-bold">توجه : حتما شماره کارت صاحب حساب نرم افزار وارد شود.</div>
|
|
|
|
|
|
<WalletAddCardForm />
|
2026-05-23 16:34:15 +03:30
|
|
|
|
</BasicActionSheet>
|
2026-06-14 10:08:46 +03:30
|
|
|
|
|
|
|
|
|
|
<BasicModal
|
|
|
|
|
|
v-else
|
|
|
|
|
|
v-model:visible="showAddCard"
|
|
|
|
|
|
title="افزودن کارت"
|
|
|
|
|
|
width="480px"
|
|
|
|
|
|
destroy-on-close
|
|
|
|
|
|
:loading="loading"
|
|
|
|
|
|
@ok="addCard"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="text-red-600 font-bold mb-4">توجه : حتما شماره کارت صاحب حساب نرم افزار وارد شود.</div>
|
|
|
|
|
|
<WalletAddCardForm :show-actions="false" />
|
|
|
|
|
|
</BasicModal>
|
|
|
|
|
|
|
2026-01-18 13:01:46 +03:30
|
|
|
|
<DialogVant v-model:show="showConfirmCode" :closeOnClickOverlay="true" :timeOut="-1">
|
2026-06-14 10:08:46 +03:30
|
|
|
|
<template #title>
|
2026-01-18 13:01:46 +03:30
|
|
|
|
<div>
|
|
|
|
|
|
<div class="flex justify-end">
|
|
|
|
|
|
<BasicIcon
|
2026-04-19 17:37:20 +03:30
|
|
|
|
icon="vuesax-linear:close-circle"
|
|
|
|
|
|
size="30"
|
|
|
|
|
|
class="text-red"
|
2026-06-14 10:08:46 +03:30
|
|
|
|
@click="showConfirmCode = false"
|
2026-01-18 13:01:46 +03:30
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="p-5 text-sm">لطفا کد ارسالی را وارد کنید.</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<OtpInput
|
2026-04-19 17:37:20 +03:30
|
|
|
|
ref="refOtpInput"
|
|
|
|
|
|
:is-input-num="true"
|
|
|
|
|
|
:num-inputs="4"
|
|
|
|
|
|
:should-auto-focus="true"
|
|
|
|
|
|
autocomplete="one-time-code"
|
|
|
|
|
|
class="mt-5 justify-center"
|
|
|
|
|
|
input-classes="otp-input"
|
|
|
|
|
|
separator=""
|
|
|
|
|
|
style="direction: ltr"
|
|
|
|
|
|
value=""
|
|
|
|
|
|
@on-complete="handleOnComplete"
|
2026-01-18 13:01:46 +03:30
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
2026-06-14 10:08:46 +03:30
|
|
|
|
<template #button>
|
2026-01-18 13:01:46 +03:30
|
|
|
|
<div></div>
|
|
|
|
|
|
<div class="flex justify-end">
|
2026-06-14 10:08:46 +03:30
|
|
|
|
<BasicButton class="py-2" type="primary" @click="showConfirmCode = false">
|
2026-01-18 13:01:46 +03:30
|
|
|
|
بستن
|
|
|
|
|
|
</BasicButton>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</DialogVant>
|
2026-06-14 10:08:46 +03:30
|
|
|
|
|
2026-04-19 17:37:20 +03:30
|
|
|
|
<SkeletonLoading v-model:show="infoVisible" />
|
2026-01-18 13:01:46 +03:30
|
|
|
|
|
2026-06-16 19:47:28 +03:30
|
|
|
|
<WalletDepositGuideModal
|
|
|
|
|
|
v-model:visible="chargeAccountModal"
|
|
|
|
|
|
:support-link="depositGuideSupportLink"
|
|
|
|
|
|
:sms-link="depositSmsSupportLink"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template v-if="config.config.name === 'garoosi'">
|
|
|
|
|
|
<p>جهت شارژ حساب کاربری خود، مبلغ موردنظر را به شماره کارت زیر واریز نموده و از طریق لینک زیر به پشتیبان اطلاع دهید.</p>
|
|
|
|
|
|
<p class="deposit-guide-note deposit-guide-note--warn">در صورت عدم همخوانی کارت ملی و فیش واریزی کیف پول شارژ نمیشود!</p>
|
|
|
|
|
|
<p class="deposit-guide-note">(سیده زهرا موسوی)</p>
|
|
|
|
|
|
<p class="deposit-guide-note">شماره کارت: 6037701900311389</p>
|
|
|
|
|
|
<p class="deposit-guide-note">شماره شبا: IR 080160000000001143804581</p>
|
2026-01-18 13:01:46 +03:30
|
|
|
|
</template>
|
2026-06-16 19:47:28 +03:30
|
|
|
|
|
|
|
|
|
|
<template v-else-if="isBazretalaProject()">
|
|
|
|
|
|
<p>جهت شارژ حساب کاربری خود، مبلغ موردنظر را به شماره کارت زیر واریز نموده و به شماره پشتیبانی 09121784258 در برنامه بله اطلاع دهید.</p>
|
|
|
|
|
|
<p class="deposit-guide-note">(گنجينه طلاي حاجي ابوالفتح - بانک ملی)</p>
|
|
|
|
|
|
<p class="deposit-guide-note">شماره کارت: 6037998800496928</p>
|
|
|
|
|
|
<p class="deposit-guide-note">شماره شبا: IR 110170000000372468150002</p>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<template v-else>
|
|
|
|
|
|
<p>{{ supportMessengerText }}</p>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</WalletDepositGuideModal>
|
2026-06-14 10:08:46 +03:30
|
|
|
|
|
|
|
|
|
|
<BasicModal v-model:visible="withdrawInfModal" custom-footer :closable="false">
|
2026-02-26 12:32:43 +03:30
|
|
|
|
<div class="text-center">
|
2026-06-14 10:08:46 +03:30
|
|
|
|
<div class="font-bold text-red-600">مشتری گرامی</div>
|
2026-02-26 12:32:43 +03:30
|
|
|
|
<div class="mt-2">
|
2026-02-26 14:06:06 +03:30
|
|
|
|
<div>واریز مبلغ مورد نظر، نهایتاً ظرف مدت ۲۴ ساعت آینده انجام میپذیرد.</div>
|
2026-02-26 12:32:43 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
<a-button type="primary" class="w-full" @click="withdrawInfModal = false">
|
|
|
|
|
|
متوجه شدم
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</BasicModal>
|
2026-01-18 13:01:46 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2026-06-14 10:08:46 +03:30
|
|
|
|
import BasicActionSheet from '@/components/BasicPacks/BasicActionSheet.vue'
|
2026-01-18 13:01:46 +03:30
|
|
|
|
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
|
|
|
|
|
import BasicIcon from '@/components/BasicPacks/BasicIcon.vue'
|
2026-04-19 17:37:20 +03:30
|
|
|
|
import BasicModal from '@/components/BasicPacks/BasicModal.vue'
|
2026-06-14 10:08:46 +03:30
|
|
|
|
import DialogVant from '@/components/DialogVant.vue'
|
|
|
|
|
|
import OtpInput from 'vue3-otp-input'
|
|
|
|
|
|
import { useDesktopBreakpoint } from '@/layouts/composables/useAppLayout'
|
|
|
|
|
|
import ResponsiveViewPair from '@/layouts/components/ResponsiveViewPair.vue'
|
|
|
|
|
|
import { useWalletPage } from './composables/useWalletPage'
|
|
|
|
|
|
import DesktopWalletView from './desktop/DesktopWalletView.vue'
|
|
|
|
|
|
import MobileWalletView from './mobile/MobileWalletView.vue'
|
|
|
|
|
|
import SkeletonLoading from './components/SkeletonLoading.vue'
|
|
|
|
|
|
import WalletAddCardForm from './components/WalletAddCardForm.vue'
|
2026-06-16 19:47:28 +03:30
|
|
|
|
import WalletDepositGuideModal from './components/WalletDepositGuideModal.vue'
|
2026-02-06 14:54:21 +03:30
|
|
|
|
|
2026-06-14 10:08:46 +03:30
|
|
|
|
const isDesktop = useDesktopBreakpoint()
|
2026-01-18 13:01:46 +03:30
|
|
|
|
|
2026-06-14 10:08:46 +03:30
|
|
|
|
const {
|
|
|
|
|
|
config,
|
|
|
|
|
|
showAddCard,
|
|
|
|
|
|
chargeAccountModal,
|
|
|
|
|
|
showConfirmCode,
|
|
|
|
|
|
withdrawInfModal,
|
|
|
|
|
|
infoVisible,
|
|
|
|
|
|
refOtpInput,
|
|
|
|
|
|
supportMessengerText,
|
2026-06-16 19:47:28 +03:30
|
|
|
|
depositGuideSupportLink,
|
2026-06-16 10:26:46 +03:30
|
|
|
|
depositSmsSupportLink,
|
2026-06-14 10:08:46 +03:30
|
|
|
|
isBazretalaProject,
|
|
|
|
|
|
handleOnComplete,
|
|
|
|
|
|
loading,
|
|
|
|
|
|
addCard,
|
|
|
|
|
|
} = useWalletPage()
|
2026-01-18 13:01:46 +03:30
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2026-06-14 10:08:46 +03:30
|
|
|
|
.wallet-page-root {
|
|
|
|
|
|
min-height: 100%;
|
|
|
|
|
|
height: 100%;
|
2026-01-18 13:01:46 +03:30
|
|
|
|
}
|
2026-06-16 19:47:28 +03:30
|
|
|
|
|
|
|
|
|
|
.deposit-guide-note {
|
|
|
|
|
|
margin: 0.35rem 0 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.deposit-guide-note--warn {
|
|
|
|
|
|
color: #dc2626;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
}
|
2026-01-18 13:01:46 +03:30
|
|
|
|
</style>
|