Comments (24)
https://github.com/flyingsouthwind/wx-mini-qrcode 暂时没出现问题 ,华为手机表现正常
from weapp-qrcode.
@ckqhub 好谢谢,我是在onLoad或onReady里调接口成功后画的,是要在接口调成功后再延迟一秒吗?
我是在onshow接口里,延迟了500毫秒,解决了这个问题。onload好像之前测效果没那么好。
from weapp-qrcode.
复现步骤:
1在首页点击跳转二维码页面 无法显示二维码
2直接编译二维码页面正常
from weapp-qrcode.
仔细检查一下代码逻辑吧,看是否执行的生命周期不正确。如果还不能解决,可以提供相关代码,辅助解决问题。
from weapp-qrcode.
代码片段 https://developers.weixin.qq.com/s/7AqAlmmR7D8L
from weapp-qrcode.
现在找不到这两款机型,尝试更改一下生命周期,分步调试一下,看到哪个API出现了问题。
from weapp-qrcode.
华为的很多都有 这个问题
from weapp-qrcode.
在华为p20上面试了一下,定位到 canvas API 问题,需要微信修复。
from weapp-qrcode.
+1 我用其他库,也是有用户反馈这样的问题,同样是华为手机
from weapp-qrcode.
我们暂时用的转换base64 显示在image上面解决
from weapp-qrcode.
@INTKILOW 把要绘制的内容转为 base64 ?
from weapp-qrcode.
@INTKILOW 可以大概说一下规避的方法吗?
from weapp-qrcode.
我是直接换了个库
from weapp-qrcode.
@INTKILOW 求推荐
from weapp-qrcode.
有时候出现空白有时候又没事, 什么情况呢? 测试华为P10
from weapp-qrcode.
估计是有时候 canvas 已经初始化完成了
from weapp-qrcode.
定位到 canvas API 问题,需要微信修复
————————————————————————
请问这个是个啥问题?
from weapp-qrcode.
同样的问题,华为p10没办法画出二维码
from weapp-qrcode.
暂时在小程序论坛上找到了临时解决方案,
如果判断当前手机品牌为HUAWEI或者HONER时,延时2秒执行画二维码的操作,可以解决这个问题。
from weapp-qrcode.
我在华为P30上也出现了这个问题,首页跳至二维码页面,二维码没出来,其他安卓和苹果手机没有问题😣
from weapp-qrcode.
我在华为P30上也出现了这个问题,首页跳至二维码页面,二维码没出来,其他安卓和苹果手机没有问题😣
onshow之后,延迟一秒再draw就好了。
from weapp-qrcode.
@ckqhub 好谢谢,我是在onLoad或onReady里调接口成功后画的,是要在接口调成功后再延迟一秒吗?
from weapp-qrcode.
https://github.com/flyingsouthwind/wx-mini-qrcode 暂时没出现问题 ,华为手机表现正常
有barcode的lib么(●'◡'●)
from weapp-qrcode.
我延时绘制了就好了,感觉是canvas没有初始化完就调用绘制API导致的
from weapp-qrcode.
Related Issues (20)
- text传的值有长度限制 过长生成报错 跳过生成出的二维码扫不出 还以为是code长度有限制,结果其他的正常,建议更新一波
- iphone5型号中的二维码无法识别
- 希望适配下百度智能小程序
- 在新版本wepy中无法显示二维码 HOT 6
- 当宽高设置为200时,微信无法识别 HOT 2
- 图片不能显示呀
- 华为 nova 5i Pro 二维码出不来 HOT 4
- 默认计算模式文本中有表情会乱码 HOT 1
- 安卓手机生成的二维码有问题 微信无法扫描 请慎用 HOT 3
- 把自己坑惨了 必须是字符串才能生成二维码 数字不行
- 个别安卓手机无法生成二维码的解决方案,回调再次调用,重复渲染即可 HOT 2
- 解决个别华为不显示二维码,在drawQrcode的callback里再次执行drawQrcode
- 为啥没有设置padding参数了
- 没有声明文件,导致在ts文件中使用报错 HOT 2
- 能够在小程序的循环中使用不?新手不知道如何使用........
- mpvue开发的微信小程序使用weapp.qrcode插件,在真机中logo无法显示
- mpvue开发的小程序,使用这个生成的二维码没有固定在我想要的位置,而是跟着页面上下滑动在滚动 HOT 1
- 手机端怎么下载代码
- 建议添加是否清空画布参数
- 如何设置二维码边框的颜色?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weapp-qrcode.