From 681ad15228d56800fb9ebade96f5da99f0df8f53 Mon Sep 17 00:00:00 2001 From: speakeloudest Date: Mon, 30 Mar 2026 06:36:30 +0300 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E9=93=BE=E6=8E=A5=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2ios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Home/components/DownloadButton.vue | 21 ++++++++++++------- .../Home/components/ReviewCarousel/index.vue | 2 +- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/pages/Home/components/DownloadButton.vue b/src/pages/Home/components/DownloadButton.vue index 277476a..10a684a 100644 --- a/src/pages/Home/components/DownloadButton.vue +++ b/src/pages/Home/components/DownloadButton.vue @@ -64,7 +64,7 @@ import AndroidIcon from './AndroidIcon.svg?component' import request from '@/utils/request' import {computed, ref, onMounted} from "vue"; -import {getAllQueryString} from "@/utils/url-utils.ts"; +import {getAllQueryString} from "@/utils/url-utils"; const downLoadWin = ref('') const downLoadMac = ref('') @@ -114,12 +114,19 @@ request.get('/api/v1/common/client/download', { downLoadWin.value = res.url }) -const allDownloadOptions = computed(() => [ - { key: 'win', mainIcon: Icon1, secondaryIcon: WinIcon, link: downLoadWin.value, label: 'Windows', id: 'downloadButton_win' }, - { key: 'mac', mainIcon: Icon3, secondaryIcon: MacIcon, label: 'macOS', link: `https://hifastvpn.go.link?adj_t=1xf6e7ru&inviteCode=${getAllQueryString('ic')}` }, - { key: 'ios', mainIcon: Icon2, secondaryIcon: AppleIcon, label: 'iOS', link: `https://hifastvpn.go.link?adj_t=1xf6e7ru&inviteCode=${getAllQueryString('ic')}` }, - { key: 'android', mainIcon: Icon4, secondaryIcon: AndroidIcon, label: 'Android', link: `https://hifastvpn.go.link?adj_t=1xf6e7ru&inviteCode=${getAllQueryString('ic')}`, }, -]) +const allDownloadOptions = computed(() => { + const ic = getAllQueryString('ic') + const androidLink = currentPlatform.value === 'android' + ? `https://hifastvpn.go.link?adj_t=1xf6e7ru&inviteCode=${ic}` + : 'https://api.hifast.biz/v1/common/client/download/file/Hi%E5%BF%ABVPN-android-1.0.0.apk' + + return [ + { key: 'win', mainIcon: Icon1, secondaryIcon: WinIcon, link: downLoadWin.value, label: 'Windows', id: 'downloadButton_win' }, + { key: 'mac', mainIcon: Icon3, secondaryIcon: MacIcon, label: 'macOS', link: `https://hifastvpn.go.link?adj_t=1xf6e7ru&inviteCode=${ic}` }, + { key: 'ios', mainIcon: Icon2, secondaryIcon: AppleIcon, label: 'iOS', link: `https://hifastvpn.go.link?adj_t=1xf6e7ru&inviteCode=${ic}` }, + { key: 'android', mainIcon: Icon4, secondaryIcon: AndroidIcon, label: 'Android', link: androidLink }, + ] +}) const mainButton = computed(() => { return allDownloadOptions.value.find(opt => opt.key === currentPlatform.value) || allDownloadOptions.value[0] diff --git a/src/pages/Home/components/ReviewCarousel/index.vue b/src/pages/Home/components/ReviewCarousel/index.vue index 5312982..779b1ea 100644 --- a/src/pages/Home/components/ReviewCarousel/index.vue +++ b/src/pages/Home/components/ReviewCarousel/index.vue @@ -59,7 +59,7 @@