There are two problems with the transfer parameters of page jumps in applets:
1. Transfer objects
Page jump transfer object // pass parameter from page A wx.setStorageSync ( ' pjzb-lxs ' , res.data); flight newObjs = { name: ' Test environment test path ' , age:1212, text: ' Hahahaha ' , ressdd:'shahah', zhansa:"eebebeb", lsh:"ddddd" } wx.navigateTo({ url: `/user/mine/progress/modals?lsh=${'1111111'}&&sxbm=${'张三'}&&ssss=${JSON.stringify(newObjs)}` }) // Page B receives the parameter onLoad (option) from page A { console.log (option); // Get the parameter object and parse it }
2. Pass multiple parameters, the main code is as follows
Pass multiple parameters // pass parameter from page A let parm = ' test data ' ; let parms = ' Number id ' ; wx.navigateTo({ url: `/user/mine/detail/index?lsh=${parm}&&sxbm=${parms }` }) // page B receives the parameter onLoad (option) of page A { console.log (option); // Get multiple parameters from page A }
If you have any questions, you can ask ~~~