sign.ejs 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <% include ./sub_menu.ejs %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main">
  5. <h2>签字/签章管理</h2>
  6. </div>
  7. </div>
  8. <div class="content-wrap">
  9. <div class="c-body">
  10. <div class="sjs-height-0">
  11. <% if (ctx.session.sessionProject.page_show.openNetCaSign) { %>
  12. <nav class="nav nav-tabs m-3" role="tablist">
  13. <a class="nav-item nav-link" href="/profile/sign/netca">Ukey认证签名</a>
  14. <a class="nav-item nav-link active" href="/profile/sign">签字/签章设置</a>
  15. </nav>
  16. <% } %>
  17. <div class="row m-0">
  18. <div class="col-5 my-3">
  19. <!--账号资料-->
  20. <form>
  21. <div class="form-group">
  22. <div class="form-check form-check-inline">
  23. <input class="form-check-input sign-type" type="radio" name="sign" id="sign-type-1" value="1" checked>
  24. <label class="form-check-label" for="sign-type-1">在线手写签名图</label>
  25. </div>
  26. <div class="form-check form-check-inline">
  27. <input class="form-check-input sign-type" type="radio" name="sign" id="sign-type-2" value="2">
  28. <label class="form-check-label" for="sign-type-2">上传签名图</label>
  29. </div>
  30. </div>
  31. <div class="form-group show-upload" style="display: none">
  32. <label>上传签名图</label>
  33. <input type="file" class="form-control-file" id="sign-upload">
  34. <small class="form-text text-danger">图片大小为600x300,格式PNG透明背景。</small>
  35. </div>
  36. <div class="form-group show-qrcode">
  37. <label>在线手写签名</label>
  38. <div><img src="/profile/qrCode" width="150"></div>
  39. <small class="form-text text-danger">微信扫码使用在线手写程序</small>
  40. </div>
  41. <button type="button" class="btn btn-danger btn-sm" id="delete-sign">移除签名</button>
  42. <div class="form-group">
  43. <label for="stamp">上传签章(最多上传5个)</label>
  44. <input type="file" class="form-control-file" multiple id="stamp-upload">
  45. <small class="form-text text-danger">图片大小为600x300,格式PNG透明背景。</small>
  46. <small class="form-text text-danger">点击预览签章图片上删除按钮,即可移除签章</small>
  47. </div>
  48. <!--<button type="button" class="btn btn-sm btn-danger" id="delete-stamp">移除签章</button>-->
  49. </form>
  50. </div>
  51. <div class="w-100">
  52. <label>签名图预览</label>
  53. <div>
  54. <div class="position-relative">
  55. <img src="/public/images/baobiao3.png">
  56. <div class="position-absolute fixed-top" id="sign-show" style="left:290px;top:320px">
  57. <% if (accountData.sign_path !== '') { %>
  58. <img src="/public/upload/sign/<%= accountData.sign_path %>" width="90">
  59. <% } %>
  60. </div>
  61. <div id="show-stamp">
  62. <% if (accountData.stamp_path) { %>
  63. <% for (const [index,sp] of accountData.stamp_path.split('!;!').entries()) { %>
  64. <div class="position-absolute fixed-top stamp-show" style="left:<%- (80 + index*225) %>px;top: 280px;width: 100px">
  65. <div class="position-relative">
  66. <a href="javascript:void(0);" title="移除签章" class="position-absolute delete-stamp" style="right: 0;top: 0;color: red;font-size:20px;font-weight: bold;text-decoration:none;">×</a>
  67. <img src="<%- fujianOssPath + sp %>" width="90">
  68. </div>
  69. </div>
  70. <% } %>
  71. <% } %>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <script type="text/javascript">
  82. const csrf = '<%= ctx.csrf %>';
  83. const fujianOssPath = JSON.parse(unescape('<%- escape(JSON.stringify(fujianOssPath)) %>'));
  84. </script>
  85. <script type="text/javascript" src="/public/js/profile.js"></script>