企业微信打开小程序带参丢参问题解决

387 阅读1分钟

官方文档如下:

wx.invoke('launchMiniprogram', {
            "appid" : "wx062aaa5507909631", // 需跳转的小程序appid
            "path" : "pages/home/index.html", // 所需跳转的小程序内页面路径及参数。非必填
        }, function(res) {
            if(res.err_msg == "launchMiniprogram:ok") {
                // 正常
            } else {
                // 错误处理
            }
        }
);

跳转的页面路径必须是带.html的全链接 参数直接跟在页面后面。?a=1&b=2