startReadNfc 开始读取NFC功能

startReadNfc

开始读取NFC功能(美居7.9开始支持该接口)

#请求参数

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

#接口调用示例

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

#返回参数

  • 成功时返回
Prop Type Default Description
code Number N/A 0开始监听用事件发送滴卡内容
msg String N/A success
  • 失败时返回
Prop Type Default Description
errorCode Number N/A -1获取失败 (没有也回调失败)
errorMessage String N/A 错误消息(如有)
posted on 2024-12-18 09:23  AtlasLapetos  阅读(12)  评论(0)    收藏  举报