onSuccess回调一直没有数据,不知道问题在哪里···
<template>
<div>
<ocr-navigator ref="ocr" @onSuccess="handleSucces" certificateType="idCard" :selectedOptions="ocrType">
<button type="primary">身份证识别</button>
</ocr-navigator>
</div>
</template>
<script>
export default {
name: 'ContractSign',
data () {
return {
ocrType: ['id','name','sex','birthday','homePlace']
}
},
methods: {
handleSucces (e) {
console.log(e) //underfined
}
}
}
</script>
5 个回复
冰激凌
怎么在uni-app中引入ocr-navigator
9***@qq.com
试试这个
https://developers.weixin.qq.com/miniprogram/dev/extended/service-market/api.html
2***@qq.com
楼主解决了吗
1***@qq.com
兄弟 你也遇到了吗
2021-09-01 09:30
1***@qq.com
楼主解决了吗?我也遇到了这个问题
5***@qq.com
试试这个