getNfcInfo
getNfcInfo
插件获取当次扫描 NFC 的参数(nfc 中 uri 数据的 action 参数)
#请求参数
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
param |
Object |
Y |
{} |
请求参数 |
#接口调用示例
this.$bridge
.getNfcInfo(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
- 成功时返回
| Prop | Type | Default | Description |
|---|---|---|---|
code |
Number |
N/A |
0获取成功 |
data |
String |
N/A |
NFC发送的数据 |
- 失败时返回
| Prop | Type | Default | Description |
|---|---|---|---|
errorCode |
Number |
N/A |
-1获取失败 (没有也回调失败) |
errorMessage |
String |
N/A |
错误消息(如有) |
浙公网安备 33010602011771号