getNfcStatus

getNfcStatus

获取nfc状态

#请求参数

Prop Type Required Default Description
param Object Y {} 请求参数

#接口调用示例

this.$bridge
    .getNfcStatus(params)
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })

#返回参数

  • 成功时返回
Prop Type Default Description
code Number N/A 1是可用,0是不可用
data String N/A NFC发送的数据
  • 失败时返回
Prop Type Default Description
errorCode Number N/A -1获取失败 (没有也回调失败)
errorMessage String N/A 错误消息(如有)
posted on 2024-12-18 09:23  AtlasLapetos  阅读(9)  评论(0)    收藏  举报