Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在手机上执行到decodeFromImage就会卡住 #5

Open
gmomow opened this issue Jan 2, 2020 · 8 comments
Open

在手机上执行到decodeFromImage就会卡住 #5

gmomow opened this issue Jan 2, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@gmomow
Copy link

gmomow commented Jan 2, 2020

在手机上打开网页,识别手机相册里的二维码时会卡住

@yugasun
Copy link
Owner

yugasun commented Jan 16, 2020

@gmomow 是解析图片卡主吗?能提供下demo吗?

@yugasun yugasun added the bug Something isn't working label Apr 21, 2020
@nbawrt
Copy link

nbawrt commented Jan 30, 2021

我也遇到了 有解决的吗

@QQ254708913
Copy link

一样, 直接卡住

@opendidi
Copy link

这个有解决办法嘛?

@yugasun
Copy link
Owner

yugasun commented May 29, 2022

什么手机型号,目前只测试过微信和QQ 浏览器,都没有问题

@opendidi
Copy link

iphone6s的型号手机

@yugasun
Copy link
Owner

yugasun commented May 29, 2022

iphone6s的型号手机

可以再提供下浏览器版本

@claa
Copy link

claa commented May 31, 2022

const QrCode = require('@/common/index.min.js'); resolveQR(url){ console.log("--------->我进来了吗?"); // 初始化 var qr = new QrCode(); console.log(qr); // 解析二维码,返回promise var result= qr.decodeFromImage(url); console.log(result); result.then(res => { if (res.data) { console.log("--------->我在解析二维码"); console.log(res.data); this.$message.success('识别二维码成功!'); } else { this.$message.error('识别二维码失败, 请重新上传'); } }).catch(err => { this.$message.error(JSON.stringify(err)); }) }

请问一下,我这样用的对吗?感觉没有调用qr , console.log(qr); 这一步就没有执行,是在uniapp框架下的移动端执行的
Snipaste_2022-05-31_21-13-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants