1***@qq.com
1***@qq.com
  • 发布:2023-02-23 11:50
  • 更新:2023-02-23 11:50
  • 阅读:146

uniapp ios 出现问题,求指教

分类:uni-app

如图,IOS 15.7.3 使用了 HTML5+PLUS Barcode 模块,mainifest 也添加了APP模块,安卓能正常使用,为什么会提示功能不支持?

代码如下:

const pages = getCurrentPages()  
        const page = pages[pages.length - 1]  
        const currentWebview = page.$getAppWebview()  

        barcode = plus.barcode.create('barcode', [plus.barcode.CODE128], {  
            position: 'static',  
            top: 'auto',  
            left: 'auto',  
            width: '100%',  
            height: '300px',  
            background: '#222',  
            frameColor: '#67C23A',  
            scanbarColor: '#409EFF'  
        }, true)  

                barcode.onmarked = function(type, code, file, charset) {  
            // TODO  
            setTimeout(function() {  
                if (barcode) {  
                    barcode.start()  
                }  
            }, 1000)  
        }  

        barcode.onerror = function(error) {  
            uni.showModal({  
                title: 'Barcode Error',  
                content: JSON.stringify(error)  
            })  
        }  

        currentWebview.append(barcode)  

        barcode.start()
2023-02-23 11:50 负责人:无 分享
已邀请:

要回复问题请先登录注册