diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..32b7f4d --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# آدرس مستقیم فایل APK (اختیاری). اگر خالی باشد از فایل public/apk/Garoosi.apk استفاده می‌شود. +# VITE_APK_URL=https://example.com/path/to/Garoosi.apk diff --git a/public/apk/.gitkeep b/public/apk/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/apk/Garoosi.apk b/src/assets/apk/Garoosi.apk new file mode 100644 index 0000000..ce99fbe Binary files /dev/null and b/src/assets/apk/Garoosi.apk differ diff --git a/src/assets/img/Add-to-homeScreen.png b/src/assets/img/Add-to-homeScreen.png new file mode 100644 index 0000000..a413022 Binary files /dev/null and b/src/assets/img/Add-to-homeScreen.png differ diff --git a/src/assets/img/garosi/192-maskable.png b/src/assets/img/garosi/192-maskable.png new file mode 100644 index 0000000..842ebfd Binary files /dev/null and b/src/assets/img/garosi/192-maskable.png differ diff --git a/src/assets/img/garosi/192x192.png b/src/assets/img/garosi/192x192.png new file mode 100644 index 0000000..262c231 Binary files /dev/null and b/src/assets/img/garosi/192x192.png differ diff --git a/src/assets/img/garosi/32-maskable.png b/src/assets/img/garosi/32-maskable.png new file mode 100644 index 0000000..8c4815e Binary files /dev/null and b/src/assets/img/garosi/32-maskable.png differ diff --git a/src/assets/img/garosi/32x32.png b/src/assets/img/garosi/32x32.png new file mode 100644 index 0000000..ce8b32c Binary files /dev/null and b/src/assets/img/garosi/32x32.png differ diff --git a/src/assets/img/garosi/512-maskable.png b/src/assets/img/garosi/512-maskable.png new file mode 100644 index 0000000..b1d3df6 Binary files /dev/null and b/src/assets/img/garosi/512-maskable.png differ diff --git a/src/assets/img/garosi/512x512.png b/src/assets/img/garosi/512x512.png new file mode 100644 index 0000000..7be3c35 Binary files /dev/null and b/src/assets/img/garosi/512x512.png differ diff --git a/src/assets/img/share-apple.png b/src/assets/img/share-apple.png new file mode 100644 index 0000000..48e1ef9 Binary files /dev/null and b/src/assets/img/share-apple.png differ diff --git a/src/views/base/home/index.vue b/src/views/base/home/index.vue index 939702a..b9ef206 100644 --- a/src/views/base/home/index.vue +++ b/src/views/base/home/index.vue @@ -54,6 +54,7 @@
خرید و فروش
+
واریز نقدی
+
-
+
خرید و فروش
diff --git a/src/views/base/index.vue b/src/views/base/index.vue index 8289c28..c43e14c 100644 --- a/src/views/base/index.vue +++ b/src/views/base/index.vue @@ -88,8 +88,8 @@
گزارش
-
-
+
+
-
+
همه {{ item }} diff --git a/src/views/login/components/Login.vue b/src/views/login/components/Login.vue index b112d19..5c1a72d 100644 --- a/src/views/login/components/Login.vue +++ b/src/views/login/components/Login.vue @@ -117,14 +117,31 @@ ورود با اثر انگشت
+
+ +
دانلود اپ اندروید
+
+ +
نصب نسخه وب اپ
+
+
+ +
آموزش کار با نرم افزار
+
اگر حساب کاربری ندارید
از این قسمت
ثبت نام کنید.
- + + +
+

+ وب اپلیکیشن گروسی را به صفحه اصلی خود اضافه کنید. +

+ +
+
+
+ Share +
+
+

+ روی دکمه Share در نوار پایین کلیک کنید. +

+
+
+ +
+
+ Add to Home Screen +
+
+

+ در منوی باز شده در قسمت پایین گزینه Add to Home Screen را انتخاب کنید. +

+
+
+ +
+
+ Add +
+
+

+ در مرحله آخر در قسمت بالا روی Add کلیک کنید. +

+
+
+
+ + + متوجه شدم + +
+
@@ -142,7 +213,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 { reactive, ref } from 'vue' +import {computed, reactive, ref} from 'vue' import OtpInput from 'vue3-otp-input' import type { Login } from '@/models/login' import type { FormInstance } from 'ant-design-vue' @@ -155,7 +226,10 @@ import { useUserStore } from '@/store/userStore' import { useWalletStore } from '@/store/walletStore' import { fingerPosition, setTruth } from '@/main' import {useConfigStore} from "@/store/configStore"; - +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' const config=useConfigStore() const { time, onFinish, reset } = useCountdownTimer('00:02:00', 'mm:ss') const enableSendAgainCode = ref(false) @@ -301,6 +375,23 @@ const getcode=()=>{ const goToEducate = () => { router.push({ name: "educate" }) } + +const apkDownloadUrl = computed(() => { + const envUrl = import.meta.env.VITE_APK_URL + if (envUrl) return envUrl + const base = (import.meta.env.BASE_URL || '/').replace(/\/?$/, '/') + return `${window.location.origin}${base}apk/Garoosi.apk` +}) + +const showPWAInstallGuide = ref(false) +async function installWebApp() { + showPWAInstallGuide.value = true +} + +async function proceedWithInstall() { + showPWAInstallGuide.value = false +} +