codeToFile.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  8. <style>
  9. </style>
  10. </head>
  11. <body>
  12. <img src="./img/bnBag.png" width="85%" height="180px" style="margin: 60pt 0 30pt 30pt">
  13. <div style="width:100%;height:50px;margin:0 0 20pt 30pt">
  14. <div style="font-size: 40pt;height:50px;line-height: 50px;vertical-align: auto;text-align: left;color: #333333;font-weight: bold" >产品技术资料</div>
  15. </div>
  16. <div style="margin:0 0 20pt 30pt">
  17. <div style="width: 100%;height: 150px;border-radius: 8pt;border: #cccccc solid 0.5pt">
  18. </div>
  19. </div>
  20. <script>
  21. window.onload = async function(){
  22. var loc=location.href;
  23. var n1=loc.length;
  24. var n2=loc.indexOf('=');
  25. var code=loc.slice(n2+1,n1)
  26. let that = this
  27. console.log(code)
  28. let param = {
  29. "id": 2025082515112802,
  30. "content": {
  31. "code": code
  32. },
  33. }
  34. axios.post('http://61.164.207.46:8000/yos/rest/index', param)
  35. .then(function (response) {
  36. console.log(response)
  37. })
  38. .catch(function (error) {
  39. console.log(error);
  40. });
  41. }
  42. </script>
  43. </body>
  44. </html>