model.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <script src="./4dage.js"></script>
  8. <title>Document</title>
  9. <style>
  10. html {
  11. overflow: hidden;
  12. }
  13. .bacBox {
  14. opacity: 1;
  15. pointer-events: auto;
  16. position: absolute;
  17. z-index: 998;
  18. top: 0;
  19. left: 0;
  20. width: 100%;
  21. height: 100%;
  22. background-color: #cfcfd0;
  23. transition: all 1s;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div id="ui"></div>
  29. <div class="bacBox"></div>
  30. <script>
  31. let number = getQueryVariable("m");
  32. window.autoRotate = true; // 是否自动旋转
  33. fdage.embed('/goods/model/' + number, {
  34. // fdage.embed('https://hnbwg.4dage.com/goods/model/' + number, {
  35. transparentBackground: true,
  36. width: 800,
  37. height: 600,
  38. autoStart: true,
  39. fullFrame: true,
  40. pagePreset: false
  41. });
  42. </script>
  43. </body>
  44. </html>