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 | 37 +++++++++++++++++++++++++++++++++----
1 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/views/matCode/matCode.html b/src/main/webapp/views/matCode/matCode.html
index 5bac4a5..05142e5 100644
--- a/src/main/webapp/views/matCode/matCode.html
+++ b/src/main/webapp/views/matCode/matCode.html
@@ -132,9 +132,9 @@
<hr>
<!--鍗曢�夋-->
<div class="layui-form-item" style="display: inline-block; margin-bottom: 10px">
- <input type="radio" name="sex" value="鐢�" title="妯℃澘涓�" checked="">
- <input type="radio" name="sex" value="濂�" title="妯℃澘浜�">
- <input type="radio" name="sex" value="绂�" title="妯℃澘涓�">
+ <input type="radio" name="selectTemplate" value="1" title="妯℃澘涓�" checked="">
+ <input type="radio" name="selectTemplate" value="2" title="妯℃澘浜�">
+ <input type="radio" name="selectTemplate" value="3" title="妯℃澘涓�">
</div>
<fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: left;">
<legend>鎵撳嵃棰勮</legend>
@@ -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>
@@ -204,9 +204,38 @@
</div>
</div>
+<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">
+ {{#each data}}
+ <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small">
+ <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={{this.barcodeUrl}}" width="80%">
+ </td>
+ </tr>
+ <tr>
+ <td align="right" width="25%">鐗╂枡缂栫爜</td>
+ <td align="right" width="25%">{{this.matNo}}</td>
+ <td align="right" width="25%">鐗╂枡鍚嶇О</td>
+ <td align="right" width="25%">{{this.matName}}</td>
+ </tr>
+ <tr>
+ <td align="right" width="25%">鐗╂枡鍗曚綅</td>
+ <td align="right" width="25%">{{this.str1}}</td>
+ <td align="right" width="25%">鐗╂枡瑙勬牸</td>
+ <td align="right" width="25%">{{this.str2}}</td>
+ </tr>
+ </table>
+ {{/each}}
</script>
<!-- 妯℃澘2 -->
<script type="text/template" id="templatePreview2">
--
Gitblit v1.9.1