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);
}
0 个回复