First, check your jump destination path is not part of tabBar, if belongs to, and the current page when there is tabBar, wx.navigateTo method is invalid.
Wx.switchTab method available at this time, and remember app.json in "pages": [] registered destination path you want to jump.
bindtapExample:function(){
wx.switchTab({
url: '/pages/test/test'
})
},
The original link: https: //blog.csdn.net/qq_39635610/article/details/85685783