跳转js
let params = {
params1: 1,
params2: 2,
paramsPath: encodeURIComponent('pages/index/index') //如果需要传route 需要先encodeURIComponent
}
wx.navigateTo({
url: `/pages/detail/index?obj=${JSON.stringify(params)}`,
})
接收参数
onLoad(options){
JSON.parse(options.obj)
}