From 52c21e094ef4834c3dda84ff5a3a771a54204250 Mon Sep 17 00:00:00 2001 From: Linzm <1015157648@qq.com> Date: Fri, 13 Jun 2025 11:48:45 +0800 Subject: [PATCH] =?UTF-8?q?iOS=E8=A3=81=E5=89=AA=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=94=BE=E9=A1=B6=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/badge/index.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/views/badge/index.vue b/src/views/badge/index.vue index df6b0f1..8fbdd2b 100644 --- a/src/views/badge/index.vue +++ b/src/views/badge/index.vue @@ -12,11 +12,28 @@ const router = useRouter() const option = ref({ autoCropWidth: 1000, autoCropHeight: 1000, + ceilbutton: false }) const options = ref({ autoCropWidth: 1000, autoCropHeight: 1000, + ceilbutton: false }) + +const openApp = () => { + var userAgent = navigator.userAgent; + if (userAgent.match(/iPhone|iPod|iPad/i)) { + option.value.ceilbutton = true + options.value.ceilbutton = true + } else if (userAgent.match(/Android/i)) { + option.value.ceilbutton = false + options.value.ceilbutton = false + } else { + option.value.ceilbutton = false + options.value.ceilbutton = false + } +} + const imgurl = ref('') const imgBgUrl = ref('') const isBgShow = ref(true)