- 地图打开时报Cannot read property 'getExtension' of null?
[图片] 之前测试过地图可以打开,突然报这个问题,实在找不到哪里有问题了,求助大神。
2021-03-12 - 微信面单打印小助手?
启瑞打印机可以打测试页,但微信面单打印助手打印无法打印面单,打印机设置中打印测试页还会闪退
2020-05-27 - wx.getBLEDeviceServices出现10004的错误码
- 当前 Bug 的表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo //点击连接蓝牙 connectBlueTooth: function (item) { let that = this // wx.showLoading({ // title: '连接中...' // }) console.debug("连接蓝牙", item) that.data.blueToothTtem = item // console.debug("连接蓝牙", item.currentTarget.dataset.item.deviceId) wx.createBLEConnection({ // 这里的 deviceId 需要已经通过 createBLEConnection 与对应设备建立链接 deviceId: item.deviceId, timeout: 30000, success: function (res) { console.debug('连接蓝牙成功---', res) // wx.hideLoading() that.data.times = 1 setTimeout(() => { that.getBlueToothService() }, 1500) }, fail: function (res) { app.globalData.isOrderConnect = true console.debug('连接失败', res) console.log('serviceTimes次数:', that.data.serviceTimes) if(that.data.serviceTimes < 4){ that.data.serviceTimes++ if(that.data.serviceTimes === 3){ console.log('连接失败次数') wx.showToast({ title: '连接失败', complete:function(){ that.data.isConnectedBlueTooth = false; //跳转下一个页面 setTimeout(() => { that.data.serviceTimes = 1 wx.hideToast() //跳转下一个页面 that.jumpToNextPage() }, 1000) } }) } else { //重新搜索 setTimeout(() => { console.debug('再次连接失败') that.data.serviceTimes = 1 that.searchBlueTooth() }, 2000) } } if (that.data.serviceTimes >= 4){ wx.showToast({ title: '连接失败', complete: function (){ that.data.isConnectedBlueTooth = false; //跳转下一个页面 setTimeout(() => { that.data.serviceTimes = 1 wx.hideToast() //跳转下一个页面 that.jumpToNextPage() }, 1000) } }) } } }) }, getBlueToothService: function () { var that = this; //this.data.deviceId let deviceId = that.data.blueToothTtem.deviceId wx.getBLEDeviceServices({ deviceId: deviceId, success: function (res) { console.debug('获取蓝牙设备的所有服务:', JSON.stringify(res.services)); app.globalData.services = res.services that.data.times = 1 //连接蓝牙成功 that.data.isConnectedBlueTooth = true; //跳转下一个页面 setTimeout(() => { wx.hideToast() //跳转下一个页面 that.jumpToNextPage() }, 500) }, fail: function (error) { //不成功之后的次数 console.debug('重新找服务类型:', that.data.isConnectting) if (that.data.isConnectting) { that.data.serviceTimes++ console.debug('重新找服务') if (that.data.serviceTimes < 5) { //重新找服务 if (that.data.serviceTimes === 2) { setTimeout(() => { app.globalData.deviceID = '' that.data.serviceError = true //释放资源重新来 that.closeBlueTooth() }, 1500) } else if (that.data.serviceTimes === 3) { setTimeout(() => { app.globalData.deviceID = '' that.data.serviceError = true //释放资源重新来 that.closeBlueTooth() }, 2000) } else { setTimeout(() => { app.globalData.deviceID = '' that.data.serviceError = true //释放资源重新来 that.closeBlueTooth() }, 3000) } } } else { console.debug('重新连接') that.data.serviceTimes++ if (that.data.serviceTimes < 5) { //重新连接 setTimeout(() => { that.connectBlueTooth(that.data.blueToothTtem) }, 2000) } } if (that.data.serviceTimes === 5) { console.log('服务的次数:', that.data.serviceTimes) that.data.serviceTimes = 1 that.data.times = 1 wx.showToast({ title: '连接失败', icon: 'none', complete: function () { //跳转下一个页面 setTimeout(() => { wx.hideToast() //跳转下一个页面 that.jumpToNextPage() }, 1000) } }) } console.debug('所有服务error:', error) } }) }, 手机:Redmi Note 4x ,MIUI版本:MIUI 10.2. 日志上传时间:5月15号 09:38 微信号是:OnlyOne_0451 问题描述: 第一次出现了找不到服务,然后再重新来一遍(释放蓝牙资源程序,重新连接,查找服务),连续二次还是不行,请问是什么原因
2019-05-15 - 安卓手机通过设备的deviceID获取所有服务失败 报10004
与蓝牙设备连接成功后,在ios上通过 [代码]wx.getBLEDeviceServices({ // 这里的 deviceId 需要已经通过 createBLEConnection 与对应设备建立链接 deviceId, success(res) { console.log('device services:', res.services) } })[代码]输入deviceId可以获取到设备的所有services,可是在Android上确报10004错误,测试很多次,在Android设备上有一两次可以获取成功,在ios上每一次都是成功的,请问一下这是什么原因?
2019-05-23 - canvas 画图draw闪退,ps:当canva的尺寸大于1080*1920
当canvas尺寸过大,比如大于2000px以上,3000px等的时候,在使用drawImage的时候,draw()画的时候,会闪退。 - 当前 Bug 的表现(可附上截图) 小程序闪退 - 预期表现 小程序不闪退 - 复现路径 page/editImg/editImg.wxml - 提供一个最简复现 Demo 微信小程序名字:发票帮帮 路径:更多----》修改图片---》选图片,选个手机截屏的图片,尺寸大于等于1080*1920px的图片,上传,选择尺寸缩小选2倍以上。点击压缩。
2018-11-09 - 蓝牙打印如何判断打印成功 ???求解
最近发现小程序往蓝牙打印机写入数据成功后,打印机偶尔会有打印失败的情况出现,请问怎么判断是打印成功呢? ——————当然不能从打印机出不出纸来判断。
2019-01-26 - 微信小程序充值页面突然无法访问,提示页面不存在,体验版和开发版正常。
以前都可以访问,后面突然就提示页面不存在了,是不是微信屏蔽了?也不发个消息通知。 补充: 小程序以前都是好的,可以正常充值,突然线上发布版本充值页面无法访问,其他页面都能正常跳转访问。充值页面提示,页面不存在,请返回首页获取更多服务,体验版和开发版都能正常访问。这个页面在小程序中是存在的,标题都已经是目标对的了。 微信小程序后台管理里面错误信息: onPageNotFound Error: Can not find page "undefined".; at onPageNotFound Error: onPageNotFound Error: Can not find page "undefined". at https://lib/WAService.js:1:617557at https://lib/WAService.js:1:279252at Object.m (https://lib/WAService.js:1:1727) [图片]
2019-05-30