小程序跳转问卷
小程序跳转问卷

小程序跳转问卷

小程序跳 腾讯文档

wx.navigateToMiniProgram({
    appId: 'wxd45c635d754dbf59',
    path: 'pages/detail/detail.html?url=URL编码的问卷网址',
    envVersion: 'release',
    success(res) {
        console.log('跳转了')
        // 跳转成功
    },
    fail: function (e) {
        wx.showModal({
            title: '提示',
            content: '跳转失败',
            showCancel: false,
        })
    }
})

小程序跳 腾讯问卷

问卷链接  ->  https://wj.qq.com/s2/123456789/abcd/
sid     ->  123456789
hash    ->  abcd

wx.openEmbeddedMiniProgram({  
    appId: 'wxebadf544ddae62cb',  
    path: 'pages/survey/index?navigateBackMiniProgram=true&sid=问卷sid&hash=问卷hash'
});