sign.ejs 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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">上传签章</label>
  44. <input type="file" class="form-control-file" id="stamp-upload">
  45. <small class="form-text text-danger">图片大小为600x300,格式PNG透明背景。</small>
  46. </div>
  47. <button type="button" class="btn btn-sm btn-danger" id="delete-stamp">移除签章</button>
  48. <div class="form-group">
  49. <label>签名图预览</label>
  50. <div>
  51. <div class="position-relative">
  52. <img src="/public/images/baobiao3.png">
  53. <div class="position-absolute fixed-top" id="sign-show" style="left:290px;top:320px">
  54. <% if (accountData.sign_path !== '') { %>
  55. <img src="/public/upload/sign/<%= accountData.sign_path %>" width="90">
  56. <% } %>
  57. </div>
  58. <div class="position-absolute fixed-top" id="stamp-show" style="left:300px;top:260px">
  59. <% if (accountData.stamp_path) { %>
  60. <img src="<%- fujianOssPath + accountData.stamp_path %>" width="90">
  61. <% } %>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </form>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <script type="text/javascript">
  74. const csrf = '<%= ctx.csrf %>';
  75. const fujianOssPath = JSON.parse(unescape('<%- escape(JSON.stringify(fujianOssPath)) %>'));
  76. </script>
  77. <script type="text/javascript" src="/public/js/profile.js"></script>