Browse Source

iOS裁剪按钮放顶部

lzm_web
Linzm 8 months ago
parent
commit
52c21e094e
  1. 17
      src/views/badge/index.vue

17
src/views/badge/index.vue

@ -12,11 +12,28 @@ const router = useRouter()
const option = ref({ const option = ref({
autoCropWidth: 1000, autoCropWidth: 1000,
autoCropHeight: 1000, autoCropHeight: 1000,
ceilbutton: false
}) })
const options = ref({ const options = ref({
autoCropWidth: 1000, autoCropWidth: 1000,
autoCropHeight: 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 imgurl = ref('')
const imgBgUrl = ref('') const imgBgUrl = ref('')
const isBgShow = ref(true) const isBgShow = ref(true)

Loading…
Cancel
Save