1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta name="description" content="Webpage description goes here" />
- <meta charset="utf-8">
- <title>幸福工具</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="author" content="">
- <link rel="stylesheet" href="css/style.css">
- <script src="https://code.jquery.com/jquery-latest.min.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
- <script>
- function copyToStage() {
- axios.get('https://m3.hhh.com.tw:18686/movexoopstostage?designerid=' + $('#did').val() + '&caseid=' + $('#cid').val()).then((data) => {
- if (data["data"] == "success") {
- $('#msg')[0].innerHTML = '(' + $('#did').val() + ')' + $('#cid').val() + ' 複製成功';
- }
- });
- }
- function copyPToStage() {
- axios.get('https://m3.hhh.com.tw:18686/movepxoopstostage?brandid=' + $('#bid').val() + '&productid=' + $('#pid').val()).then((data) => {
- if (data["data"] == "success") {
- $('#msg')[0].innerHTML = '(' + $('#bid').val() + ')' + $('#pid').val() + ' 複製成功';
- }
- });
- }
- function copyCToStage() {
- axios.get('https://m3.hhh.com.tw:18686/movecxoopstostage?columnid=' + $('#colid').val()).then((data) => {
- if (data["data"] == "success") {
- $('#msg')[0].innerHTML = '(' + $('#colid').val() + ') 複製成功';
- }
- });
- }
- </script>
- </head>
- <body>
- <div class="container">
- <div style="background-color: aquamarine;">
- 設計師ID:<input type="text" id="did" />
- CASEID:<input type="text" id="cid" />
- <button onclick="copyToStage();">複製個案到測試機</button>
- </div>
- <div style="background-color:cornflowerblue;">
- 廠商ID:<input type="text" id="bid" />
- 產品ID:<input type="text" id="pid" />
- <button onclick="copyPToStage();">複製產品到測試機</button>
- </div>
- <div style="background-color:mediumaquamarine;">
- 專欄ID:<input type="text" id="colid" />
- <button onclick="copyCToStage();">複製專欄到測試機</button>
- </div>
- <div id='msg'></div>
- </div>
- <script>
- </script>
- </body>
- </html>
|