fb836df3b3c54c3cb0e361cd10a1ae37.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="description" content="Webpage description goes here" />
  5. <meta charset="utf-8">
  6. <title>幸福工具</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta name="author" content="">
  9. <link rel="stylesheet" href="css/style.css">
  10. <script src="https://code.jquery.com/jquery-latest.min.js"></script>
  11. <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
  12. <script>
  13. function copyToStage() {
  14. //alert('https://m3.hhh.com.tw:18686/movexoopstostage?designerid=' + $('#did').val() + '&caseid=' + $('#cid').val());
  15. axios.get('https://m3.hhh.com.tw:18686/movexoopstostage?designerid=' + $('#did').val() + '&caseid=' + $('#cid').val()).then((data) => {
  16. if (data["data"] == "success") {
  17. $('#msg')[0].innerHTML = '(' + $('#did').val() + ')' + $('#cid').val() + ' 複製成功';
  18. }
  19. });
  20. }
  21. function copyPToStage() {
  22. //alert('https://m3.hhh.com.tw:18686/movexoopstostage?designerid=' + $('#did').val() + '&caseid=' + $('#cid').val());
  23. axios.get('https://m3.hhh.com.tw:18686/movepxoopstostage?brandid=' + $('#bid').val() + '&productid=' + $('#pid').val()).then((data) => {
  24. if (data["data"] == "success") {
  25. $('#msg')[0].innerHTML = '(' + $('#bid').val() + ')' + $('#pid').val() + ' 複製成功';
  26. }
  27. });
  28. }
  29. </script>
  30. </head>
  31. <body>
  32. <div class="container">
  33. <div style="background-color: aquamarine;">
  34. 設計師ID:<input type="text" id="did" />
  35. CASEID:<input type="text" id="cid" />
  36. <button onclick="copyToStage();">複製個案到測試機</button>
  37. </div>
  38. <div style="background-color:cornflowerblue;">
  39. 廠商ID:<input type="text" id="bid" />
  40. 產品ID:<input type="text" id="pid" />
  41. <button onclick="copyPToStage();">複製產品到測試機</button>
  42. </div>
  43. <div id='msg'></div>
  44. </div>
  45. <script>
  46. </script>
  47. </body>
  48. </html>