agreement.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. <style>
  9. @media screen and (max-width: 750px) {
  10. html {
  11. font-size: calc(100vw/7.5);
  12. }
  13. }
  14. @media screen and (min-width: 750px) {
  15. html {
  16. font-size: calc(750px/7.5);
  17. }
  18. }
  19. body {
  20. padding: 0.3rem;
  21. }
  22. h1 {
  23. font-size: 0.32rem;
  24. }
  25. h2 {
  26. font-size: 0.31rem;
  27. }
  28. h3 {
  29. font-size: 0.3rem;
  30. }
  31. h4 {
  32. font-size: 0.29rem;
  33. }
  34. h5 {
  35. font-size: 0.28rem;
  36. }
  37. h6 {
  38. font-size: 0.27rem;
  39. }
  40. p, span, li, ul {
  41. font-size: 0.28rem;
  42. color: #333;
  43. margin: 0;
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. </body>
  49. </html>
  50. <script src="../static/js/vender/config.js"></script>
  51. <script type="text/javascript" src="../static/js/vender/jquery-3.4.1.min.js"></script>
  52. <script>
  53. var agreementCoding = GetRequest().agreementCoding ? GetRequest().agreementCoding : 'XYPZYSXY2001'
  54. console.log(agreementCoding);
  55. $.ajax({
  56. url: baseUrl + "/api/public/v4/agreement/content",
  57. data: {
  58. agreementCoding: agreementCoding
  59. },
  60. type: 'get',
  61. dataType: 'json',
  62. success: function (res) {
  63. if (res.status === 0) {
  64. var pos1 = res.data.content.lastIndexOf('<body>') + 6
  65. var pos2 = res.data.content.lastIndexOf('</body>')
  66. var content = pos1 >= 0 && pos2 >= 0 ? res.data.content.slice(pos1, pos2) : res.data.content
  67. $('body').append(content);
  68. }
  69. }
  70. })
  71. </script>