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.
 
 
 
 
 
 

47 lines
1.3 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width" />
  5. <title>CardPrint</title>
  6. @Html.AppendJsFile("/Content/jquery/jquery-1.10.2.min.js", "/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js")
  7. <script src="/Content/js/qrcode.min.js"></script>
  8. <link href="~/Content/cardprint/CardPrint.css" rel="stylesheet" />
  9. <script>
  10. function request(d) {
  11. for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) {
  12. var b = c[a].split("=");
  13. if (b[0] == d)
  14. if ("undefined" == unescape(b[1])) break;
  15. else return unescape(b[1])
  16. }
  17. return ""
  18. };
  19. </script>
  20. </head>
  21. <body style="">
  22. <div id="qrcodeBox" style="text-align:center;margin-top:20px;">
  23. <div class="qrcodeBox" style="display:inline-block">
  24. <div id="qrcode" style="margin:0 auto 5px;"></div>
  25. <div class="qrcodeTxt" style="font-size:12px;"></div>
  26. </div>
  27. </div>
  28. <script>
  29. //标签打印
  30. var qrcode = new QRCode(document.getElementById("qrcode"), {
  31. width: 200,
  32. height: 200
  33. });
  34. var keyValue = request('keyValue');//二维码
  35. $(function () {
  36. qrcode.makeCode(keyValue);
  37. });
  38. </script>
  39. </body>
  40. </html>