123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
- <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <meta name="format-detection" content="telephone=no">
- <title>清洗手册</title>
- </head>
- <body>
- </body>
- <script type="text/javascript">
- window.onload = function () {
- var searchURL = window.location.search;
- searchURL = searchURL.substring(1, searchURL.length);
- var token = searchURL.split("&")[0].split("=")[1];
- const code = searchURL.split("&")[1].split("=")[1];
- const projectId = searchURL.split("&")[2].split("=")[1];
- var xmlHttp = null;
- if (window.XMLHttpRequest) {
- xmlHttp = new XMLHttpRequest();
- } else {
- xmlHttp = new ActiveXObject("Microsoft.XMLHttpRequest");
- }
- xmlHttp.onreadystatechange = function () {
- if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
- var dataObj = JSON.parse(xmlHttp.responseText);
- if (dataObj.data.Content) {
- document.write(dataObj.data.Content);
- } else {
- dataObj = `<h3 style="text-align:center">未配置手册,请前往后台配置清洗手册</h3>`
- document.write(`<h3 style="text-align:center;padding-top: 40px">未配置手册,请前往后台配置清洗手册</h3>`);
- }
- document.title = '清洗手册'
- }
- };
- xmlHttp.open("get", "/api/v1/operation_manual/item/" + projectId + "/" + code + "?JWT-TOKEN=" + token + "", true);
- xmlHttp.send();
- };
- </script>
- </html>
|