1820c933 by liuhejuan

扫码验收,去掉条形码前面的0

1 parent c39f8841
......@@ -79,6 +79,10 @@
console.log(r+"条形码读取的数据");//返回二维码读取的数据
if(r){
r = r+"";
if(typeof r == 'string'){//去掉条形码前面的0
r = r.replace(/\b(0+)/gi,"");
}
var itemData = {barcode:r}
itemData.currentSelected = selectTabs === 1 ? 'left': 'right';
console.log(JSON.stringify(itemData))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!