欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

[uniapp小程序 - 跳转到另一个小程序]

最编程 2024-04-11 15:52:40
...
uni.navigateToMiniProgram({ // appid 写你要跳转的小程序的 appid appId: '写你要跳转的小程序的 appid', // 路径写 src下的路径,假如你跳转的是pages下的页面,就可以写pages/index path: 'my/index?id=1545243840380669954', extraData: { // 'type': 'out' }, // 这个不写的话会显示开发环境,不能正常跳转,写上就能正常跳转了 envVersion: 'develop', success(res) { // 打开成功 uni.showToast({ title: '跳转成功' }) }, fail(err) { // 打开失败/取消 uni.showToast({ title: '跳转不成功' }) } })