forked from natuka/web.puabadge.com
iOS裁剪按钮放顶部
This commit is contained in:
1 parent
853019eb7b
commit
52c21e094e
1 file changed
+17
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user