Commit 87317037 by 杨子

test commit

parent 6aae595e
...@@ -14,23 +14,6 @@ export class QrScanComponent implements OnInit, OnDestroy, AfterViewInit { ...@@ -14,23 +14,6 @@ export class QrScanComponent implements OnInit, OnDestroy, AfterViewInit {
private barcodeScanner: BarcodeScanner private barcodeScanner: BarcodeScanner
) {} ) {}
ngOnInit(): void { ngOnInit(): void {
// let options: ZBarOptions = {
// flash: "off",
// drawSight: false
// };
// this.zbar
// .scan(options)
// .then(result => {
// console.log(result); // Scanned code
// const id = result.match(/(\w+)$/g)[0];
// console.log(id);
// this.loadingToast(id);
// })
// .catch(error => {
// console.log(error); // Error message
// this.showToast();
// });
this.barcodeScanner this.barcodeScanner
.scan() .scan()
.then(result => { .then(result => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment