Files
91fans_landpage/src/pages/mobile/h5-install.vue
T
2026-09-15 18:00:56 +07:00

30 lines
970 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<!-- iOS 安装引导整页版:正常下载流程由 LandingB 页内弹层展示,本路由保留给 QA / 外链直达 -->
<!-- ?guide=safari → 社媒内「复制到 Safari」引导;默认 → 三步轻量版安装引导 -->
<IosSafariOpenGuide v-if="isSafariOpenGuide" :show="true" @close="goBack" />
<IosInstallGuide v-else :show="true" @close="goBack" />
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import IosInstallGuide from '~/components/mobile/IosInstallGuide.vue'
import IosSafariOpenGuide from '~/components/mobile/IosSafariOpenGuide.vue'
const route = useRoute()
const router = useRouter()
const isSafariOpenGuide = computed(() => {
const g = String(route.query.guide || '').toLowerCase()
return g === 'safari' || g === 'social'
})
function goBack() {
if (window.history.length > 1) {
router.back()
} else {
router.push('/')
}
}
</script>