# getNfcData
获取Nfc数据
# 请求参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
param | Object | Y | {} | 请求参数 |
# 接口调用示例
this.$bridge
.getNfcData(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 返回参数
- 成功时返回
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 | 错误消息(如有) |