普通跳转
wx.navigateTo({
url: '/pages/xxx/xxx'
})
返回
wx.navigateBack({})
wx.navigateBack({
delta: 0
})
切换主菜单
wx.switchTab({
url: '../store/index'
})
小程序跳转
wx.navigateToMiniProgram({
appId: 'xxx',
path: 'pages/index/index?phone=' + wx.getStorageSync('phone')
})