1***@qq.com
1***@qq.com
  • 发布:2021-12-27 09:26
  • 更新:2022-01-25 22:52
  • 阅读:1218

#插件讨论# 【 H5调用摄像头扫码(原生H5调用,不需要任何sdk,本地扫描识别,不需要后端) - 何木木 】扫码界面全屏

分类:uni-app

有没有扫码界面全屏的方法呀 铁子们!!

2021-12-27 09:26 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com

直接改源码
uni_modules > mumu-getQrcode > components > mumu-getQrcode > mumu-getQrcode

    mounted() {  
        this.$nextTick(() => {  
            this.video = document.createElement('video')  
            this.c = document.createElement('canvas')  
            this.c.id = 'c'  
            this.c.width = this.canvasWidth  
            this.c.height = this.canvasHeight  
            this.c.style.width = '100%'//关键  
            this.c.style.height = '100%'//关键  
            document.querySelector('.canvasBox').append(this.c)  
            this.openScan()  
        })  
    },
何木木

何木木

当前插件已更新,支持全屏扫码了。

该问题目前已经被锁定, 无法添加新回复