components/BarCodePopup/BarCodePopup.vue
@@ -28,7 +28,6 @@ this.$refs.BarCodePopup.open() }, async onPupupStateChangeHandler(e) { console.log('e: ',e); if (e.show === true) { // this.getBillList() await this.$nextTick() @@ -46,7 +45,6 @@ // 设置二维码内容 qr.data = title; let canvasContext = uni.createCanvasContext('barcodeCanvas', this); // 如果是组件,this必须传入 console.log('qr: ',qr); // 设置二维码大小,必须与canvas设置的宽高一致 qr.size = 200; // 调用制作二维码方法