Kaynağa Gözat

Merge branch 'dev' into 'test'

Dev

See merge request quanshu/mp-ui-pc!34
hunagwb 3 yıl önce
ebeveyn
işleme
7f0481cd0a
1 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. 7 2
      public/jump.html

+ 7 - 2
public/jump.html

@@ -38,7 +38,7 @@
     }
 
     function openWeapp() {
-      ajax({
+      let req = ajax({
         method: 'POST',
         async: false,
         url: 'https://test-mp-adm.quanshu123.com/test-api/api/v1/mp/wx/urlschema/generate',
@@ -47,7 +47,12 @@
           query: 'id=3847838'
         }
       })
-      // onclick="openWeapp()
+
+      req.then(data => {
+        console.log(data)
+        window.location.href = "weixin://";
+      })
+
     }
   </script>
   <style>