Bläddra i källkod

跳转小程序

hwb0 3 år sedan
förälder
incheckning
ce8d472fff
1 ändrade filer med 6 tillägg och 3 borttagningar
  1. 6 3
      public/jump.html

+ 6 - 3
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',
@@ -46,10 +46,13 @@
           path: '/pages/index/index',
           query: 'id=3847838'
         }
-      }).then(res=>{
-        console.log('res', res)
+      })
+
+      req.then(data => {
+        console.log(data)
         window.location.href = "weixin://";
       })
+
     }
   </script>
   <style>