1***@qq.com
1***@qq.com
  • 发布:2023-05-12 10:01
  • 更新:2023-05-12 10:01
  • 阅读:300

App模块配置,添加扫码模块 ios使用barcode出现空白

分类:uni-app

const currentWebview = this.$mp.page.$getAppWebview();
// console.log(currentWebview,'currentWebview')
var styles = {
top:customBar+"px",
left:"0px",
width: "100%",
height: "300px",
position: "absolute",
frameColor: "#000000",
scanbarColor: "#000000",
background: "#000000"
}; //边框属性
if(!this.barcode){

            this.barcode = plus.barcode.create('barcode', [plus.barcode.CODABAR.CODE128,plus.barcode.CODABAR.EAN13],styles);  
            // console.log(this.barcode,'00000')  
            currentWebview.append(this.barcode);  
        }
2023-05-12 10:01 负责人:无 分享
已邀请:

要回复问题请先登录注册