takePhoto() {
console.log(1)
if (this.$route.query.iamId && this.$route.query.iamId != 'undefined') {
console.log(2)
let input = document.createElement('input')
input.style.cssText = "position: fixed; top: -10000px; left: 0;"
input.type = 'file'
input.accept = 'image/*'
document.body.append(input)
console.log(3)
input.onchange = e => {
let file = e.target.files[0]
this.afterRead({ file })
this.localUrl = URL.createObjectURL(file)
}
input.click()
}