@@ -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>