瀏覽代碼

二维码管理

qymljy 3 月之前
父節點
當前提交
ac731e2f15
共有 2 個文件被更改,包括 10 次插入16 次删除
  1. 9 15
      public/codeToFile.html
  2. 1 1
      src/HDrpManagement/codeManage/index.vue

+ 9 - 15
public/codeToFile.html

@@ -12,7 +12,8 @@
         </div>
         <div></div>
         <script>
-            window.onload =function(){
+            const dataList = []
+            window.onload = async function(){
                 var loc=location.href;
                 var n1=loc.length;
                 var n2=loc.indexOf('=');
@@ -25,20 +26,13 @@
                         "code": code
                     },
                 }
-                alert()
-                // $.ajax(
-                //     {
-                //         type:'post',
-                //         url:'http://61.164.207.46:8000/codeToFile.htm',
-                //         data:param,
-                //         dataType:'json',
-                //         async:true,
-                //         success:function(data){
-                //             console.log(data)
-                //             alert(data)
-                //         }
-                //     }
-                // )
+                $.ajax({
+                    url:'http://61.164.207.46:8000/yos/rest/index',
+                    data:param,
+                    type:"POST"
+                }).done(function (res){
+                    alert(res)
+                })
             }
         </script>
     </body>

+ 1 - 1
src/HDrpManagement/codeManage/index.vue

@@ -45,7 +45,7 @@ export default {
   data(){
     return {
       dialogVisible:false,
-      url:'http://192.168.3.146:8000/codeToFile.html',
+      url:'http://61.164.207.46:8000/yosweb/codeToFile.html',
       bigUrl:''
     }
   },