17/12/1404

This commit is contained in:
2026-03-07 14:56:57 +03:30
parent 9d0fa0bb64
commit fe33bff488
4 changed files with 23 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
import useAxios from "@/utils/useAxios";
export async function getSettings() {
return await useAxios.get(`api/get_settings`)
}
+1 -1
View File
@@ -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<User>(`/customer/me`)
export const updateMe = async (obj: User) => await useAxios.post<User>(`/customer/me/update`, obj)
export const updatePass = async (obj: User) => await useAxios.post<Password>(`/customer/me/update`, obj)
+1
View File
@@ -586,6 +586,7 @@ onMounted(async () => {
await initDepositTable()
await getCards()
})
if (!userStore.isSingle) {
useInfiniteScroll(
el,
+16 -2
View File
@@ -143,7 +143,8 @@
<div>درباره ما</div>
</div>
</BasicButton>
<div class="cursor-pointer flex gap-1 justify-center mt-5 text-xs" @click="$emit('register',true)">اگر حساب کاربری ندارید
<div v-if="isRegister" class="cursor-pointer flex gap-1 justify-center mt-5 text-xs" @click="$emit('register',true)">اگر حساب کاربری ندارید
<div class="font-bold text-primary">از این قسمت</div>
ثبت نام کنید.
</div>
@@ -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<boolean>(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()
})
</script>
<style lang="less">
.animate.right {