页面A传递参数
var cellList = JSON.stringify(this.data.cellList)
wx.navigateTo({
url: '../../pages/add/add?cellList=' + encodeURIComponent(cellList),
})
页面B接收
onLoad: function (e) {
var itemList = decodeURIComponent(e.cellList);
var list = JSON.parse(itemList)
this.setData({
cellList: list
})
},