From fe33bff48885900ad2982c8e09380c1a38c1b5a5 Mon Sep 17 00:00:00 2001 From: safavimohadeseh78 Date: Sat, 7 Mar 2026 14:56:57 +0330 Subject: [PATCH] 17/12/1404 --- src/api/configuration.ts | 5 +++++ src/api/me.ts | 2 +- src/views/base/wallet/index.vue | 1 + src/views/login/components/Login.vue | 18 ++++++++++++++++-- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 src/api/configuration.ts diff --git a/src/api/configuration.ts b/src/api/configuration.ts new file mode 100644 index 0000000..5cc27e2 --- /dev/null +++ b/src/api/configuration.ts @@ -0,0 +1,5 @@ +import useAxios from "@/utils/useAxios"; + +export async function getSettings() { + return await useAxios.get(`api/get_settings`) +} \ No newline at end of file diff --git a/src/api/me.ts b/src/api/me.ts index 0f427c1..4975144 100644 --- a/src/api/me.ts +++ b/src/api/me.ts @@ -1,8 +1,8 @@ import useAxios from "@/utils/useAxios"; import type {Password, User} from "@/models/login"; -// import {Login} from "@/models/login"; export const getMe = async () => await useAxios.get(`/customer/me`) export const updateMe = async (obj: User) => await useAxios.post(`/customer/me/update`, obj) + export const updatePass = async (obj: User) => await useAxios.post(`/customer/me/update`, obj) diff --git a/src/views/base/wallet/index.vue b/src/views/base/wallet/index.vue index 271a9ca..511c8b1 100644 --- a/src/views/base/wallet/index.vue +++ b/src/views/base/wallet/index.vue @@ -586,6 +586,7 @@ onMounted(async () => { await initDepositTable() await getCards() }) + if (!userStore.isSingle) { useInfiniteScroll( el, diff --git a/src/views/login/components/Login.vue b/src/views/login/components/Login.vue index 8f59d18..90e76b2 100644 --- a/src/views/login/components/Login.vue +++ b/src/views/login/components/Login.vue @@ -143,7 +143,8 @@
درباره ما
-
اگر حساب کاربری ندارید + +
اگر حساب کاربری ندارید
از این قسمت
ثبت نام کنید.
@@ -222,7 +223,7 @@ import { mobileValidation, required } from '@/utils/inputRules' import BasicInput from '@/components/BasicPacks/BasicInput.vue' import BasicButton from '@/components/BasicPacks/BasicButton.vue' import { authenticateWithFingerprint, getToken, loading, removeToken, setToken, URLUserType } from '@/utils' -import {computed, reactive, ref} from 'vue' +import {computed, onMounted, reactive, ref} from 'vue' import OtpInput from 'vue3-otp-input' import type { Login } from '@/models/login' import type { FormInstance } from 'ant-design-vue' @@ -240,6 +241,8 @@ import BasicActionSheet from "@/components/BasicPacks/BasicActionSheet.vue"; import {getConfig} from "@/api/config"; import shareAppleIcon from '@/assets/img/share-apple.png' import addToHomeScreenIcon from '@/assets/img/Add-to-homeScreen.png' +import {getProducts} from "@/api/products"; +import {getSettings} from "@/api/configuration"; const config=useConfigStore() const { time, onFinish, reset } = useCountdownTimer('00:02:00', 'mm:ss') const enableSendAgainCode = ref(false) @@ -394,11 +397,22 @@ const showPWAInstallGuide = ref(false) async function installWebApp() { showPWAInstallGuide.value = true } +const isRegister = ref() +async function isOpenRegister() { + const settings = await getSettings() + if (settings && Array.isArray(settings)) { + isRegister.value = settings.find(s => s.key === 'open_register' && s.value === 'true') + } +} async function proceedWithInstall() { showPWAInstallGuide.value = false } +onMounted(async () => { + await isOpenRegister() +}) +