Commit 859892ce authored by nature's avatar nature

plugin

parent dc548fab
...@@ -302,6 +302,23 @@ export default { ...@@ -302,6 +302,23 @@ export default {
}, },
}) })
}, },
faceContrast () {
let vm = this
cordova.plugins.IdCardPlugin.faceContrast({'idNum': '342623199407113612', 'idName': '吴景超'}, function (suc) {
let success = JSON.parse(suc)
alert('success === ' + JSON.stringify(success))
if (success.code === 1) {
let filePath = success.message
console.log('filePath ==== ' + filePath)
// 回调成功上传图片
// vm.uploadImg(filePath)
}
}, function (reason) {
let error = JSON.parse(reason)
vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
})
},
}, },
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment