codeToFile.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>商品资料页</title>
  6. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  7. </head>
  8. <body>
  9. <img src="./img/bnBag.png" width="85%" height="180px" style="margin: 60pt 0 30pt 30pt">
  10. <div style="width:100%;height:50px;margin:0 0 20pt 30pt">
  11. <div style="font-size: 40pt;height:50px;line-height: 50px;vertical-align: auto;text-align: left;color: #333333;font-weight: bold" >产品技术资料</div>
  12. </div>
  13. <div></div>
  14. <script>
  15. const dataList = []
  16. window.onload = async function(){
  17. var loc=location.href;
  18. var n1=loc.length;
  19. var n2=loc.indexOf('=');
  20. var code=loc.slice(n2+1,n1)
  21. let that = this
  22. console.log(code)
  23. let param = {
  24. "id": 2025082515112802,
  25. "content": {
  26. "code": code
  27. },
  28. }
  29. $.ajax({
  30. url:'http://61.164.207.46:8000/yos/rest/index',
  31. data:param,
  32. type:"POST"
  33. }).done(function (res){
  34. alert(res)
  35. })
  36. }
  37. </script>
  38. </body>
  39. </html>