Giter VIP home page Giter VIP logo

Comments (24)

INTKILOW avatar INTKILOW commented on May 21, 2024 4

https://github.com/flyingsouthwind/wx-mini-qrcode 暂时没出现问题 ,华为手机表现正常

from weapp-qrcode.

CodeCola1637 avatar CodeCola1637 commented on May 21, 2024 1

@ckqhub 好谢谢,我是在onLoad或onReady里调接口成功后画的,是要在接口调成功后再延迟一秒吗?

我是在onshow接口里,延迟了500毫秒,解决了这个问题。onload好像之前测效果没那么好。

from weapp-qrcode.

INTKILOW avatar INTKILOW commented on May 21, 2024

复现步骤:

1在首页点击跳转二维码页面 无法显示二维码

2直接编译二维码页面正常

from weapp-qrcode.

yingye avatar yingye commented on May 21, 2024

仔细检查一下代码逻辑吧,看是否执行的生命周期不正确。如果还不能解决,可以提供相关代码,辅助解决问题。

from weapp-qrcode.

INTKILOW avatar INTKILOW commented on May 21, 2024

代码片段 https://developers.weixin.qq.com/s/7AqAlmmR7D8L

https://developers.weixin.qq.com/community/develop/doc/000a6031d94ed044d68891dd756c00?jumpto=comment&commentid=00020e0c80c5e80de8885221d5b0

from weapp-qrcode.

yingye avatar yingye commented on May 21, 2024

现在找不到这两款机型,尝试更改一下生命周期,分步调试一下,看到哪个API出现了问题。

from weapp-qrcode.

INTKILOW avatar INTKILOW commented on May 21, 2024

华为的很多都有 这个问题

from weapp-qrcode.

yingye avatar yingye commented on May 21, 2024

在华为p20上面试了一下,定位到 canvas API 问题,需要微信修复。

from weapp-qrcode.

JohannLai avatar JohannLai commented on May 21, 2024

+1 我用其他库,也是有用户反馈这样的问题,同样是华为手机

from weapp-qrcode.

INTKILOW avatar INTKILOW commented on May 21, 2024

我们暂时用的转换base64 显示在image上面解决

from weapp-qrcode.

JohannLai avatar JohannLai commented on May 21, 2024

@INTKILOW 把要绘制的内容转为 base64 ?

from weapp-qrcode.

JohannLai avatar JohannLai commented on May 21, 2024

@INTKILOW 可以大概说一下规避的方法吗?

from weapp-qrcode.

INTKILOW avatar INTKILOW commented on May 21, 2024

我是直接换了个库

from weapp-qrcode.

JohannLai avatar JohannLai commented on May 21, 2024

@INTKILOW 求推荐

from weapp-qrcode.

qiqingfu avatar qiqingfu commented on May 21, 2024

有时候出现空白有时候又没事, 什么情况呢? 测试华为P10

from weapp-qrcode.

INTKILOW avatar INTKILOW commented on May 21, 2024

估计是有时候 canvas 已经初始化完成了

from weapp-qrcode.

CodeCola1637 avatar CodeCola1637 commented on May 21, 2024

定位到 canvas API 问题,需要微信修复

————————————————————————
请问这个是个啥问题?

from weapp-qrcode.

lawushanshan avatar lawushanshan commented on May 21, 2024

同样的问题,华为p10没办法画出二维码

from weapp-qrcode.

lawushanshan avatar lawushanshan commented on May 21, 2024

暂时在小程序论坛上找到了临时解决方案,
如果判断当前手机品牌为HUAWEI或者HONER时,延时2秒执行画二维码的操作,可以解决这个问题。

from weapp-qrcode.

suguoyao avatar suguoyao commented on May 21, 2024

我在华为P30上也出现了这个问题,首页跳至二维码页面,二维码没出来,其他安卓和苹果手机没有问题😣

from weapp-qrcode.

CodeCola1637 avatar CodeCola1637 commented on May 21, 2024

我在华为P30上也出现了这个问题,首页跳至二维码页面,二维码没出来,其他安卓和苹果手机没有问题😣

onshow之后,延迟一秒再draw就好了。

from weapp-qrcode.

suguoyao avatar suguoyao commented on May 21, 2024

@ckqhub 好谢谢,我是在onLoad或onReady里调接口成功后画的,是要在接口调成功后再延迟一秒吗?

from weapp-qrcode.

ccccccmd avatar ccccccmd commented on May 21, 2024

https://github.com/flyingsouthwind/wx-mini-qrcode 暂时没出现问题 ,华为手机表现正常

有barcode的lib么(●'◡'●)

from weapp-qrcode.

Yrobot avatar Yrobot commented on May 21, 2024

我延时绘制了就好了,感觉是canvas没有初始化完就调用绘制API导致的

from weapp-qrcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.