Commit 9288e561 by zhuxiaomei

条码扫描

parent 24d76fdc
......@@ -57,12 +57,12 @@
barcode = null;
let that = this;
if (!barcode) {
barcode = new plus.barcode.Barcode('bcid', [plus.barcode.EAN13], {
barcode = new plus.barcode.Barcode('bcid', [plus.barcode.EAN13,plus.barcode.EAN8], {
frameColor: '#00FF00',
scanbarColor: '#00FF00'
});
barcode.onmarked = function (type, result) {
if (type === plus.barcode.EAN13) {
if (type === plus.barcode.EAN13||type === plus.barcode.EAN8) {
that._getSample(result)
}else{
that.$toast('扫描失败!')
......
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