You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
1.1 KiB

<#macro layout>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<script src='http://127.0.0.1:8000/CLodopfuncs.js'></script>
</head>
<body>
<#nested>
<script>
window.On_CLodop_Opened=function(){
console.log("printer index: ${currentPrinterIndex}");
console.log("printer name: ${currentPrinterName}");
LODOP.SET_LICENSES("","${clodoplisence}","","");
console.log("clodoplisence: ${clodoplisence}");
// LODOP.SET_LICENSES("","13F0BE8384627DC160918577C6284F11","","");
//LODOP.SET_LICENSES("","646464550585055535859561289003","688858710010010811411756128900","");
lodopReady && lodopReady();
<#if currentPrinterIndex gte 0>
LODOP.SET_PRINTER_INDEXA("${currentPrinterName}");
LODOP.PRINT();
<#elseif currentPrinterIndex == -1>
LODOP.PREVIEW();
// LODOP.PRINT_DESIGN();
<#elseif currentPrinterIndex == -2>
LODOP.PRINT_DESIGN();
</#if>
window.On_CLodop_Opened=null;
};
</script>
</body>
</html>
</#macro>