From ade4bc8f860e3d905370db56f81723910e7f19e8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 08 六月 2020 14:33:10 +0800 Subject: [PATCH] # --- src/main/webapp/views/matCode/matCode.html | 59 +++++++++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 45 insertions(+), 14 deletions(-) diff --git a/src/main/webapp/views/matCode/matCode.html b/src/main/webapp/views/matCode/matCode.html index 2498ce6..c99c587 100644 --- a/src/main/webapp/views/matCode/matCode.html +++ b/src/main/webapp/views/matCode/matCode.html @@ -132,15 +132,15 @@ <hr> <!--鍗曢�夋--> <div class="layui-form-item" style="display: inline-block; margin-bottom: 10px"> - <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="妯℃澘涓�"> + <input type="radio" name="selectTemplate" value="1" title="妯℃澘涓�" lay-filter="selectTemplateRadio" checked=""> + <input type="radio" name="selectTemplate" value="2" title="妯℃澘浜�" lay-filter="selectTemplateRadio"> + <input type="radio" name="selectTemplate" value="3" title="妯℃澘涓�" lay-filter="selectTemplateRadio"> </div> <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: left;"> <legend>鎵撳嵃棰勮</legend> <div id="template-container" style="margin: 20px;text-align: center"> <!-- 棰勮鍥� 1 --> - <div id="template-preview-1" class="template-preview"> + <div id="template-preview-1" class="template-preview" style="display: none"> <!-- <table class="contain" height="317" width="317" style="overflow: hidden">--> <!-- <tr>--> <!-- <td width="20%" align="right" scope="col">瀹㈡埛</td>--> @@ -175,28 +175,53 @@ <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=123" width="80%"> + <td class="barcode" colspan="3" align="left" scope="col"> + <img class="template-qrcode" src="" width="80%"> + <div style="letter-spacing: 2px;margin-top: 3px">xxxxxx</div> </td> </tr> <tr> <td align="right" width="25%">鐗╂枡缂栫爜</td> - <td align="right" width="25%">1902980-11/12</td> + <td align="right" width="25%">xxxxxx-xx/xx</td> <td align="right" width="25%">鐗╂枡鍚嶇О</td> - <td align="right" width="25%">閾濆甫|1100-O|0.33*475|</td> + <td align="right" width="25%">xxxxxxx</td> </tr> <tr> <td align="right" width="25%">鐗╂枡鍗曚綅</td> - <td align="right" width="25%">701010015907</td> + <td align="right" width="25%">xxxxxxxx</td> <td align="right" width="25%">鐗╂枡瑙勬牸</td> - <td align="right" width="25%">榧庤儨閾濅笟棣欐腐_椹潵瑗夸簹UPT</td> + <td align="right" width="25%">xxxxxxx</td> </tr> </table> </div> + <!-- 棰勮鍥� 2 --> - <div class="template-preview"></div> + <div id="template-preview-2" class="template-preview" style="display: inline-block"> + <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="template-qrcode" src="" width="80%"> + <div style="letter-spacing: 2px;margin-top: 3px">xxxxxx</div> + </td> + </tr> + <tr> + <td align="right" width="25%">鐗╂枡缂栫爜</td> + <td align="right" width="25%">xxxxxx-xx/xx</td> + <td align="right" width="25%">鐗╂枡鍚嶇О</td> + <td align="right" width="25%">xxxxxxx</td> + </tr> + <tr> + <td align="right" width="25%">鐗╂枡鍗曚綅</td> + <td align="right" width="25%">xxxxxxxx</td> + <td align="right" width="25%">鐗╂枡瑙勬牸</td> + <td align="right" width="25%">xxxxxxx</td> + </tr> + </table> + </div> + <!-- 棰勮鍥� 3 --> - <div class="template-preview"></div> + <div id="template-preview-3" class="template-preview"></div> </div> </fieldset> @@ -206,6 +231,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"> @@ -213,8 +243,9 @@ <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 class="barcode" colspan="3" align="left" scope="col"> + <img class="qrcode" src="{{this.barcodeUrl}}" width="80%"> + <div style="letter-spacing: 2px;margin-top: 3px">{{this.barcode}}</div> </td> </tr> <tr> -- Gitblit v1.9.1