Browse Source

Merge branch 'master' of http://192.168.40.220/dmc/jz_applet into master

yxb
wq 1 year ago
parent
commit
12ad2492c6
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      static/nfc/NFCManagerTool.js

+ 7
- 1
static/nfc/NFCManagerTool.js View File





function initNfcAdapter(callBack) { function initNfcAdapter(callBack) {
nfcAdapter = uni.getNFCAdapter() //获取NFC适配器实例
// #ifdef MP-ALIPAY
nfcAdapter = my.getNFCAdapter() //获取NFC适配器实例
// #endif
// #ifdef MP-WEIXIN
nfcAdapter = wx.getNFCAdapter() //获取NFC适配器实例
// #endif

console.log("获取NFC适配器实例:", nfcAdapter); console.log("获取NFC适配器实例:", nfcAdapter);
if (nfcAdapter != null) { if (nfcAdapter != null) {
callBack.call(this, { callBack.call(this, {

Loading…
Cancel
Save