Przeglądaj źródła

修改nfc储值卡充值

yxb
DESKTOP-2IO5MST\huting 1 rok temu
rodzic
commit
ca345a71f4
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7
    1
      static/nfc/NFCManagerTool.js

+ 7
- 1
static/nfc/NFCManagerTool.js Wyświetl plik





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, {

Ładowanie…
Anuluj
Zapisz