|
@@ -0,0 +1,39 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+ <head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <title></title>
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div id="app"></div>
|
|
|
+ </body>
|
|
|
+ <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
|
|
|
+ <script>
|
|
|
+ $.ajax({
|
|
|
+ url: 'https://alimall.hdlkeji.com/api/community/document_details',
|
|
|
+ method: "post",
|
|
|
+ data: {
|
|
|
+ id: getUrlParams('id') || 20
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ if (res.data)
|
|
|
+ $("#app").html(res.data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ function getUrlParams(key) {
|
|
|
+ var url = window.location.search.substr(1);
|
|
|
+ if (url == '') {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var paramsArr = url.split('&');
|
|
|
+ for (var i = 0; i < paramsArr.length; i++) {
|
|
|
+ var combina = paramsArr[i].split("=");
|
|
|
+ if (combina[0] == key) {
|
|
|
+ return combina[1];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</html>
|