|
|
|
@ -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) |
|
|
|
|