[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: '跳转不成功'
})
}
})
推荐阅读
-
uniapp 微信小程序开发误区日记:由于图表数据渲染不出来,第一次使用手表功能在项目中监听数据变化
-
在 uniapp 中使用 vue 编写微信小程序的生命周期差异
-
微信小程序 uniapp+vue 动漫交流系统 java(springboot+ssm)/python(flask+django)/
-
Uniapp踩中的坑]--微信小程序转发&保存图片--base64流形式的图片转发和保存
-
微信小程序 uniapp+vue 高校学科竞赛工作系统 n690m
-
小程序地理位置权限请求 + uniapp 调用 uni.getLocation
-
未阻止 Uniapp 小程序路由拦截器、导航器
-
[uniapp小程序 - 跳转到另一个小程序]
-
uniapp 小程序下载和导出 excel
-
[uniapp] 开发微信小程序--注意事项