Explorar el Código

修改nfc储值卡充值

yxb
DESKTOP-2IO5MST\huting hace 1 año
padre
commit
ca345a71f4
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7
    1
      static/nfc/NFCManagerTool.js

+ 7
- 1
static/nfc/NFCManagerTool.js Ver fichero

@@ -234,7 +234,13 @@ export function removeObj() {


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);
if (nfcAdapter != null) {
callBack.call(this, {

Cargando…
Cancelar
Guardar