plugin.json
"pages": {
"movie_index": "pages/movie/cinemas",
"movie_cinema": "pages/movie_sub/cinema"
}
//页面跳转方法
uni.navigateTo({
//以下跳转方法都不行 ,navigateTo:fail rejected due to no permission currently
url: "plugin-private://appid/pages/movie_cinema",
//url:"plugin-private://appid/pages/movie_sub/cinema",
//url:"pages/movie_sub/cinema",
//url:"plugin://appid/yz-movies/pages/movie_sub/cinema",
success: (res) => {
console.log()
console.log('success','plugin://yz-movies/movie_order')
},
fail: (err) => {
console.log('fail', err)
}
})
可以用wx.navigateTo 跳转,官方真的是就说个跟小程序跳转类似,也没个示例,找了好久才找到一个 完整路径。
wx.navigateTo({
url: `plugin-private://此处替换为你的插件Appid/pages/teamFail/index`
})
楼主解决了吗,我也遇到了这个问题。
只能在页面里调用。