大佬解决了吗?我也遇到这个问题
nfc 功能,NfcA.transceive为什么总是失败?api:NfcA.transceive基础库:2.14.2 微信版本:7.0.21 华为手机 能读到卡片的类型,也能连接上卡片,nfcA.connect可以成功,但是transcevie就失败了 错误信息:transceive:fail:system internal error 错误code:13017 const app = getApp() Page({ data: { }, onLoad: function () { const adapter = wx.getNFCAdapter(); console.log(adapter); this.adapter = adapter; adapter.onDiscovered(function (res){ console.log('读到卡片了', res); //console.log(res.techs); if(res.techs.includes(adapter.tech.nfcA)){ console.log('发现'+adapter.tech.nfcA+'卡'); const nfcA = adapter.getNfcA(); app.nfcA = nfcA; nfcA.connect({ success: function(res){ console.log('设备已连接', res) nfcA.transceive({ data:new ArrayBuffer(0), success: function(res){ console.log('发送数据成功, 接收数据如下:', res); }, fail: function(err){ console.log('发送数据失败', err); } }) }, fail: function(err){ console.log('设备联接错误', err); } }); } }) adapter.startDiscovery({ success: function(res){ console.log('成功发现设备',res); }, fail: function(err){ console.log('发现设备出错', err); }, complete: function(){ } }); }, onHide() { if (this.nfc) { this.nfc.stopDiscovery() } } })
2022-01-19微信小程序ios系统环境下,为什么无法换起第三方输入法键盘?
IOS14.2 微信小程序多文本框键盘弹出问题多个input情况下,点击其它位置失去焦点之后,在点击文本框 就弹不出键盘了。 具体步骤: 1.按顺序每个输入框都点一下。 2.点击其它位置,隐藏键盘失去焦点。 3.点击第一个文本框,此时键盘不弹出。 注:用的是IOS系统输入法
2021-06-08