From 4b71f22719bd043c8ffad7cf6fc007378fe2f2e9 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 08 六月 2020 13:53:57 +0800 Subject: [PATCH] # --- src/main/webapp/views/matCode/matCode.html | 7 ++++++- src/main/webapp/static/js/matCode/matCode.js | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/js/matCode/matCode.js b/src/main/webapp/static/js/matCode/matCode.js index 2340b15..30ded55 100644 --- a/src/main/webapp/static/js/matCode/matCode.js +++ b/src/main/webapp/static/js/matCode/matCode.js @@ -341,7 +341,6 @@ for (let i=0;i<res.data.length;i++){ res.data[i].barcodeUrl=baseUrl+"/macCode/barcode/auth?param="+res.data[i].barcodeUrl; } - console.log(res.data); var tpl = $("#templatePreview"+templateNo).html(); var template = Handlebars.compile(tpl); var html = template(res); diff --git a/src/main/webapp/views/matCode/matCode.html b/src/main/webapp/views/matCode/matCode.html index 2498ce6..05142e5 100644 --- a/src/main/webapp/views/matCode/matCode.html +++ b/src/main/webapp/views/matCode/matCode.html @@ -176,7 +176,7 @@ <tr> <td colspan="1" align="right" scope="col">鏉$爜</td> <td class="barcode"colspan="3" align="left" scope="col"> - <img class="qrcode" src="/macCode/barcode/auth?param=123" width="80%"> + <img class="template-qrcode" src="" width="80%"> </td> </tr> <tr> @@ -206,6 +206,11 @@ <div id="box" style="display: block"></div> +<!-- 鍒濆鍖栨墦鍗版ā鏉跨殑鏉″舰鐮� --> +<script type="text/javascript"> + $('.template-qrcode').attr("src", baseUrl+"/macCode/barcode/auth?param=123"); +</script> + <!-- 妯℃澘寮曟搸 --> <!-- 妯℃澘1 --> <script type="text/template" id="templatePreview1"> -- Gitblit v1.9.1