|  |  |  | 
|---|
|  |  |  | for (var i = 0; i<printContent.length; i ++) { | 
|---|
|  |  |  | if (printContent[i] != null && printContent[i] !== '') { | 
|---|
|  |  |  | var barcodeUrl; | 
|---|
|  |  |  | var templateDom = $("#templatePreview"+templateNo); | 
|---|
|  |  |  | var className = templateDom.attr("class"); | 
|---|
|  |  |  | type = className === 'template-barcode' ? 1 : 2; | 
|---|
|  |  |  | if (type === 1) { | 
|---|
|  |  |  | barcodeUrl = baseUrl+"/mac/code/auth?type="+type+"¶m="+printContent[i]+"&width="+200+"&height="+70; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | barcodeUrl = baseUrl+"/mac/code/auth?type="+type+"¶m="+printContent[i]+"&width="+400+"&height="+180; | 
|---|
|  |  |  | barcodeUrl = baseUrl+"/mac/code/auth?type="+2+"¶m="+printContent[i]+"&width="+400+"&height="+180; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | data.push({ | 
|---|
|  |  |  | item: printContent[i], | 
|---|