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)