sign.ejs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. <div class="row m-0">
  12. <div class="col-5 my-3">
  13. <!--账号资料-->
  14. <form>
  15. <div class="form-group">
  16. <div class="form-check form-check-inline">
  17. <input class="form-check-input sign-type" type="radio" name="sign" id="sign-type-1" value="1" checked>
  18. <label class="form-check-label" for="sign-type-1">在线手写签名图</label>
  19. </div>
  20. <div class="form-check form-check-inline">
  21. <input class="form-check-input sign-type" type="radio" name="sign" id="sign-type-2" value="2">
  22. <label class="form-check-label" for="sign-type-2">上传签名图</label>
  23. </div>
  24. </div>
  25. <div class="form-group" id="show-upload" style="display: none">
  26. <label>上传签名图</label>
  27. <input type="file" class="form-control-file" id="sign-upload">
  28. <small class="form-text text-danger">图片大小为600x300,格式PNG透明背景。</small>
  29. </div>
  30. <div class="form-group" id="show-qrcode">
  31. <label>在线手写签名</label>
  32. <div><img src="/profile/qrCode" width="150"></div>
  33. <small class="form-text text-danger">微信扫码使用在线手写程序</small>
  34. </div>
  35. <button type="button" class="btn btn-danger btn-sm" id="delete-sign">移除签名</button>
  36. <div class="form-group">
  37. <label>签名图预览</label>
  38. <div>
  39. <div class="position-relative">
  40. <img src="/public/images/baobiao3.png">
  41. <div class="position-absolute fixed-top" id="sign-show" style="left:290px;top:320px">
  42. <% if (accountData.sign_path !== '') { %>
  43. <img src="/public/upload/sign/<%= accountData.sign_path %>" width="90">
  44. <% } %>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </form>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <script type="text/javascript">
  57. const csrf = '<%= ctx.csrf %>';
  58. </script>
  59. <script type="text/javascript" src="/public/js/profile.js"></script>